añadido Warehouse Restrictions
This commit is contained in:
parent
b3a9100333
commit
9736628ac3
40 changed files with 719 additions and 0 deletions
35
warehouse_stock_restrictions/users_view.xml
Normal file
35
warehouse_stock_restrictions/users_view.xml
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<openerp>
|
||||
<data>
|
||||
<record id="view_users_form" model="ir.ui.view">
|
||||
<field name="name">usability.default_warehouse.res.users.form</field>
|
||||
<field name="model">res.users</field>
|
||||
<field name="inherit_id" ref="base.view_users_form"/>
|
||||
<field name="arch" type="xml">
|
||||
<group name="messaging" position="before">
|
||||
<group string="Warehouse Restrictions" attrs="{'invisible': [('login','=', 'admin')]}">
|
||||
<field name="default_picking_type_ids" widget="many2many_tags" attrs="{'invisible': [('login','=', 'admin')]}"/>
|
||||
</group>
|
||||
</group>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="view_location_security_users_form" model="ir.ui.view">
|
||||
<field name="name">location_security.users.form</field>
|
||||
<field name="model">res.users</field>
|
||||
<field name="inherit_id" ref="base.view_users_form"/>
|
||||
<field name="arch" type="xml">
|
||||
<group name="messaging" position="before">
|
||||
<group string="Locations" attrs="{'invisible': [('login','=', 'admin')]}">
|
||||
<field name="restrict_locations" attrs="{'invisible': [('login','=', 'admin')]}"/>
|
||||
</group>
|
||||
</group>
|
||||
<notebook>
|
||||
<page string="Allowed Stock Locations" attrs="{'invisible': [('restrict_locations','!=', True)]}">
|
||||
<field name="stock_location_ids" nolabel="1" colspan="2"/>
|
||||
</page>
|
||||
</notebook>
|
||||
</field>
|
||||
</record>
|
||||
</data>
|
||||
</openerp>
|
||||
Loading…
Add table
Add a link
Reference in a new issue