summaryrefslogtreecommitdiff
path: root/addons/mail/static/src/js/thread_windows/thread_window.js
diff options
context:
space:
mode:
authorNicolas Martinelli <nim@odoo.com>2019-08-27 13:21:16 +0000
committerNicolas Martinelli <nim@odoo.com>2019-08-27 13:30:41 +0000
commit5d088e6a9040cbf6e348383923fadb349a07dc99 (patch)
tree7052f2771548547904e638d1653e43abcaf899f4 /addons/mail/static/src/js/thread_windows/thread_window.js
parentdb9a0a9fe18c282a0694dd64495bb8d329d3e9fe (diff)
[FIX] account_tax_python: product is a template
- Create a new tax, using the 'Python Code' tax computation - In 'Applicable Code' field, use a field only available on the `product.product` model (e.g. `product.code`) - Attach this new tax to a product that is available in the eCommerce - Access the eCommerce, search for the product if not displayed. The template `website_sale.products_item` crashes at rendering because `code` is not available on a `product.template`. `product` is supposed to be a `product.product` recordset. However, the method `_get_combination_info` of `sale` is made in such a way that we can fetch the information of a template, not a product. Utlimately, methods `compute_all` and `_compute_amount` are called with the wrong object. We fall back on the first variant in this case. opw-2056722 closes odoo/odoo#36134 Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
Diffstat (limited to 'addons/mail/static/src/js/thread_windows/thread_window.js')
0 files changed, 0 insertions, 0 deletions