|
|
|
|
@@ -10,6 +10,12 @@
|
|
|
|
|
<attribute name="delete">false</attribute>
|
|
|
|
|
<!-- <attribute name="edit">false</attribute>-->
|
|
|
|
|
</form>
|
|
|
|
|
<field name="name" position="attributes">
|
|
|
|
|
<attribute name="attrs">{'readonly': [('id','!=', False)]}</attribute>
|
|
|
|
|
</field>
|
|
|
|
|
<field name="company_type" position="attributes">
|
|
|
|
|
<attribute name="attrs">{'readonly': [('id','!=', False)]}</attribute>
|
|
|
|
|
</field>
|
|
|
|
|
<field name="vat" position="after">
|
|
|
|
|
<field name="customer_rank" invisible="1"/>
|
|
|
|
|
<field name="supplier_rank" invisible="1"/>
|
|
|
|
|
@@ -66,9 +72,12 @@
|
|
|
|
|
<field name="industry_id" position="attributes">
|
|
|
|
|
<attribute name="attrs">{'readonly': [('id','!=', False)]}</attribute>
|
|
|
|
|
</field>
|
|
|
|
|
<field name="comment" position="attributes">
|
|
|
|
|
<xpath expr="//field[@name='comment']" position="attributes">
|
|
|
|
|
<attribute name="attrs">{'readonly': [('id','!=', False)]}</attribute>
|
|
|
|
|
</field>
|
|
|
|
|
</xpath>
|
|
|
|
|
<xpath expr="//page[@name='internal_notes']/field[@name='comment']" position="attributes">
|
|
|
|
|
<attribute name="attrs">{'readonly': [('id','!=', False)]}</attribute>
|
|
|
|
|
</xpath>
|
|
|
|
|
<field name="zip" position="attributes">
|
|
|
|
|
<attribute name="attrs">{'readonly': [('id','!=', False)]}</attribute>
|
|
|
|
|
</field>
|
|
|
|
|
@@ -84,8 +93,8 @@
|
|
|
|
|
</field>
|
|
|
|
|
</record>
|
|
|
|
|
|
|
|
|
|
<record model="ir.ui.view" id="view_partner_property_form_inherit_sf">
|
|
|
|
|
<field name="name">res.partner.property.form.inherit.sf</field>
|
|
|
|
|
<record model="ir.ui.view" id="view_partner_property_form_account_inherit_sf">
|
|
|
|
|
<field name="name">res.partner.account.form.inherit.sf</field>
|
|
|
|
|
<field name="model">res.partner</field>
|
|
|
|
|
<field name="inherit_id" ref="account.view_partner_property_form"/>
|
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
|
@@ -94,6 +103,79 @@
|
|
|
|
|
widget="many2one_avatar_user"
|
|
|
|
|
attrs="{'required' : [('supplier_rank','>', 0)],'readonly': [('customer_rank','>', 0)]}"/>
|
|
|
|
|
</field>
|
|
|
|
|
<xpath expr="//field[@name='property_account_position_id']" position="attributes">
|
|
|
|
|
<attribute name="attrs">{'readonly': [('id','!=', False)]}</attribute>
|
|
|
|
|
</xpath>
|
|
|
|
|
<xpath expr="//field[@name='property_payment_term_id']" position="attributes">
|
|
|
|
|
<attribute name="attrs">{'readonly': [('id','!=', False)]}</attribute>
|
|
|
|
|
</xpath>
|
|
|
|
|
<xpath expr="//field[@name='property_supplier_payment_term_id']" position="attributes">
|
|
|
|
|
<attribute name="attrs">{'readonly': [('id','!=', False)]}</attribute>
|
|
|
|
|
</xpath>
|
|
|
|
|
<xpath expr="//field[@name='bank_ids']" position="attributes">
|
|
|
|
|
<attribute name="attrs">{'readonly': [('id','!=', False)]}</attribute>
|
|
|
|
|
</xpath>
|
|
|
|
|
</field>
|
|
|
|
|
</record>
|
|
|
|
|
|
|
|
|
|
<record model="ir.ui.view" id="view_partner_delivery_form_inherit_sf">
|
|
|
|
|
<field name="name">res.partner.delivery.form.inherit.sf</field>
|
|
|
|
|
<field name="model">res.partner</field>
|
|
|
|
|
<field name="inherit_id" ref="delivery.view_partner_property_form"/>
|
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
|
<xpath expr="//field[@name='property_delivery_carrier_id']" position="attributes">
|
|
|
|
|
<attribute name="attrs">{'readonly': [('id','!=', False)]}</attribute>
|
|
|
|
|
</xpath>
|
|
|
|
|
</field>
|
|
|
|
|
</record>
|
|
|
|
|
|
|
|
|
|
<record model="ir.ui.view" id="view_partner_stock_form_inherit_sf">
|
|
|
|
|
<field name="name">res.partner.stock.form.inherit.sf</field>
|
|
|
|
|
<field name="model">res.partner</field>
|
|
|
|
|
<field name="inherit_id" ref="stock.view_partner_stock_form"/>
|
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
|
<xpath expr="//field[@name='property_stock_customer']" position="attributes">
|
|
|
|
|
<attribute name="attrs">{'readonly': [('id','!=', False)]}</attribute>
|
|
|
|
|
</xpath>
|
|
|
|
|
<xpath expr="//field[@name='property_stock_supplier']" position="attributes">
|
|
|
|
|
<attribute name="attrs">{'readonly': [('id','!=', False)]}</attribute>
|
|
|
|
|
</xpath>
|
|
|
|
|
</field>
|
|
|
|
|
</record>
|
|
|
|
|
|
|
|
|
|
<record model="ir.ui.view" id="view_partner_mrp_subcontracting_form_inherit_sf">
|
|
|
|
|
<field name="name">res.partner.mrp.subcontracting.form.inherit.sf</field>
|
|
|
|
|
<field name="model">res.partner</field>
|
|
|
|
|
<field name="inherit_id" ref="mrp_subcontracting.view_partner_mrp_subcontracting_form"/>
|
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
|
<xpath expr="//field[@name='property_stock_subcontractor']" position="attributes">
|
|
|
|
|
<attribute name="attrs">{'readonly': [('id','!=', False)]}</attribute>
|
|
|
|
|
</xpath>
|
|
|
|
|
</field>
|
|
|
|
|
</record>
|
|
|
|
|
|
|
|
|
|
<record model="ir.ui.view" id="view_partner_purchase_form_inherit_sf">
|
|
|
|
|
<field name="name">res.partner.purchase.form.inherit.sf</field>
|
|
|
|
|
<field name="model">res.partner</field>
|
|
|
|
|
<field name="inherit_id" ref="purchase.view_partner_property_form"/>
|
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
|
<xpath expr="//field[@name='receipt_reminder_email']" position="attributes">
|
|
|
|
|
<attribute name="attrs">{'readonly': [('id','!=', False)]}</attribute>
|
|
|
|
|
</xpath>
|
|
|
|
|
<xpath expr="//field[@name='property_purchase_currency_id']" position="attributes">
|
|
|
|
|
<attribute name="attrs">{'readonly': [('id','!=', False)]}</attribute>
|
|
|
|
|
</xpath>
|
|
|
|
|
</field>
|
|
|
|
|
</record>
|
|
|
|
|
|
|
|
|
|
<record model="ir.ui.view" id="view_partner_team_form_inherit_sf">
|
|
|
|
|
<field name="name">res.partner.team.form.inherit.sf</field>
|
|
|
|
|
<field name="model">res.partner</field>
|
|
|
|
|
<field name="inherit_id" ref="sales_team.res_partner_view_team"/>
|
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
|
<xpath expr="//field[@name='team_id'][2]" position="attributes">
|
|
|
|
|
<attribute name="attrs">{'readonly': [('id','!=', False)]}</attribute>
|
|
|
|
|
</xpath>
|
|
|
|
|
</field>
|
|
|
|
|
</record>
|
|
|
|
|
|
|
|
|
|
|