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.
 
 
 
 
 

35 lines
1.4 KiB

<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<!--Rental product wizard form view-->
<record id="rental_product_view_form" model="ir.ui.view">
<field name="name">rental.product.view.form</field>
<field name="model">rental.product</field>
<field name="arch" type="xml">
<form>
<sheet>
<group>
<group>
<field name="rental_product_id"
context="{'default_rental': True}"/>
<field name="unit_price"/>
<field name="qty"/>
</group>
</group>
<footer>
<button special="cancel" string="Cancel"
class="btn-primary"/>
<button name="add_rental_product" string="Add Product"
type="object" class="btn-primary"/>
</footer>
</sheet>
</form>
</field>
</record>
<!--Rental product wizard action-->
<record id="rental_product_action" model="ir.actions.act_window">
<field name="name">Add Rental Product</field>
<field name="res_model">rental.product</field>
<field name="view_mode">form</field>
<field name="target">new</field>
</record>
</odoo>