You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

98 lines
3.8 KiB

<?xml version="1.0" encoding="UTF-8"?>
<openerp>
<data>
<!--
=======================
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">
<field name="name" select="1"/>
<field name="code" select="1"/>
</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_type">form</field>
<field name="view_mode">tree,form</field>
</record>
<menuitem
action="action_partner_id_category"
id="menu_partner_id_category"
parent="base.menu_config_address_book"/>
<!--
==============================================
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">
<notebook>
<page string="Ident. Numbers">
<field name="id_numbers" colspan="4" nolabel="1" widget="one2many_list"/>
</page>
</notebook>
</field>
</record>
<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">
<field name="category_id" select="1"/>
<field name="name" select="1"/>
<field name="partner_issued_id" select="1"/>
<field name="date_issued" select="1"/>
<field name="valid_from" select="1"/>
<field name="valid_until" select="1"/>
<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" select="1"/>
<field name="name" select="1"/>
<field name="partner_issued_id" select="1"/>
<field name="date_issued" select="1"/>
<field name="valid_from" select="1"/>
<field name="valid_until" select="1"/>
</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_type">form</field>
<field name="view_mode">tree,form</field>
</record>
</data>
</openerp>