TIP: You can type at any time to perform a new search.
Account Invoice - Change Currency
account_invoice_change_currency · OCA/account-invoicing
Security findings
Migration considerations
view_move_form— For a target of Odoo 17.0+: view 'view_move_form' uses `attrs=`/`states=`, which are no longer supported. Convert modifiers to direct Python boolean expressions in `invisible`/`readonly`/`required`; preserve the original AND/OR logic. migration-view-attrs-states · source- Raw `cr.execute()` INSERT/UPDATE/DELETE bypasses the ORM (no compute/constrains/tracking/mail): `UPDATE account_move SET custom_rate = 1.0` - re-check the table/column names still match after upgrading. migration-raw-sql-write · source
Migration review checklist, not a compatibility verdict. No target version is selected: apply version-specific advice only when migrating to that version or later.
- Repository
- OCA/account-invoicing · module folder · Try on Runboat
- Module version
- 1.0.1
- Category
- Accounting & Finance
- Folder size
- 0.09 MB
- License
- AGPL-3
- Application
- No
- Auto-installable
- No
- Website
- https://github.com/OCA/account-invoicing
- Last tracking update
- 2026-08-07 08:09:10
- Authors
- Vauxoo, Odoo Community Association (OCA), Komit Consulting
- Maintainers
- Vauxoo, Odoo Community Association (OCA), Komit Consulting
- Committers
- Weblate, OCA-git-bot, Luis J. Salvatierra, oca-ci
Code Analysis
Views touched (1)
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
view_move_form |
account.move.form.inherit | account.move | form | Inherits account.view_move_form |
HTTP endpoints (0)
No HTTP endpoints found for this module.
Models touched (3)
New fields (3)
-
custom_rateFloatcompute='_compute_currency_change_rate'default=1digits=(12, 6)help='Set new currency rate to apply on the invoice.\nThis rate will be taken in order to convert amounts between the currency on the invoice and last currency'readonly=Falsestore=True -
is_original_currencyBooleancompute='_compute_is_original_currency'help='Check if current currency is the original currency. This is used to hide custom rate field in the form view.' -
original_currency_idMany2one → res.currencyhelp='Store the original currency when the invoice is created or the conversion is called for the first time. This is used to calculate conversion from this currency.' args: 'res.currency'
-
action_account_change_currency(self)This method convert the original price unit from the original currency when the invoice was created to the current currency using the custom rate and recompute all taxes. -
create(self, vals_list)@api.model_create_multi
New fields (1)
-
original_price_unitMonetaryhelp='Store price unit from every line when the invoice is created or the conversion is called for the first time to use it to convert the amount in the new currency.'
-
create(self, vals_list)@api.model_create_multi
New fields (0)
No new fields.
Public methods (0)No public methods.
Loading…
Loading…
Loading…
Loading…
Loading…