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
|
<?xml version="1.0" encoding="UTF-8"?>
<openerp>
<data>
<record model="ir.ui.view" id="product_normal_form_view_subscription">
<field name="name">product.normal.form.subscription</field>
<field name="model">product.product</field>
<field name="inherit_id" ref="product.product_normal_form_view"/>
<field name="type">form</field>
<field name="arch" type="xml">
<field name="purchase_ok" position="after">
<field name="subscription" on_change="onchange_subscription(subscription)"/>
</field>
</field>
</record>
<record model="ir.ui.view" id="product_normal_form_view_subscription_duration">
<field name="name">product.normal.form.subscription_duration</field>
<field name="model">product.product</field>
<field name="inherit_id" ref="product.product_normal_form_view"/>
<field name="type">form</field>
<field name="arch" type="xml">
<field name="list_price" position="after">
<field name="subscription_duration" attrs="{'required':[('subscription','!=',False)]}"/>
</field>
</field>
</record>
</data>
</openerp>
|