diff options
| author | Katherine Zaoral <kz@adhoc.com.ar> | 2019-12-18 19:48:59 +0000 |
|---|---|---|
| committer | Katherine Zaoral <kz@adhoc.com.ar> | 2019-12-18 19:48:59 +0000 |
| commit | 8777e4960cb0d63c658039529ef0b489e54d36ba (patch) | |
| tree | f0e888ae7e27d82467b1f8e1fcb94ec0c1089394 /addons | |
| parent | bd80ea51d736ba3345791724a60c2fa966861f39 (diff) | |
[REF] l10n_ar, l10n_latam_invoice_document: replace staticmethods with api.model methods
closes odoo/odoo#42177
X-original-commit: 4854bef072807828f66ada7d2996f70ad01ec506
Signed-off-by: Josse Colpaert <jco@openerp.com>
Diffstat (limited to 'addons')
| -rw-r--r-- | addons/l10n_ar/models/account_move.py | 4 | ||||
| -rw-r--r-- | addons/l10n_latam_invoice_document/wizards/account_move_reversal.py | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/addons/l10n_ar/models/account_move.py b/addons/l10n_ar/models/account_move.py index 8d235662ca2..d4a0cb21949 100644 --- a/addons/l10n_ar/models/account_move.py +++ b/addons/l10n_ar/models/account_move.py @@ -11,8 +11,8 @@ class AccountMove(models.Model): _inherit = 'account.move' - @staticmethod - def _l10n_ar_get_document_number_parts(document_number, document_type_code): + @api.model + def _l10n_ar_get_document_number_parts(self, document_number, document_type_code): # import shipments if document_type_code in ['66', '67']: pos = invoice_number = '0' diff --git a/addons/l10n_latam_invoice_document/wizards/account_move_reversal.py b/addons/l10n_latam_invoice_document/wizards/account_move_reversal.py index 2565a2a05a1..de81b3c6ba7 100644 --- a/addons/l10n_latam_invoice_document/wizards/account_move_reversal.py +++ b/addons/l10n_latam_invoice_document/wizards/account_move_reversal.py @@ -27,8 +27,8 @@ class AccountMoveReversal(models.TransientModel): return res - @staticmethod - def _reverse_type_map(move_type): + @api.model + def _reverse_type_map(self, move_type): match = { 'entry': 'entry', 'out_invoice': 'out_refund', |
