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)
Module
l10n_pt_account_invoicexpress
Describe the bug
There is an override of the method
_post()
inside the modelaccount.move
that change the default value of parametersoft
. OCA/l10n-portugalTo Reproduce
Use any functionality that calls the method
_post()
of theaccount.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