[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: c058562d73

closes odoo/odoo#35856

Signed-off-by: pimodoo <pimodoo@users.noreply.github.com>
This commit is contained in:
Pierre Masereel
2019-08-20 20:06:51 +00:00
parent 0d1fdb0b95
commit a4a52da121
@@ -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"/>