Compare commits
41 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f1a9df1157 | ||
|
|
05cf421fa9 | ||
|
|
b240a2809e | ||
|
|
eaf02c709f | ||
|
|
a372adb614 | ||
|
|
f0dea08da2 | ||
|
|
21008aad57 | ||
|
|
a415f65a7a | ||
|
|
07b8054c0c | ||
|
|
d5f929b5b6 | ||
|
|
8cf9af4e26 | ||
|
|
b5a6e4805c | ||
|
|
ddff0b294e | ||
|
|
1943ddc0f9 | ||
|
|
29c45c05b7 | ||
|
|
b35a2a8e8d | ||
|
|
e7a360c2ca | ||
|
|
441175376b | ||
|
|
7fa723856e | ||
|
|
3e851adcc6 | ||
|
|
c33f8dd214 | ||
|
|
7ffa097cd3 | ||
|
|
7a9fc406d2 | ||
|
|
82eb665ad4 | ||
|
|
3af0adce07 | ||
|
|
a8486cfe83 | ||
|
|
c48c6cabb7 | ||
|
|
6bedbea242 | ||
|
|
b321b07985 | ||
|
|
86d5fc36c4 | ||
|
|
a2dbfcb5ba | ||
|
|
2787e82d0f | ||
|
|
6e61994682 | ||
|
|
5b7783c0b6 | ||
|
|
97936166f0 | ||
|
|
976eebb79d | ||
|
|
c0bc14e782 | ||
|
|
972dd46c2f | ||
|
|
49297f63e7 | ||
|
|
68cf591e9c | ||
|
|
85eac77149 |
2 changed files with 19 additions and 19 deletions
|
|
@ -13,8 +13,8 @@
|
||||||
<field name="zip">J2G 3V3</field>
|
<field name="zip">J2G 3V3</field>
|
||||||
<field name="country_id" ref="base.ca"/>
|
<field name="country_id" ref="base.ca"/>
|
||||||
<field name="phone">450 994-3173</field>
|
<field name="phone">450 994-3173</field>
|
||||||
<field name="account_sale_tax_id" ref="l10n_ca.1_gstqst_sale_en"/>
|
<field name="account_sale_tax_id" ref="account.1_gstqst_sale_tax_14975"/>
|
||||||
<field name="account_purchase_tax_id" ref="l10n_ca.1_gstqst_purc_en"/>
|
<field name="account_purchase_tax_id" ref="account.1_gstqst_purchase_tax_14975"/>
|
||||||
</record>
|
</record>
|
||||||
</data>
|
</data>
|
||||||
</odoo>
|
</odoo>
|
||||||
|
|
|
||||||
|
|
@ -14,50 +14,50 @@
|
||||||
<xpath expr="//field[@name='name' and @id='company']" position="replace">
|
<xpath expr="//field[@name='name' and @id='company']" position="replace">
|
||||||
<field id="company" class="text-break" name="name" default_focus="1"
|
<field id="company" class="text-break" name="name" default_focus="1"
|
||||||
placeholder="e.g. Lumber Inc"
|
placeholder="e.g. Lumber Inc"
|
||||||
attrs="{'required' : [('type', '=', 'contact')], 'invisible': ['|', ('is_company','=', False),
|
required="type == 'contact'"
|
||||||
('is_property','=', True)]}"/>
|
invisible="not is_company or is_property"/>
|
||||||
<field id="lot_number" class="text-break" name="lot_number" placeholder="123456789"
|
<field id="lot_number" class="text-break" name="lot_number" placeholder="123456789"
|
||||||
attrs="{'invisible': [('is_property','=', False)]}"/>
|
invisible="not is_property"/>
|
||||||
</xpath>
|
</xpath>
|
||||||
|
|
||||||
<button name="schedule_meeting" position="attributes">
|
<button name="schedule_meeting" position="attributes">
|
||||||
<attribute name="attrs">{'invisible': [('is_property', '=', True)]}</attribute>
|
<attribute name="invisible">is_property == True</attribute>
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
<button name="action_view_opportunity" position="attributes">
|
<button name="action_view_opportunity" position="attributes">
|
||||||
<attribute name="attrs">{'invisible': [('is_property', '=', True)]}</attribute>
|
<attribute name="invisible">is_property == True</attribute>
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
<button name="action_view_partner_invoices" position="attributes">
|
<button name="action_view_partner_invoices" position="attributes">
|
||||||
<attribute name="attrs">{'invisible': [('is_property', '=', True)]}</attribute>
|
<attribute name="invisible">is_property == True</attribute>
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
<button name="%(payment.action_payment_token)d" position="attributes">
|
<button name="%(payment.action_payment_token)d" position="attributes">
|
||||||
<attribute name="attrs">{'invisible': ['|', ('payment_token_count', '=', 0), ('is_property', '=', True)]}</attribute>
|
<attribute name="invisible">payment_token_count == 0 or is_property</attribute>
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
<xpath expr="//page[@name='contact_addresses']" position="attributes">
|
<xpath expr="//page[@name='contact_addresses']" position="attributes">
|
||||||
<attribute name="attrs">{'invisible': [('is_property','=', True)]}</attribute>
|
<attribute name="invisible">is_property</attribute>
|
||||||
</xpath>
|
</xpath>
|
||||||
|
|
||||||
<xpath expr="//page[@name='sales_purchases']" position="attributes">
|
<xpath expr="//page[@name='sales_purchases']" position="attributes">
|
||||||
<attribute name="attrs">{'invisible': [('is_property','=', True)]}</attribute>
|
<attribute name="invisible">is_property == True</attribute>
|
||||||
</xpath>
|
</xpath>
|
||||||
|
|
||||||
<xpath expr="//page[@name='membership']" position="attributes">
|
<xpath expr="//page[@name='membership']" position="attributes">
|
||||||
<attribute name="attrs">{'invisible': [('is_property','=', True)]}</attribute>
|
<attribute name="invisible">is_property == True</attribute>
|
||||||
</xpath>
|
</xpath>
|
||||||
|
|
||||||
<xpath expr="//page[@name='accounting']" position="attributes">
|
<xpath expr="//page[@name='accounting']" position="attributes">
|
||||||
<attribute name="attrs">{'invisible': [('is_property','=', True)]}</attribute>
|
<attribute name="invisible">is_property == True</attribute>
|
||||||
</xpath>
|
</xpath>
|
||||||
|
|
||||||
<xpath expr="//field[@name='function']/ancestor::group[1]" position="attributes">
|
<xpath expr="//field[@name='function']/ancestor::group[1]" position="attributes">
|
||||||
<attribute name="attrs">{'invisible': [('is_property','=', True)]}</attribute>
|
<attribute name="invisible">is_property == True</attribute>
|
||||||
</xpath>
|
</xpath>
|
||||||
|
|
||||||
<xpath expr="//field[@name='function']/ancestor::group[1]" position="after">
|
<xpath expr="//field[@name='function']/ancestor::group[1]" position="after">
|
||||||
<group attrs="{'invisible': [('is_property','=', False)]}">
|
<group invisible="is_property == False">
|
||||||
<field name="surface"/>
|
<field name="surface"/>
|
||||||
<field name="category_id" widget="many2many_tags"
|
<field name="category_id" widget="many2many_tags"
|
||||||
options="{'color_field': 'color', 'no_create_edit': True}"/>
|
options="{'color_field': 'color', 'no_create_edit': True}"/>
|
||||||
|
|
@ -66,11 +66,11 @@
|
||||||
|
|
||||||
<xpath expr="//page[@name='contact_addresses']" position="after">
|
<xpath expr="//page[@name='contact_addresses']" position="after">
|
||||||
<page string="Property" name="bemade_sethy_configuration.res_partner.defaults.form">
|
<page string="Property" name="bemade_sethy_configuration.res_partner.defaults.form">
|
||||||
<group string="All Owners" attrs="{'invisible': [['is_property','=',False]]}">
|
<group string="All Owners" invisible="is_property == False">
|
||||||
<field name="relation_property_ids" string="">
|
<field name="relation_property_ids" string="">
|
||||||
<tree editable="top">
|
<tree editable="top">
|
||||||
<field name="this_partner_id" required="True" options="{'no_create': True}"
|
<field name="this_partner_id" required="True" options="{'no_create': True}"
|
||||||
attrs="{}" invisible="1"/>
|
invisible="1"/>
|
||||||
<field name="type_selection_id" required="True" options="{'no_create': True}"
|
<field name="type_selection_id" required="True" options="{'no_create': True}"
|
||||||
invisible="1"/>
|
invisible="1"/>
|
||||||
<field name="other_partner_id" required="True" options="{'no_create': True}"
|
<field name="other_partner_id" required="True" options="{'no_create': True}"
|
||||||
|
|
@ -81,12 +81,12 @@
|
||||||
</tree>
|
</tree>
|
||||||
</field>
|
</field>
|
||||||
</group>
|
</group>
|
||||||
<group string="All Properties" attrs="{'invisible': [['is_property','=',True]]}">
|
<group string="All Properties" invisible="is_property == True">
|
||||||
<field name="relation_owner_ids" string="">
|
<field name="relation_owner_ids" string="">
|
||||||
<tree editable="top">
|
<tree editable="top">
|
||||||
<field name="this_partner_id" required="True"
|
<field name="this_partner_id" required="True"
|
||||||
options="{'no_create': True}"
|
options="{'no_create': True}"
|
||||||
attrs="{}" invisible="1"
|
invisible="1"
|
||||||
/>
|
/>
|
||||||
<field name="type_selection_id" required="True" options="{'no_create': True}"
|
<field name="type_selection_id" required="True" options="{'no_create': True}"
|
||||||
invisible="1"/>
|
invisible="1"/>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue