Initial commit: Odoo 18.0-20251222 extra-addons
This commit is contained in:
29
base_view_inheritance_extension/demo/ir_ui_view.xml
Executable file
29
base_view_inheritance_extension/demo/ir_ui_view.xml
Executable file
@@ -0,0 +1,29 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<odoo>
|
||||
<record id="view_partner_simple_form" model="ir.ui.view">
|
||||
<field name="model">res.partner</field>
|
||||
<field name="inherit_id" ref="base.view_partner_simple_form" />
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="." position="attributes">
|
||||
<attribute name="string">Partner form</attribute>
|
||||
</xpath>
|
||||
<field name="parent_id" position="attributes">
|
||||
<attribute name="context" operation="update">
|
||||
{
|
||||
"default_email": "info@odoo-community.org",
|
||||
"default_company_id": allowed_company_ids[0]
|
||||
}
|
||||
</attribute>
|
||||
</field>
|
||||
<!-- without operations, the standard handler should be called /-->
|
||||
<field name="parent_id" position="attributes">
|
||||
<attribute name="name">parent_id</attribute>
|
||||
</field>
|
||||
<form position="inside">
|
||||
<notebook>
|
||||
<page string="Phone numbers" name="phone_book" />
|
||||
</notebook>
|
||||
</form>
|
||||
</field>
|
||||
</record>
|
||||
</odoo>
|
||||
Reference in New Issue
Block a user