diff options
| author | Nicolas Martinelli <nim@odoo.com> | 2015-08-04 15:22:55 +0200 |
|---|---|---|
| committer | Nicolas Martinelli <nim@odoo.com> | 2015-08-05 10:39:56 +0200 |
| commit | f26b94fd7da07aa384c250d4eaa8ff3bad8a8f1a (patch) | |
| tree | 6dc70c3fceeaf5fdd9f4f6e4ecfe5f04191c0be8 /addons/analytic_user_function | |
| parent | 663be8118f818190b329eba2120f8b0d78f5f0ef (diff) | |
[FIX] sale: filter taxes to keep the ones applying to the partner company
The problem originally arises in the frontend (eCommerce). In this case, it is
necessary to switch the user id to the SUPERUSER_ID in order to be allowed to
create a SO. This is done in the method sale_get_order in the module
website_sale. The consequence is that in a multicompany configuration, all taxes
of the product will be retrieved and applied in the frontend.
This fix filters the taxes retrieved to keep only the ones which apply to the
company of the partner, when the user id is SUPERUSER_ID.
opw-645258
opw-645915
Diffstat (limited to 'addons/analytic_user_function')
0 files changed, 0 insertions, 0 deletions
