diff options
| author | Goffin Simon <sig@odoo.com> | 2019-04-16 12:29:55 +0000 |
|---|---|---|
| committer | Goffin Simon <sig@odoo.com> | 2019-04-16 13:00:36 +0000 |
| commit | 8631d3cc648a0ea2852323a28aa775d495ee7e03 (patch) | |
| tree | b105cae38c72cc366c8b6b68d6b90565b956a1f1 /addons/crm/data | |
| parent | 06b3a290f54e613d3cd295f32ac1780e4e576550 (diff) | |
[FIX] sale: _get_conversion_rate called with no date
Steps to reproduce the bug:
- Define two pricelists P1(€) the default one and P2($) with discount_policy = 'without_discount'
- Activate P1 and P2 on the website
- Go on the shop and select P2
Bug:
An error was raised from function _get_conversion_rate because the arguments date and company_id were not defined
because the function _get_real_price_currency was called from _website_product_id_change with
the model "self.env['sale.order.line'] and not with a recordset. So the fields self.company_id and self.order_id.date_order
were not defined.
opw:1969849
closes odoo/odoo#32726
Signed-off-by: Simon Goffin (sig) <sig@openerp.com>
Diffstat (limited to 'addons/crm/data')
0 files changed, 0 insertions, 0 deletions
