diff options
| author | Jigar Vaghela <jva@odoo.com> | 2019-11-20 12:44:25 +0000 |
|---|---|---|
| committer | Jigar Vaghela <jva@odoo.com> | 2019-12-04 10:41:06 +0000 |
| commit | 616864e9680741dbbd2ffd59b5af871ef3439845 (patch) | |
| tree | 80f94bbb5814821b56cc3795b6093a5bbba52155 /addons | |
| parent | 087131fe54ad6a49a38cf2193f44cc1da27e78ab (diff) | |
[FIX] l10n_in: Fix tax grouping key
tax grouping key from base and tax line that will be used as a key to group taxes together
so both functions must have the same dictionary key. (you can check comment here https://github.com/odoo/odoo/blob/13.0/addons/account/models/account_move.py#L412)
here we have three key (product_id,product_uom_id,quantity) in _get_tax_grouping_key_from_base_line
and only one key (product_id) in _get_tax_grouping_key_from_tax_line
so we get wrong tax calculation
now we remove that extra key(product_uom_id, quantity) because we don't need group by these key values.
closes odoo/odoo#41340
X-original-commit: a758e5eace55bad0c11f8a27ba83e8367d293487
Signed-off-by: Josse Colpaert <jco@openerp.com>
Diffstat (limited to 'addons')
| -rw-r--r-- | addons/l10n_in/models/account_invoice.py | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/addons/l10n_in/models/account_invoice.py b/addons/l10n_in/models/account_invoice.py index b960b47c791..9a8a8496803 100644 --- a/addons/l10n_in/models/account_invoice.py +++ b/addons/l10n_in/models/account_invoice.py @@ -42,8 +42,6 @@ class AccountMove(models.Model): res = super()._get_tax_grouping_key_from_base_line(base_line, tax_vals) res.update({ 'product_id': base_line.product_id.id, - 'product_uom_id': base_line.product_uom_id.id, - 'quantity': base_line.quantity, }) return res |
