Skip to content

Commit

Permalink
[ADD] l10n_ar_sale_order_type: Se traslada funcionalidad
Browse files Browse the repository at this point in the history
Task: 72835
  • Loading branch information
mem-adhoc committed Aug 8, 2024
1 parent 158e736 commit 018dea5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion l10n_ar_sale_order_type/models/sale_order.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,9 @@ def write(self, vals):
record.state in {"draft", "sent"}
and record.type_id.sequence_id != sale_checkbook.sequence_id
):
number_next = sale_checkbook.sequence_id.number_next_actual
new_vals = vals.copy()
new_vals["name"] = sale_checkbook.sequence_id._next() or _('New')
new_vals["name"] = sale_checkbook.sequence_id.get_next_char(number_next)
super(SaleOrder, record).write(new_vals)
else:
super(SaleOrder, record).write(vals)
Expand Down

0 comments on commit 018dea5

Please sign in to comment.