diff options
| author | root <yenthevg@gmail.com> | 2020-12-05 14:19:23 +0000 |
|---|---|---|
| committer | root <yenthevg@gmail.com> | 2020-12-05 14:26:23 +0000 |
| commit | d9a1b28144523ece2c6fa4329f3ae4b7ff4a38ec (patch) | |
| tree | 26213841aa69ad16b113a1afc9bb4203dec1a273 /addons/website_sale | |
| parent | 694452e5581aa28ae89024a6b5f70a273fb2bdf8 (diff) | |
[FIX] website_sale: compare id with id instead of record
Before this commit Odoo tries to compare an 'account.fiscal.position' id with an 'account.fiscal.position' record.
This causes a 'Comparing apples and oranges' warning in the logs and is not the right way to do this.
This is a fix for d89fa970e8e5b07f1b9a396e6ee02db7fdd136e4 where this issue was introduced
closes odoo/odoo#62924
Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com>
Diffstat (limited to 'addons/website_sale')
| -rw-r--r-- | addons/website_sale/models/website.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/website_sale/models/website.py b/addons/website_sale/models/website.py index 482a2a472c0..8267d094a73 100644 --- a/addons/website_sale/models/website.py +++ b/addons/website_sale/models/website.py @@ -264,7 +264,7 @@ class Website(models.Model): self.env['account.fiscal.position'].sudo() .with_company(sale_order.company_id.id) .get_fiscal_position(sale_order.partner_id.id, delivery_id=sale_order.partner_shipping_id.id) - ) + ).id if sale_order.fiscal_position_id.id != fpos_id: sale_order = None |
