Browse Source

pre-commit update

14.0
OCA-git-bot 5 years ago
committed by Tran Thanh Phuc
parent
commit
261e0797a8
  1. 71
      partner_identification/views/res_partner_id_category_view.xml
  2. 76
      partner_identification/views/res_partner_id_number_view.xml
  3. 38
      partner_identification/views/res_partner_view.xml

71
partner_identification/views/res_partner_id_category_view.xml

@ -1,41 +1,38 @@
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<!-- Partner Identification Number Categories -->
<record id="view_partner_id_category_form" model="ir.ui.view">
<field name="name">res.partner.id_category.form</field>
<field name="model">res.partner.id_category</field>
<field name="type">form</field>
<field name="arch" type="xml">
<form string="Partner Identification Categories">
<group>
<!-- Partner Identification Number Categories -->
<record id="view_partner_id_category_form" model="ir.ui.view">
<field name="name">res.partner.id_category.form</field>
<field name="model">res.partner.id_category</field>
<field name="type">form</field>
<field name="arch" type="xml">
<form string="Partner Identification Categories">
<group>
<field name="name" />
<field name="code" />
</group>
</form>
</field>
</record>
<record id="view_partner_id_category_tree" model="ir.ui.view">
<field name="name">res.partner.id_category.tree</field>
<field name="model">res.partner.id_category</field>
<field name="type">tree</field>
<field name="arch" type="xml">
<tree string="Partner Identification Categories">
<field name="name" />
<field name="code" />
</group>
</form>
</field>
</record>
<record id="view_partner_id_category_tree" model="ir.ui.view">
<field name="name">res.partner.id_category.tree</field>
<field name="model">res.partner.id_category</field>
<field name="type">tree</field>
<field name="arch" type="xml">
<tree string="Partner Identification Categories">
<field name="name"/>
<field name="code"/>
</tree>
</field>
</record>
<record id="action_partner_id_category" model="ir.actions.act_window">
<field name="name">Partner ID Categories</field>
<field name="res_model">res.partner.id_category</field>
<field name="view_mode">tree,form</field>
</record>
<menuitem action="action_partner_id_category"
id="menu_partner_id_category"
parent="contacts.res_partner_menu_config"/>
</tree>
</field>
</record>
<record id="action_partner_id_category" model="ir.actions.act_window">
<field name="name">Partner ID Categories</field>
<field name="res_model">res.partner.id_category</field>
<field name="view_mode">tree,form</field>
</record>
<menuitem
action="action_partner_id_category"
id="menu_partner_id_category"
parent="contacts.res_partner_menu_config"
/>
</odoo>

76
partner_identification/views/res_partner_id_number_view.xml

@ -1,49 +1,45 @@
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<record id="view_partner_id_numbers_form" model="ir.ui.view">
<field name="name">res.partner.id_number.form</field>
<field name="model">res.partner.id_number</field>
<field name="type">form</field>
<field name="arch" type="xml">
<form string="Partner ID Numbers">
<group>
<record id="view_partner_id_numbers_form" model="ir.ui.view">
<field name="name">res.partner.id_number.form</field>
<field name="model">res.partner.id_number</field>
<field name="type">form</field>
<field name="arch" type="xml">
<form string="Partner ID Numbers">
<group>
<field name="category_id" />
<field name="name" />
<field name="partner_issued_id" />
<field name="date_issued" />
<field name="place_issuance" />
<field name="valid_from" />
<field name="valid_until" />
<field name="status" />
</group>
<separator colspan="4" string="Notes" />
<field name="comment" colspan="4" nolabel="1" />
</form>
</field>
</record>
<record id="view_partner_id_numbers_tree" model="ir.ui.view">
<field name="name">res.partner.id_number.tree</field>
<field name="model">res.partner.id_number</field>
<field name="type">tree</field>
<field name="arch" type="xml">
<tree string="Partner ID Numbers">
<field name="category_id" />
<field name="name" />
<field name="partner_issued_id" />
<field name="date_issued" />
<field name="place_issuance" />
<field name="valid_from" />
<field name="valid_until" />
<field name="status" />
</group>
<separator colspan="4" string="Notes"/>
<field name="comment" colspan="4" nolabel="1"/>
</form>
</field>
</record>
<record id="view_partner_id_numbers_tree" model="ir.ui.view">
<field name="name">res.partner.id_number.tree</field>
<field name="model">res.partner.id_number</field>
<field name="type">tree</field>
<field name="arch" type="xml">
<tree string="Partner ID Numbers">
<field name="category_id" />
<field name="name" />
<field name="partner_issued_id" />
<field name="date_issued" />
<field name="valid_from" />
<field name="valid_until" />
<field name="status" />
</tree>
</field>
</record>
<record id="action_partner_id_numbers_form" model="ir.actions.act_window">
<field name="name">Partner ID Numbers</field>
<field name="res_model">res.partner.id_number</field>
<field name="view_mode">tree,form</field>
</record>
</tree>
</field>
</record>
<record id="action_partner_id_numbers_form" model="ir.actions.act_window">
<field name="name">Partner ID Numbers</field>
<field name="res_model">res.partner.id_number</field>
<field name="view_mode">tree,form</field>
</record>
</odoo>

38
partner_identification/views/res_partner_view.xml

@ -1,20 +1,22 @@
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<!-- Modification of Partner - Adding Tab for Idenification Numbers -->
<record model="ir.ui.view" id="view_partner_form">
<field name="name">res.partner.form.id_number</field>
<field name="model">res.partner</field>
<field name="inherit_id" ref="base.view_partner_form"/>
<field name="priority" eval="10"/>
<field name="arch" type="xml">
<page name='sales_purchases' position="after">
<page string="ID Numbers" name="id_numbers">
<field name="id_numbers" colspan="4" nolabel="1"
widget="one2many_list"/>
</page>
</page>
</field>
</record>
<!-- Modification of Partner - Adding Tab for Idenification Numbers -->
<record model="ir.ui.view" id="view_partner_form">
<field name="name">res.partner.form.id_number</field>
<field name="model">res.partner</field>
<field name="inherit_id" ref="base.view_partner_form" />
<field name="priority" eval="10" />
<field name="arch" type="xml">
<page name='sales_purchases' position="after">
<page string="ID Numbers" name="id_numbers">
<field
name="id_numbers"
colspan="4"
nolabel="1"
widget="one2many_list"
/>
</page>
</page>
</field>
</record>
</odoo>
Loading…
Cancel
Save