[IMP] sale_planner: do not allow creating carriers from carrier selection fields

This commit is contained in:
Jared Kipe
2021-11-04 12:10:36 -07:00
parent 972b76be25
commit 6bbffa80d3
2 changed files with 3 additions and 3 deletions

View File

@@ -18,7 +18,7 @@
For example, you should add 1 FedEx carrier here and let us build up the For example, you should add 1 FedEx carrier here and let us build up the
rates for your other FedEx shipping methods. rates for your other FedEx shipping methods.
</div> </div>
<field name="sale_planner_carrier_ids" class="oe_inline" /> <field name="sale_planner_carrier_ids" class="oe_inline" options="{'no_create_edit': True, 'no_create': True}" />
</div> </div>
</div> </div>
<div class="col-lg-6 col-12 o_setting_box" id="sale_planner_warehouses"> <div class="col-lg-6 col-12 o_setting_box" id="sale_planner_warehouses">
@@ -29,7 +29,7 @@
Warehouses you typically ship inventory out of that you want to Warehouses you typically ship inventory out of that you want to
include in the planning of sale orders. include in the planning of sale orders.
</div> </div>
<field name="sale_planner_warehouse_ids" class="oe_inline" /> <field name="sale_planner_warehouse_ids" class="oe_inline" options="{'no_create_edit': True, 'no_create': True}" />
</div> </div>
</div> </div>
</xpath> </xpath>

View File

@@ -7,7 +7,7 @@
<field name="arch" type="xml"> <field name="arch" type="xml">
<xpath expr="//field[@name='partner_id']" position="after"> <xpath expr="//field[@name='partner_id']" position="after">
<field name="shipping_calendar_id" /> <field name="shipping_calendar_id" />
<field name="sale_planner_carrier_ids" /> <field name="sale_planner_carrier_ids" options="{'no_create_edit': True, 'no_create': True}" />
</xpath> </xpath>
</field> </field>
</record> </record>