Files
odoo_source/addons/l10n_latam_invoice_document
Josse Colpaert f07b8beb1a [IMP] l10n_latam_invoice_document: avoid changing back document number as well
The previous commit solved the issues for the Belgian, ... case, but not
for l10n_latam_invoice_document.

We saw two extra problems we solved:
- As the name is readonly you can not even store the new name easily, so
we needed a force_save on that field.
- As the _compute_name is inherited in this module as well, there is a
logic that recomputes the name when the document type is changed and the
invoice is in draft to recompute that initial value.
However, when you confirm and the date gets set, that logic
is also triggered, while we do not want to recompute but keep
our old document number.

closes odoo/odoo#111294

X-original-commit: 7edee80545daf29b3a46947838a23e1f4458f12d
Related: odoo/enterprise#36434
Signed-off-by: William André (wan) <wan@odoo.com>
2023-01-29 03:41:52 +01:00
..
…