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.
 
 

144 lines
4.9 KiB

<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data noupdate="0">
<record id="view_res_partner_revision_tree" model="ir.ui.view">
<field name="name">res.partner.revision.tree</field>
<field name="model">res.partner.revision</field>
<field name="arch" type="xml">
<tree string="Partner Revision">
<field name="partner_id"/>
<field name="date"/>
<field name="state"/>
</tree>
</field>
</record>
<record id="view_res_partner_revision_form" model="ir.ui.view">
<field name="name">res.partner.revision.form</field>
<field name="model">res.partner.revision</field>
<field name="arch" type="xml">
<form string="Partner Revision">
<header>
<button name="apply"
string="Apply pending changes" type="object"
class="oe_highlight"
states="draft"/>
<button name="cancel"
string="Reject pending changes" type="object"
class="oe_highlight"
states="draft"/>
<field name="state" widget="statusbar"
statusbar_visible="draft,done"/>
</header>
<sheet string="Partner Revision">
<group>
<field name="partner_id"/>
<field name="date"/>
</group>
<group string="Changes">
<field name="change_ids" nolabel="1">
<tree string="Partner Revision Change">
<field name="field_id" context="{'no_open': true}"/>
<field name="field_type" invisible="1"/>
<field name="current_value_display"/>
<field name="new_value_display"/>
<field name="state"/>
<button name="apply"
string="Apply" type="object"
icon="gtk-apply"
states="draft"/>
<button name="cancel"
string="Reject" type="object"
icon="gtk-close"
states="draft"/>
</tree>
</field>
</group>
<group>
<field name="note"/>
</group>
</sheet>
</form>
</field>
</record>
<record id="view_res_partner_revision_change_form" model="ir.ui.view">
<field name="name">res.partner.revision.change.form</field>
<field name="model">res.partner.revision.change</field>
<field name="arch" type="xml">
<form string="Partner Revision Change">
<header>
<button name="apply"
string="Apply" type="object"
class="oe_highlight"
states="draft"/>
<button name="cancel"
string="Reject" type="object"
class="oe_highlight"
states="draft"/>
<field name="state" widget="statusbar"
statusbar_visible="draft,done"/>
</header>
<sheet>
<group>
<field name="field_id" options="{'no_open': true}"/>
<field name="field_type" invisible="1"/>
<!-- attrs are added in fields_view_get -->
<field name="current_value_char"/>
<field name="new_value_char"/>
<field name="current_value_date"/>
<field name="new_value_date"/>
<field name="current_value_datetime"/>
<field name="new_value_datetime"/>
<field name="current_value_float"/>
<field name="new_value_float"/>
<field name="current_value_integer"/>
<field name="new_value_integer"/>
<field name="current_value_text"/>
<field name="new_value_text"/>
<field name="current_value_boolean"/>
<field name="new_value_boolean"/>
<field name="current_value_reference"/>
<field name="new_value_reference"/>
</group>
</sheet>
</form>
</field>
</record>
<record id="view_res_partner_revision_search" model="ir.ui.view">
<field name="name">res.partner.revision.search</field>
<field name="model">res.partner.revision</field>
<field name="arch" type="xml">
<search string="Partner Revision">
<field name="partner_id"/>
</search>
</field>
</record>
<record model="ir.actions.act_window" id="action_res_partner_revision_view">
<field name="name">Partner Revision</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">res.partner.revision</field>
<field name="view_type">form</field>
<field name="view_mode">tree,form</field>
<field name="search_view_id" ref="view_res_partner_revision_search"/>
</record>
<menuitem id="menu_res_partner_revision"
parent="menu_revision"
sequence="20"
action="action_res_partner_revision_view"/>
</data>
</openerp>