summaryrefslogtreecommitdiff
path: root/addons/mail/data/mail_shortcode_data.xml
diff options
context:
space:
mode:
authorJoren Van Onder <jov@odoo.com>2016-01-06 15:53:16 +0100
committerJoren Van Onder <jov@odoo.com>2016-01-06 16:45:28 +0100
commit70e43b18e0c114bc4649a2c0761a5063602cd056 (patch)
treed4bf320d9da1f232d6e745ce77f7b6a8e9301f13 /addons/mail/data/mail_shortcode_data.xml
parent833fe492d1963edcf0bbca6949d9a0933aacf269 (diff)
[FIX] point_of_sale: use tax_ids on the pos orderline, not the product
We have taxes on pos.order.line and we have taxes on the product of the `pos.order.line`. There was no real consensus in the POS about which taxes to use. As long as they're the same it doesn't cause issues, but if someone where to change the taxes on a product which is used in an open `pos.session` things will start going wrong. When closing the pos.session amount_total of the `pos.order` in question will not equal tax `account.move.lines` + product `account.move.lines`. The reason for it is that we use the taxes on the `pos.order.line` for the tax account.move.lines, whereas amount_total used the taxes on product. This fixes the problem by always using the tax set on `pos.order.line`. This tax should be set only once through `_order_line_fields` during orderline creation. After that it shouldn't change. Therefore `pos.sessions` won't be affected by changes to taxes of products anymore. opw-660765
Diffstat (limited to 'addons/mail/data/mail_shortcode_data.xml')
0 files changed, 0 insertions, 0 deletions