Merge pull request #5472 from expsa/feature/warehouse-management-group-20251120-231359

Move Warehouse Management group to purchase_custom_stock module
This commit is contained in:
Mohamed Eltayar 2025-11-20 23:16:12 +03:00 committed by GitHub
commit 4044b5e57a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 17 additions and 17 deletions

View File

@ -54,21 +54,23 @@
<xpath expr="//field[@name='use_analytic']" position="attributes">
<attribute name="attrs">{'readonly':[('state','!=','draft')]}</attribute>
</xpath>
<xpath expr="//group[@string='Warehouse Management']" position="inside">
<field name="view_location_id" invisible="1"/>
<field name="edit_locations" invisible="1"/>
<field name="show_emp_button" invisible="1"/>
<field name="show_approve_warehouse" invisible="0"/>
<field name="has_asset_product_line" invisible="1"/>
<field name="show_asset_release_button" invisible="1"/>
<field name="all_assets_released" invisible="1"/>
<field name="asset_custody_complete" invisible="1"/>
<field name="warehouse_id"
attrs="{'readonly':['|',('edit_locations' , '=' , False),('state' , '!=' , 'warehouse')]}"
groups="stock.group_stock_user,stock.group_stock_manager"/>
<field name="location_id"
attrs="{'readonly':['|',('edit_locations' , '=' , False),('state' , '!=' , 'warehouse')]}"
groups="stock.group_stock_user,stock.group_stock_manager"/>
<xpath expr="//group[@string='Other Details']" position="after">
<group string="Warehouse Management" name="warehouse_management_group">
<field name="view_location_id" invisible="1"/>
<field name="edit_locations" invisible="1"/>
<field name="show_emp_button" invisible="1"/>
<field name="show_approve_warehouse" invisible="0"/>
<field name="has_asset_product_line" invisible="1"/>
<field name="show_asset_release_button" invisible="1"/>
<field name="all_assets_released" invisible="1"/>
<field name="asset_custody_complete" invisible="1"/>
<field name="warehouse_id"
attrs="{'readonly':['|',('edit_locations' , '=' , False),('state' , '!=' , 'warehouse')]}"
groups="stock.group_stock_user,stock.group_stock_manager"/>
<field name="location_id"
attrs="{'readonly':['|',('edit_locations' , '=' , False),('state' , '!=' , 'warehouse')]}"
groups="stock.group_stock_user,stock.group_stock_manager"/>
</group>
</xpath>
<xpath expr="//button[@name='open_requisition']" position="after">
<field name="picking_id" invisible="1"/>

View File

@ -96,8 +96,6 @@
attrs="{'invisible':[('use_analytic' , '=' , False)],'required':[('use_analytic' , '=' , True)],'readonly':[('state' , '!=' , 'draft')]}"
help="Analytic account for budget tracking"/>
</group>
<group string="Warehouse Management">
</group>
<field name="picking_type_id" invisible="1"/>
<field name="purchase_create" invisible="1"/>
<field name="company_id" invisible="1"/>