mirror of
https://github.com/SARL-PACIFIC-ERP/odoo-sh-test.git
synced 2025-06-25 09:32:22 +00:00
Chapter 14
This commit is contained in:
parent
d8b1929d5d
commit
135513d59c
|
@ -3,7 +3,7 @@
|
|||
<record id="estate_property_action" model="ir.actions.act_window">
|
||||
<field name="name">Properties</field>
|
||||
<field name="res_model">estate.property</field>
|
||||
<field name="view_mode">tree,form</field>
|
||||
<field name="view_mode">tree,form,kanban</field>
|
||||
<field name="context">{'search_default_available': True}</field>
|
||||
</record>
|
||||
|
||||
|
@ -101,4 +101,26 @@
|
|||
</search>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="estate_property_view_kanban" model="ir.ui.view">
|
||||
<field name="name">estate.property.kanban</field>
|
||||
<field name="model">estate.property</field>
|
||||
<field name="arch" type="xml">
|
||||
<kanban default_group_by="property_type_id" records_draggable="False">
|
||||
<templates>
|
||||
<t t-name="kanban-box">
|
||||
<div class="oe_kanban_global_click">
|
||||
<h3><field name="name"/></h3>
|
||||
<p>
|
||||
Expected price : <field name="expected_price" /><br />
|
||||
<t t-if="record.best_price.raw_value > 0.00">Best offer : <field name="best_price" /><br /></t>
|
||||
<t t-if="record.selling_price.raw_value > 0.00">Accepted offer : <field name="selling_price" /><br /></t>
|
||||
</p>
|
||||
<field name="tag_ids" widget="kanban.many2many_tags" options="{'color_field': 'color'}" />
|
||||
</div>
|
||||
</t>
|
||||
</templates>
|
||||
</kanban>
|
||||
</field>
|
||||
</record>
|
||||
</odoo>
|
Loading…
Reference in a new issue