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.
 
 
 
 
 

30 lines
1.3 KiB

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<data>
<!-- created new field in appointment form to create upfront payment -->
<record id="appointment_type_view_product_form" model="ir.ui.view">
<field name="name">appointment.type.view.product.form</field>
<field name="model">appointment.type</field>
<field name="inherit_id"
ref="appointment.appointment_type_view_form"/>
<field name="arch" type="xml">
<xpath expr="//group[@name='options_left_details']"
position="inside">
<label for="has_payment_step"/>
<div>
<div class="o_row">
<field name="has_payment_step"/>
<field name="product_id"
attrs="{'invisible':[('has_payment_step','=',False)]}"
placeholder="Choose a Product"
class="oe_inline"/>
</div>
<div attrs="{'invisible':[('has_payment_step','=',False)]}"
groups="base.group_system">
</div>
</div>
</xpath>
</field>
</record>
</data>
</odoo>