Odoo modules extending contacts / partners
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.

45 lines
1.8 KiB

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="res_partner_emancipate_view_form" model="ir.ui.view">
<field name="name">res.partner.emancipate.view.form</field>
<field name="model">res.partner.emancipate</field>
<field name="arch" type="xml">
<form string="Partner emancipation">
<sheet>
<group col="4">
<field name="partner_id" readonly="1" force_save="1" />
<field name="emancipation_date" default_focus="1" />
</group>
<footer>
<button type="object" name="emancipate_partner" string="Validate emancipation" class="oe_highlight"
data-hotkey="q" />
<button special="cancel" string="Cancel" class="btn btn-secondary" data-hotkey="z" />
</footer>
</sheet>
</form>
</field>
</record>
<record id="res_partner_emancipate_action" model="ir.actions.act_window">
<field name="name">Emancipate</field>
<field name="res_model">res.partner.emancipate</field>
<field name="view_mode">form</field>
<field name="binding_model_id" eval="False" />
<field name="binding_view_types"></field>
<field name="target">new</field>
<field name="context">{'default_partner_id': active_id}</field>
</record>
<record id="res_partner_emancipate_action_server" model="ir.actions.server">
<field name="name">Emancipate</field>
<field name="model_id" ref="partner_contact_majority.model_res_partner_emancipate" />
<field name="binding_model_id" ref="base.model_res_partner" />
<field name="binding_view_types">form</field>
<field name="state">code</field>
<field name="groups_id" eval="[(4,ref('base.group_partner_manager'))]" />
<field name="code"><![CDATA[action = env.ref('partner_contact_majority.res_partner_emancipate_action').read()[0]]]></field>
</record>
</odoo>