ingadhoc/account-invoicing#211
Created by rov-adhoc
Merged
at 34eaed8b09904931c8c8337b705aefeacaa447b2
- label
- adhoc-dev:18.0-h-90461-rov
- head
- 60f54f2516bf2bdc870b72c2dd96d24c3458f076
- target
- 18.0
- merged
- hace 3 meses by Camila Vives
[FIX] account_invoice_tax: avoid including amount_currency when not needed
Fixed an issue in '_get_amount_updated_values' where 'amount_currency' was included in the dictionary even when unnecessary, causing errors when 'amount_company_currency' was set to 'None'.
Now, 'amount_currency' is only added if the move's currency differs from the company currency and 'self.amount' is set. This prevents operations involving 'None' values, avoiding errors when processing the data.
Reported error:
TypeError: unsupported operand type(s) for -: 'float' and 'NoneType'