Account Invoice - Change Currency
account_invoice_change_currency · OCA/account-invoicing
Health
55/100
fair
-
Security25/25No findings
-
Activity0/25Last human commit 43 months ago
-
Required by5/250 modules depend on it
-
Maturity25/25In 6 Odoo series since 10.0
Heuristic over the facts below, not an audit · How it's computed
Required by
0
Modules depending on it
External deps
0 pip · 0 bin
Python packages / system binaries
License
AGPL-3
No conflicts with its dependencies
Folder size
0.09 MB
Module directory on disk
Code analysis
2 migration notes
3 models
1 view
0 HTTP endpoints
Migration considerations
view_move_form— Migrating to 17.0: `attrs=`/`states=` are rejected in views: convert them to Python expressions in `invisible`/`readonly`/`required`, keeping 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. "Migrating to X.0" applies once you upgrade to that version; "Since X.0" means this version already ignores or rejects that code. Methodology
Description
Dependencies
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
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…