Commit 6e831d39 authored by santi's avatar santi
Browse files

Fix the partner form

parent 2ab1bdd4
......@@ -7,60 +7,30 @@
<field name="inherit_id" ref="base.view_partner_form"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='website']" position="after">
<field name="vat"/>
<field name="lang"/>
<field name="betabank_id" groups="account.group_account_user" />
<field name="betabank_id" groups="account.group_account_user" />
<field name="lang"/>
<label for="vat"/>
<div name="vat_info2">
<field name="vat" on_change="vat_change(vat)" placeholder="e.g. BE0477472701" class="oe_inline"/>
<button colspan="2" name="button_check_vat" string="Check Validity" type="object" icon="gtk-execute" class="oe_inline"/>
<field name="vat_subjected" class="oe_inline"/>
</div>
</xpath>
<xpath expr="//field[@name='user_id']" position="attributes">
<xpath expr="//notebook[@colspan='4']" position="attributes">
<attribute name="groups">account.group_account_user</attribute>
</xpath>
<xpath expr="//field[@name='ref']" position="attributes">
<attribute name="groups">account.group_account_user</attribute>
</xpath>
<xpath expr="//group/field[@name='date']" position="attributes">
<attribute name="groups">account.group_account_user</attribute>
</xpath>
<xpath expr="//group/field[@name='customer']" position="attributes">
<attribute name="groups">account.group_account_user</attribute>
</xpath>
<xpath expr="//group/field[@name='supplier']" position="attributes">
<attribute name="groups">account.group_account_user</attribute>
<xpath expr="//page/group/group/field[@name='lang']" position="replace">
<div></div>
</xpath>
<xpath expr="//field[@name='active']" position="attributes">
<attribute name="groups">account.group_account_user</attribute>
</xpath>
<xpath expr="//page[@name='sales_purchases']" position="attributes">
<attribute name="groups">account.group_account_user</attribute>
</xpath>
</field>
</field>
</record>
<record id="partner_form_view_inherit_account" model="ir.ui.view">
<field name="name">partner.form.view.inherit.account</field>
<field name="model">res.partner</field>
<field name="inherit_id" ref="account.view_partner_property_form"/>
<field name="inherit_id" ref="base_vat.view_partner_form"/>
<field name="arch" type="xml">
<xpath expr="//page[@name='accounting']" position="attributes">
<attribute name="groups">account.group_account_user</attribute>
</xpath>
</field>
</record>
<record id="partner_form_view_inherit_mail" model="ir.ui.view">
<field name="name">partner.form.view.inherit.mail</field>
<field name="model">res.partner</field>
<field name="inherit_id" ref="mail.view_emails_partner_info_form"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='notify_email']" position="attributes">
<attribute name="groups">account.group_account_user</attribute>
</xpath>
</field>
</record>
<record id="partner_form_view_inherit_opt" model="ir.ui.view">
<field name="name">partner.form.view.inherit.opt</field>
<field name="model">res.partner</field>
<field name="inherit_id" ref="email_template.res_partner_opt_out_form"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='opt_out']" position="attributes">
<attribute name="groups">account.group_account_user</attribute>
<xpath expr="//div[@name='vat_info']" position="replace">
<div></div>
</xpath>
</field>
</record>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment