|
| 1 | +<?xml version="1.0" encoding="utf-8" ?> |
| 2 | +<odoo> |
| 3 | + <record id="res_partner_form_view" model="ir.ui.view"> |
| 4 | + <field name="name">res.partner.view.form</field> |
| 5 | + <field name="model">res.partner</field> |
| 6 | + <field name="inherit_id" ref="base.view_partner_form" /> |
| 7 | + <field name="arch" type="xml"> |
| 8 | + <field name="street" position="attributes"> |
| 9 | + <attribute |
| 10 | + name="attrs" |
| 11 | + >{'required': [('company_type', '=', 'company')]}</attribute> |
| 12 | + </field> |
| 13 | + <field name="ref" position="attributes"> |
| 14 | + <attribute |
| 15 | + name="attrs" |
| 16 | + >{'required': [('company_type', '=', 'company')]}</attribute> |
| 17 | + </field> |
| 18 | + <field name="city" position="attributes"> |
| 19 | + <attribute |
| 20 | + name="attrs" |
| 21 | + >{'required': [('company_type', '=', 'company')]}</attribute> |
| 22 | + </field> |
| 23 | + <field name="state_id" position="attributes"> |
| 24 | + <attribute |
| 25 | + name="attrs" |
| 26 | + >{'required': [('company_type', '=', 'company')]}</attribute> |
| 27 | + </field> |
| 28 | + <field name="zip" position="attributes"> |
| 29 | + <attribute |
| 30 | + name="attrs" |
| 31 | + >{'required': [('company_type', '=', 'company')]}</attribute> |
| 32 | + </field> |
| 33 | + <field name="vat" position="attributes"> |
| 34 | + <attribute |
| 35 | + name="attrs" |
| 36 | + >{'required': [('company_type', '=', 'company')]}</attribute> |
| 37 | + </field> |
| 38 | + <field name="lang" position="attributes"> |
| 39 | + <attribute |
| 40 | + name="attrs" |
| 41 | + >{'required': [('company_type', '=', 'company')]}</attribute> |
| 42 | + </field> |
| 43 | + <field name="country_id" position="attributes"> |
| 44 | + <attribute |
| 45 | + name="attrs" |
| 46 | + >{'required': [('company_type', '=', 'company')]}</attribute> |
| 47 | + </field> |
| 48 | + </field> |
| 49 | + </record> |
| 50 | +</odoo> |
0 commit comments