[FIX] account_spread_cost_revenue: skip create template in create_move()

This commit is contained in:
Andrea Stirpe
2023-10-19 11:24:47 +02:00
parent 0698663e48
commit a6dae3b191
2 changed files with 7 additions and 1 deletions

View File

@@ -40,7 +40,9 @@ class AccountInvoiceSpreadLine(models.Model):
def create_move(self):
"""Button to manually create a move from a spread line entry."""
self.ensure_one()
self.create_and_reconcile_moves()
self.with_context(
skip_create_template=True,
).create_and_reconcile_moves()
def _create_moves(self):
if self.filtered(lambda l: l.move_id):