diff options
| author | Nicolas Martinelli <nim@odoo.com> | 2019-02-27 09:39:32 +0000 |
|---|---|---|
| committer | Nicolas Martinelli <nim@odoo.com> | 2019-02-27 09:39:32 +0000 |
| commit | 70c8fd7f759de9109eee2dd29f2573c5f60594e9 (patch) | |
| tree | 702f5d07b3f5b9748f0771ffa9a5571115af80ef /addons/web/static/src/xml | |
| parent | 2181a9fb964f9a3d1e360b7c12a00ddf8dc03834 (diff) | |
[FIX] sale_management: optional product
- Activate 'Multiple prices per product'
- Create a Product A, and add an entry in the 'Pricing' section of the
product form
- Create a SO, a product, and add A in the 'Optional Products' tab.
- Click on 'Add to order lines'
A crash occurs at currency conversion.
When getting the conversion rate, the company is empty in method
`_get_conversion_rate`. This is because the company is a stored related
field, which is computed after creation. However, the method
`_prepare_add_missing_fields` is called before creation. This method
calls several onchange methods, one of them computing a price
conversion.
We explicitly add the company when creating the SO line.
opw-1939106
closes odoo/odoo#31455
Diffstat (limited to 'addons/web/static/src/xml')
0 files changed, 0 insertions, 0 deletions
