summaryrefslogtreecommitdiff
path: root/addons/delivery/wizard
diff options
context:
space:
mode:
authorPierre Masereel <pim@odoo.com>2019-08-20 13:14:02 +0000
committerPierre Masereel <pim@odoo.com>2019-08-20 20:06:51 +0000
commita4a52da121fedc7301e48d62584ac93969ceb9c2 (patch)
tree09ff53a2430b444fcb11b8dfd2e55a0a03af6e79 /addons/delivery/wizard
parent0d1fdb0b95a671e50d9875a81bfab88eeae910bf (diff)
[FIX] delivery: wrong domain on carrier list
When you try to find a carrier in the wizard that let you add one on your sale order, you don't see all of them because of a domain that only show the ones that havethe same company id of the sale order, but it should also show you the ones that don't have company_id set. So we removed the domain in the view, and the invisible company_id as it is not used anymore. Because the domain we need is already applied in 'available_carrier_ids'. This behavior has been introduced in rev: c058562d7301298fd71b2618b5386611dfeb81cb closes odoo/odoo#35856 Signed-off-by: pimodoo <pimodoo@users.noreply.github.com>
Diffstat (limited to 'addons/delivery/wizard')
-rw-r--r--addons/delivery/wizard/choose_delivery_carrier_views.xml3
1 files changed, 1 insertions, 2 deletions
diff --git a/addons/delivery/wizard/choose_delivery_carrier_views.xml b/addons/delivery/wizard/choose_delivery_carrier_views.xml
index a853fe1b391..c0876733a1a 100644
--- a/addons/delivery/wizard/choose_delivery_carrier_views.xml
+++ b/addons/delivery/wizard/choose_delivery_carrier_views.xml
@@ -8,10 +8,9 @@
<field name='available_carrier_ids' invisible="1"/>
<group>
<group>
- <field name="carrier_id" domain="[('id', 'in', available_carrier_ids), '|', ('company_id', '=', company_id), ('company_id', '=', False)]" widget='radio'/>
+ <field name="carrier_id" domain="[('id', 'in', available_carrier_ids)]" widget='radio'/>
<field name="delivery_type" invisible="1"/>
<field name="currency_id" invisible="1"/>
- <field name="company_id" invisible="1"/>
<field name="order_id" invisible="1"/>
<field name='delivery_price' invisible="1"/>
<label for="display_price"/>