[FIX] stock: company on Procurement Rules
Add the `company_id` field on the `procurement.rule` form view, and set the default value to be the company of the `stock.location.route`. opw-1824570
This commit is contained in:
committed by
Nicolas Martinelli
parent
b26ad79a8c
commit
8456f425bc
@@ -78,6 +78,7 @@
|
||||
<group string="Applied On">
|
||||
<field name="location_id"/>
|
||||
<field name="warehouse_id" groups="base.group_no_one"/>
|
||||
<field name="company_id" options="{'no_create': True}" groups="base.group_multi_company"/>
|
||||
</group>
|
||||
<group string="Creates">
|
||||
<field name="location_src_id" attrs="{'required': [('action', '=', 'move')], 'invisible':[('action', '!=', 'move')]}" domain="[('usage','!=','view')]"/>
|
||||
|
||||
@@ -272,7 +272,7 @@
|
||||
<field name="push_ids" colspan="4" nolabel="1"/>
|
||||
</group>
|
||||
<group string="Procurement Rules" colspan="4" >
|
||||
<field name="pull_ids" colspan="4" nolabel="1"/>
|
||||
<field name="pull_ids" colspan="4" nolabel="1" context="{'default_company_id': company_id}"/>
|
||||
</group>
|
||||
</sheet>
|
||||
</form>
|
||||
|
||||
Reference in New Issue
Block a user