OCA / l10n-portugal

Odoo Portuguese localization
GNU Affero General Public License v3.0
4 stars 27 forks source link

[16.0][BUG][l10n_pt_account_invoicexpress] account.move wrong default value on parameter soft #92

Closed dariodelzozzo closed 1 year ago

dariodelzozzo commented 1 year ago

Module

l10n_pt_account_invoicexpress

Describe the bug

There is an override of the method _post() inside the model account.move that change the default value of parameter soft. OCA/l10n-portugal

To Reproduce

Use any functionality that calls the method _post() of the account.move and you will see that all future records get posted. For example in the enteprise version you can create an Account Asset and when you validate it all future Bills get posted (wrong because future ones must be in draft)

Here the parent method from Odoo standard: Odoo parent method

As you can see the default value is soft=True

Affected versions: Odoo 16.0