diff options
| author | Qiuyu (QHO) <qho@odoo.com> | 2020-12-03 13:30:07 +0000 |
|---|---|---|
| committer | Nicolas Martinelli <nim@odoo.com> | 2020-12-07 12:34:42 +0000 |
| commit | 82cad06e934de0cb559c15ddd7a687ab8a4432d4 (patch) | |
| tree | 57cfb5b52822894d9b3cc72e7ae22b6869ce0e8b /addons/im_livechat/static/src/models/thread/thread.js | |
| parent | fd477f3f6d331355b5667a12b43d1c4a110b7e21 (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/im_livechat/static/src/models/thread/thread.js')
0 files changed, 0 insertions, 0 deletions
