summaryrefslogtreecommitdiff
path: root/addons
diff options
context:
space:
mode:
authorQiuyu (QHO) <qho@odoo.com>2020-12-03 13:30:07 +0000
committerNicolas Martinelli <nim@odoo.com>2020-12-07 12:34:42 +0000
commit82cad06e934de0cb559c15ddd7a687ab8a4432d4 (patch)
tree57cfb5b52822894d9b3cc72e7ae22b6869ce0e8b /addons
parentfd477f3f6d331355b5667a12b43d1c4a110b7e21 (diff)
[FIX] l10n_cl: _post() method should return in l10n_cl
Steps to reproduce: 1. Set the company with country "Argentina" 2. Install modules `account_accountant`, `l10n_ar`, `l10n_ar_edi` and `l10n_cl` 3. Create a new invoice 4. Confirm the inovice => TypeError: Mixing apples and oranges Reason: `_post()` method in `l10n_cl` module does not return any value so `None` is returned [1] The return value is used to be concated in `_post()` method in `l10n_ar_edi` moodule [2] Solution: `_post()` method should return `account.move` object opw-2409156 [1] https://github.com/odoo/odoo/blob/14.0/addons/l10n_cl/models/account_move.py#L99 [2] https://github.com/odoo/enterprise/blob/c814ab1ad67140c9976860fab5ff37e6c713733d/l10n_ar_edi/models/account_move.py#L150 closes odoo/odoo#62824 Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
Diffstat (limited to 'addons')
-rw-r--r--addons/l10n_cl/models/account_move.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/l10n_cl/models/account_move.py b/addons/l10n_cl/models/account_move.py
index 1380871ec56..c8ac1676650 100644
--- a/addons/l10n_cl/models/account_move.py
+++ b/addons/l10n_cl/models/account_move.py
@@ -96,7 +96,7 @@ class AccountMove(models.Model):
def _post(self, soft=True):
self._check_document_types_post()
- super()._post(soft)
+ return super()._post(soft)
def _l10n_cl_get_formatted_sequence(self, number=0):
return '%s %06d' % (self.l10n_latam_document_type_id.doc_code_prefix, number)