1
0
forked from Mapan/odoo17e
odoo17e-kedaikipas58/addons/l10n_be_reports/views/res_partner_views.xml
2024-12-10 09:04:09 +07:00

100 lines
5.1 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<data>
<record id="res_partner_view_form" model="ir.ui.view">
<field name="name">res.partner.view.form</field>
<field name="model">res.partner</field>
<field name="inherit_id" ref="base.view_partner_form" />
<field name="priority" eval="1"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='street']" position="attributes">
<attribute name="required">'street' in context.get('required_fields', [])</attribute>
</xpath>
<xpath expr="//field[@name='city']" position="attributes">
<attribute name="required">'city' in context.get('required_fields', [])</attribute>
</xpath>
<xpath expr="//field[@name='zip']" position="attributes">
<attribute name="required">'zip' in context.get('required_fields', [])</attribute>
</xpath>
<xpath expr="//field[@name='country_id']" position="attributes">
<attribute name="required">'country_code' in context.get('required_fields', [])</attribute>
</xpath>
<xpath expr="//field[@name='vat']" position="attributes">
<attribute name="required">'vat' in context.get('required_fields', [])</attribute>
</xpath>
</field>
</record>
<record id="res_partner_view_form_inherit_mail" model="ir.ui.view">
<field name="name">res.partner.view.form.inherit.mail</field>
<field name="model">res.partner</field>
<field name="inherit_id" ref="mail.res_partner_view_form_inherit_mail" />
<field name="priority" eval="1"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='email']" position="attributes">
<attribute name="required">'email' in context.get('required_fields', []) or user_ids</attribute>
</xpath>
</field>
</record>
<record id="view_partner_281_50_required_fields" model="ir.ui.view">
<field name="name">res.partner.tree</field>
<field name="model">res.partner</field>
<field name="arch" type="xml">
<tree string="Partner with missing information" multi_edit="1">
<field name="name" required="1"/>
<field name="is_company" column_invisible="True"/>
<field name="street" required="1"/>
<field name="zip" required="1"/>
<field name="city" required="1"/>
<field name="country_id" required="1"/>
<field name="phone" required="'phone' in context.get('required_fields', [])" column_invisible="'phone' not in context.get('required_fields', [])"/>
<field name="vat" required="is_company"/>
<field name="citizen_identification" invisible="is_company" required="not is_company"/>
</tree>
</field>
</record>
<record id="res_partner_view_form_281_50_required_field" model="ir.ui.view">
<field name="name">res.partner.view.form</field>
<field name="model">res.partner</field>
<field name="inherit_id" ref="base.view_partner_form"/>
<field name="priority" eval="1"/>
<field name="mode">primary</field>
<field name="arch" type="xml">
<xpath expr="//field[@name='street']" position="attributes">
<attribute name="required">1</attribute>
</xpath>
<xpath expr="//field[@name='zip']" position="attributes">
<attribute name="required">1</attribute>
</xpath>
<xpath expr="//field[@name='country_id']" position="attributes">
<attribute name="required">1</attribute>
</xpath>
<xpath expr="//field[@name='vat']" position="attributes">
<attribute name="required">is_company</attribute>
</xpath>
<xpath expr="//field[@name='citizen_identification']" position="attributes">
<attribute name="required">not is_company</attribute>
</xpath>
<xpath expr="//field[@name='phone']" position="attributes">
<attribute name="required">'phone' in context.get('required_fields', [])</attribute>
</xpath>
</field>
</record>
<record id="res_partner_vat_listing_warning_view_tree" model="ir.ui.view">
<field name="name">res.partner.vat.listing.warning.view.tree</field>
<field name="model">res.partner</field>
<field name="arch" type="xml">
<tree create="false" editable="bottom">
<field name="name" readonly="true"/>
<field name="country_id"/>
<field name="vat"/>
</tree>
</field>
</record>
</data>
</odoo>