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.
38 lines
1.6 KiB
38 lines
1.6 KiB
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
|
|
<record id="action_daycare_activity_product" model="ir.actions.act_window">
|
|
<field name="name">Activities</field>
|
|
<field name="type">ir.actions.act_window</field>
|
|
<field name="res_model">product.template</field>
|
|
<field name="view_mode">kanban,tree,form</field>
|
|
<field name="search_view_id" ref="product.product_template_search_view"/>
|
|
<field name="domain">[('is_adult_activity','=',True)]</field>
|
|
<field name="context">{
|
|
'default_detailed_type': 'service',
|
|
'default_is_adult_activity': True,
|
|
'default_service_tracking': 'task_in_project',
|
|
}
|
|
</field>
|
|
<field name="help" type="html">
|
|
<p class="o_view_nocontent_smiling_face">
|
|
Create a new product
|
|
</p><p>
|
|
You must define a product for everything you sell or purchase,
|
|
whether it's a storable product, a consumable or a service.
|
|
</p>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="daycare_product_form_inherit" model="ir.ui.view">
|
|
<field name="name">product.template.form</field>
|
|
<field name="inherit_id" ref="product.product_template_only_form_view"/>
|
|
<field name="model">product.template</field>
|
|
<field name="arch" type="xml">
|
|
<xpath expr="//field[@name='product_tooltip']" position="after">
|
|
<field name="is_adult_activity" attrs="{'invisible': [('detailed_type', '!=', 'service')]}"/>
|
|
</xpath>
|
|
</field>
|
|
</record>
|
|
|
|
</odoo>
|