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.
39 lines
1.8 KiB
39 lines
1.8 KiB
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
<!-- Action daycare activity product-->
|
|
<record id="product_template_daycare_activity_action"
|
|
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>
|
|
<!-- inherit view of product template form view-->
|
|
<record id="product_template_only_form_view" model="ir.ui.view">
|
|
<field name="name">product.template.view.form.inherit.adult.daycare.center</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>
|
|
|