changes
This commit is contained in:
@@ -282,6 +282,60 @@
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<!-- ===================================================================== -->
|
||||
<!-- LOANER PRODUCTS VIEWS -->
|
||||
<!-- ===================================================================== -->
|
||||
|
||||
<!-- Loaner Products List View -->
|
||||
<record id="view_fusion_loaner_products_list" model="ir.ui.view">
|
||||
<field name="name">product.template.loaner.list</field>
|
||||
<field name="model">product.template</field>
|
||||
<field name="arch" type="xml">
|
||||
<list>
|
||||
<field name="name"/>
|
||||
<field name="x_fc_equipment_type" optional="show"/>
|
||||
<field name="x_fc_wheelchair_category" optional="show"/>
|
||||
<field name="x_fc_seat_width" optional="show"/>
|
||||
<field name="x_fc_seat_depth" optional="show"/>
|
||||
<field name="x_fc_seat_height" optional="hide"/>
|
||||
<field name="x_fc_storage_location" optional="show"/>
|
||||
<field name="x_fc_listing_type" optional="show"/>
|
||||
<field name="x_fc_asset_number" optional="hide"/>
|
||||
<field name="active" column_invisible="True"/>
|
||||
</list>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<!-- Loaner Products Search View -->
|
||||
<record id="view_fusion_loaner_products_search" model="ir.ui.view">
|
||||
<field name="name">product.template.loaner.search</field>
|
||||
<field name="model">product.template</field>
|
||||
<field name="arch" type="xml">
|
||||
<search string="Search Loaner Products">
|
||||
<field name="name"/>
|
||||
<field name="x_fc_equipment_type"/>
|
||||
<field name="x_fc_asset_number"/>
|
||||
<separator/>
|
||||
<filter string="Owned" name="filter_owned"
|
||||
domain="[('x_fc_listing_type', '=', 'owned')]"/>
|
||||
<filter string="Borrowed" name="filter_borrowed"
|
||||
domain="[('x_fc_listing_type', '=', 'borrowed')]"/>
|
||||
<separator/>
|
||||
<filter string="Archived" name="filter_archived"
|
||||
domain="[('active', '=', False)]"/>
|
||||
<separator/>
|
||||
<filter string="Equipment Type" name="group_equipment_type"
|
||||
context="{'group_by': 'x_fc_equipment_type'}"/>
|
||||
<filter string="Wheelchair Category" name="group_wheelchair_category"
|
||||
context="{'group_by': 'x_fc_wheelchair_category'}"/>
|
||||
<filter string="Storage Location" name="group_storage_location"
|
||||
context="{'group_by': 'x_fc_storage_location'}"/>
|
||||
<filter string="Listing Type" name="group_listing_type"
|
||||
context="{'group_by': 'x_fc_listing_type'}"/>
|
||||
</search>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<!-- ===================================================================== -->
|
||||
<!-- ACTIONS -->
|
||||
<!-- ===================================================================== -->
|
||||
@@ -336,6 +390,8 @@
|
||||
<field name="name">Loaner Products</field>
|
||||
<field name="res_model">product.template</field>
|
||||
<field name="view_mode">list,form</field>
|
||||
<field name="view_id" ref="view_fusion_loaner_products_list"/>
|
||||
<field name="search_view_id" ref="view_fusion_loaner_products_search"/>
|
||||
<field name="domain">[('x_fc_can_be_loaned', '=', True)]</field>
|
||||
<field name="context">{'default_x_fc_can_be_loaned': True, 'default_sale_ok': False, 'default_purchase_ok': False, 'default_rent_ok': True}</field>
|
||||
<field name="help" type="html">
|
||||
@@ -430,9 +486,40 @@
|
||||
<field name="x_fc_rental_price_monthly"/>
|
||||
</group>
|
||||
</group>
|
||||
<group>
|
||||
<group string="Equipment Details">
|
||||
<field name="x_fc_equipment_type"/>
|
||||
<field name="x_fc_wheelchair_category"/>
|
||||
<field name="x_fc_listing_type"/>
|
||||
<field name="x_fc_asset_number"/>
|
||||
</group>
|
||||
<group string="Dimensions">
|
||||
<field name="x_fc_seat_width"/>
|
||||
<field name="x_fc_seat_depth"/>
|
||||
<field name="x_fc_seat_height"/>
|
||||
</group>
|
||||
</group>
|
||||
<group>
|
||||
<group string="Location">
|
||||
<field name="x_fc_storage_location"/>
|
||||
</group>
|
||||
</group>
|
||||
<group string="Package Information">
|
||||
<field name="x_fc_package_info" nolabel="1" colspan="2"/>
|
||||
</group>
|
||||
<group string="Security Deposit">
|
||||
<group>
|
||||
<field name="x_fc_security_deposit_type"/>
|
||||
<field name="x_fc_security_deposit_amount"
|
||||
invisible="x_fc_security_deposit_type != 'fixed'"/>
|
||||
<field name="x_fc_security_deposit_percent"
|
||||
invisible="x_fc_security_deposit_type != 'percentage'"/>
|
||||
</group>
|
||||
</group>
|
||||
</page>
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
|
||||
|
||||
</odoo>
|
||||
|
||||
Reference in New Issue
Block a user