|
@@ -6,29 +6,13 @@
|
|
|
<field name="name">res.partner.partner_credit_limit.form</field>
|
|
|
<field name="model">res.partner</field>
|
|
|
<field name="inherit_id" ref="account.view_partner_property_form"/>
|
|
|
+ <field name="groups_id" eval="[(6, 0, [ref('base.group_sale_salesman')])]"/>
|
|
|
<field name="arch" type="xml">
|
|
|
- <xpath expr="//form[@string='Partners']//field[@name='credit_limit']" position="attributes">
|
|
|
+ <xpath expr="//field[@name='credit_limit']" position="attributes">
|
|
|
<attribute name="readonly">1</attribute>
|
|
|
</xpath>
|
|
|
- <xpath expr="//form[@string='Partners']//field[@name='check_limit']" position="attributes">
|
|
|
- <attribute name="readonly">1</attribute>
|
|
|
- </xpath>
|
|
|
- </field>
|
|
|
- </record>
|
|
|
- <!-- Make not readonly for user_edit_credit_limit -->
|
|
|
- <record id="view_credit_editable_partner_form" model="ir.ui.view">
|
|
|
- <field name="name">res.partner.partner_credit_limit.form</field>
|
|
|
- <field name="model">res.partner</field>
|
|
|
- <field name="inherit_id" ref="partner_credit_limit.view_credit_readonly_partner_form"/>
|
|
|
- <field name="groups_id" eval="[(6, 0, [ref('partner_credit_limit.credit_config')])]"/>
|
|
|
- <field name="arch" type="xml">
|
|
|
- <xpath expr="//form[@string='Partners']//field[@name='credit_limit']" position="attributes">
|
|
|
- <attribute name="readonly">0</attribute>
|
|
|
- </xpath>
|
|
|
- <xpath expr="//form[@string='Partners']//field[@name='check_limit']" position="attributes">
|
|
|
- <attribute name="readonly">0</attribute>
|
|
|
- </xpath>
|
|
|
</field>
|
|
|
</record>
|
|
|
+
|
|
|
</data>
|
|
|
</openerp>
|