mirror of
https://github.com/OCA/stock-logistics-warehouse.git
synced 2025-01-21 14:27:28 +02:00
43 lines
1.7 KiB
XML
43 lines
1.7 KiB
XML
<?xml version="1.0"?>
|
|
<openerp>
|
|
<data>
|
|
|
|
<record id="view_partner_form" model="ir.ui.view" >
|
|
<field name="name">Partner Form Locations</field>
|
|
<field name="model">res.partner</field>
|
|
<field name="inherit_id" ref="stock.view_partner_property_form"/>
|
|
<field name="arch" type="xml">
|
|
<div name="buttons" position="inside">
|
|
<button
|
|
class="oe_inline oe_stat_button"
|
|
type="object"
|
|
context="{
|
|
'default_partner_id': id,
|
|
'default_usage': supplier and 'supplier' or 'customer',
|
|
}"
|
|
name="button_locations"
|
|
icon="fa-list">
|
|
<field string="Locations" name="locations_count" widget="statinfo"/>
|
|
</button>
|
|
</div>
|
|
|
|
<field name="property_stock_customer" position="attributes">
|
|
<attribute name="domain">[
|
|
('partner_id', 'in', [id, False]),
|
|
('usage', '=', 'customer'),
|
|
('company_id', 'in', [company_id, False]),
|
|
]</attribute>
|
|
</field>
|
|
<field name="property_stock_supplier" position="attributes">
|
|
<attribute name="domain">[
|
|
('partner_id', 'in', [id, False]),
|
|
('usage', '=', 'supplier'),
|
|
('company_id', 'in', [company_id, False]),
|
|
]</attribute>
|
|
</field>
|
|
</field>
|
|
</record>
|
|
|
|
</data>
|
|
</openerp>
|