sethy 17.0

This commit is contained in:
Benoît Vézina 2023-12-05 12:12:43 -05:00
parent c5e952b5ee
commit 5476faaa1d
3 changed files with 17 additions and 15 deletions

View file

@ -11,6 +11,7 @@
'license': 'GPL-3',
'depends': [
# List of module dependencies
'account',
'base',
'contacts',
'crm',

View file

@ -13,8 +13,8 @@
<field name="zip">J2G 3V3</field>
<field name="country_id" ref="base.ca"/>
<field name="phone">450 994-3173</field>
<field name="account_sale_tax_id" ref="account.1_gstqst_sale_tax_14975"/>
<field name="account_purchase_tax_id" ref="account.1_gstqst_purchase_tax_14975"/>
<!-- <field name="account_sale_tax_id" ref="account.1_gstqst_sale_tax_14975"/>-->
<!-- <field name="account_purchase_tax_id" ref="account.1_gstqst_purchase_tax_14975"/>-->
</record>
</data>
</odoo>

View file

@ -14,50 +14,51 @@
<xpath expr="//field[@name='name' and @id='company']" position="replace">
<field id="company" class="text-break" name="name" default_focus="1"
placeholder="e.g. Lumber Inc"
attrs="{'required' : [('type', '=', 'contact')], 'invisible': ['|', ('is_company','=', False),
('is_property','=', True)]}"/>
required="type == 'contact'"
invisible="is_company == False or is_property == True"
/>
<field id="lot_number" class="text-break" name="lot_number" placeholder="123456789"
attrs="{'invisible': [('is_property','=', False)]}"/>
invisible="is_property == False"/>
</xpath>
<button name="schedule_meeting" position="attributes">
<attribute name="attrs">{'invisible': [('is_property', '=', True)]}</attribute>
<attribute name="invisible">is_property == True</attribute>
</button>
<button name="action_view_opportunity" position="attributes">
<attribute name="attrs">{'invisible': [('is_property', '=', True)]}</attribute>
<attribute name="invisible">is_property == True</attribute>
</button>
<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 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 == True</attribute>
</button>
<xpath expr="//page[@name='contact_addresses']" position="attributes">
<attribute name="attrs">{'invisible': [('is_property','=', True)]}</attribute>
<attribute name="invisible">is_property == True</attribute>
</xpath>
<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 expr="//page[@name='membership']" position="attributes">
<attribute name="attrs">{'invisible': [('is_property','=', True)]}</attribute>
<attribute name="invisible">is_property == True</attribute>
</xpath>
<xpath expr="//page[@name='accounting']" position="attributes">
<attribute name="attrs">{'invisible': [('is_property','=', True)]}</attribute>
<attribute name="invisible">is_property == True</attribute>
</xpath>
<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 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="category_id" widget="many2many_tags"
options="{'color_field': 'color', 'no_create_edit': True}"/>