diff options
| author | stephanchrst <stephanchrst@gmail.com> | 2022-05-10 21:51:50 +0700 |
|---|---|---|
| committer | stephanchrst <stephanchrst@gmail.com> | 2022-05-10 21:51:50 +0700 |
| commit | 3751379f1e9a4c215fb6eb898b4ccc67659b9ace (patch) | |
| tree | a44932296ef4a9b71d5f010906253d8c53727726 /addons/account/views/account_group_views.xml | |
| parent | 0a15094050bfde69a06d6eff798e9a8ddf2b8c21 (diff) | |
initial commit 2
Diffstat (limited to 'addons/account/views/account_group_views.xml')
| -rw-r--r-- | addons/account/views/account_group_views.xml | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/addons/account/views/account_group_views.xml b/addons/account/views/account_group_views.xml new file mode 100644 index 00000000..b2e9f04a --- /dev/null +++ b/addons/account/views/account_group_views.xml @@ -0,0 +1,50 @@ +<?xml version="1.0" encoding="utf-8"?> +<odoo> + <data> + + <record id="view_account_group_form" model="ir.ui.view"> + <field name="name">account.group.form</field> + <field name="model">account.group</field> + <field name="arch" type="xml"> + <form string="Account Group"> + <sheet> + <group> + <field name="name"/> + <label for="code_prefix_start" string="Code Prefix"/> + <div> + From <field name="code_prefix_start" class="oe_inline"/> to <field name="code_prefix_end" class="oe_inline"/> + </div> + <field name="company_id" options="{'no_create': True}" groups="base.group_multi_company"/> + </group> + </sheet> + </form> + </field> + </record> + + <record id="view_account_group_search" model="ir.ui.view"> + <field name="name">account.group.search</field> + <field name="model">account.group</field> + <field name="arch" type="xml"> + <search string="Account groups"> + <field name="name" + filter_domain="['|', ('code_prefix_start', '=like', str(self) + '%'), ('name', 'ilike', self)]" + string="Account group"/> + </search> + </field> + </record> + + <record id="view_account_group_tree" model="ir.ui.view"> + <field name="name">account.group.tree</field> + <field name="model">account.group</field> + <field name="arch" type="xml"> + <tree string="Account Group"> + <field name="code_prefix_start"/> + <field name="code_prefix_end"/> + <field name="name"/> + <field name="company_id" groups="base.group_multi_company"/> + </tree> + </field> + </record> + + </data> +</odoo> |
