You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Open "Accounting / Actions" --> "Create Entry From Template"
Fill the field until pressing "Create Journal Entry"
Expected behavior
The module should create a Jouyrnal Entry from the template.
Error
File "/opt/odoo/extra_addons/account_move_template/wizard/account_move_template_run.py", line 213, in _prepare_move_line
pterm_list = line.payment_term_id.compute(value=1, date_ref=self.date)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'account.payment.term' object has no attribute 'compute'
File "/opt/odoo/extra_addons/account_move_template/wizard/account_move_template_run.py", line 213, in _prepare_move_line
pterm_list = line.payment_term_id.compute(value=1, date_ref=self.date)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'account.payment.term' object has no attribute 'compute'
You can find this line in account_move_template_run.py line213.
Since this commit Odoo change the .compute method.
Moreover, later in the code there is a weird thing.
The tax_repartition string is set and then a search is perform.
Module
account_move_template
Describe the bug
Error while using wizard.
To Reproduce
Odoo v17, V17 module from there
Steps to reproduce the behavior:
Expected behavior
The module should create a Jouyrnal Entry from the template.
Error
You can find this line in account_move_template_run.py line213.
Since this commit Odoo change the .compute method.
Moreover, later in the code there is a weird thing.
The tax_repartition string is set and then a search is perform.
This result to ```("invoice_tax_id", "in", [5]) in my case
The text was updated successfully, but these errors were encountered: