mirror of
https://github.com/OCA/account-financial-tools.git
synced 2025-02-02 12:47:26 +02:00
[FIX] account_spread_cost_revenue: skip create template in create_move()
This commit is contained in:
@@ -135,6 +135,10 @@ class AccountMoveLine(models.Model):
|
||||
return False
|
||||
return True
|
||||
|
||||
# Skip create new template when create move on spread lines
|
||||
if self.env.context.get("skip_create_template"):
|
||||
return
|
||||
|
||||
for line in self:
|
||||
if line.spread_check == "linked":
|
||||
continue
|
||||
|
||||
Reference in New Issue
Block a user