forked from OCA/sale-workflow
-
Notifications
You must be signed in to change notification settings - Fork 0
/
product_view.xml
39 lines (33 loc) · 1.28 KB
/
product_view.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2014-2015 Akretion (http://www.akretion.com/)
@author Alexis de Lattre <alexis.delattre@akretion.com>
The licence is in the file __openerp__.py
-->
<openerp>
<data>
<record id="product_normal_form_view" model="ir.ui.view">
<field name="name">rental.product.product.form</field>
<field name="model">product.product</field>
<field name="inherit_id" ref="product.product_normal_form_view" />
<field name="arch" type="xml">
<notebook position="inside">
<page name="rental" string="Rental">
<group name="rental-service"
attrs="{'invisible': [('type', '!=', 'service')]}">
<field name="rented_product_id"/>
</group>
<group name="rental-product"
attrs="{'invisible': [('type', '=', 'service')]}"
string="Related Rental Services" col="1">
<field name="rental_service_ids" nolabel="1"/>
<button type="action"
name="%(create_rental_product_action)d"
string="Create Rental Service" />
</group>
</page>
</notebook>
</field>
</record>
</data>
</openerp>