Skip to content

Commit

Permalink
[FIX] l10n_ar_sale_order_type: Fix para que se setee correctamente la…
Browse files Browse the repository at this point in the history
… secuencia de la orden de venta
  • Loading branch information
mem-adhoc committed Aug 7, 2024
1 parent ebeae18 commit e8e2fdb
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 e8e2fdb

Please sign in to comment.