-
Notifications
You must be signed in to change notification settings - Fork 106
Expand file tree
/
Copy pathestate_property_offer_views.xml
More file actions
51 lines (48 loc) · 2.1 KB
/
estate_property_offer_views.xml
File metadata and controls
51 lines (48 loc) · 2.1 KB
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<?xml version='1.0' encoding='utf-8'?>
<odoo>
<!--
Agregue esto
-->
<record id="estate_property_offer_action" model="ir.actions.act_window">
<field name="name">Property Offers</field>
<field name="res_model">estate.property.offer</field>
<field name="view_mode">list,form</field>
<field name="domain">[('property_type_id', '=', active_id)]</field>
</record>
<!-- Vista de Lista -->
<record id="estate_property_offer_list_view" model="ir.ui.view">
<field name="name">estate.property.offer.list</field>
<field name="model">estate.property.offer</field>
<field name="arch" type="xml">
<list string="Property Offers" editable="bottom" decoration-danger="status == 'refused'" decoration-success="status == 'accepted'">
<field name="price"/>
<field name="partner_id"/>
<field name="property_type_id"/>
<field name="validity"/>
<field name="date_deadline"/>
<button name="action_accept" string="Accept" type="object" invisible="status in ('accepted', 'refused')"/>
<button name="action_reject" string="Refuse" type="object" invisible="status in ('accepted', 'refused')"/>
<field name="status" invisible="True"/>
</list>
</field>
</record>
<!-- Vista de Formulario -->
<record id="estate_property_offer_form_view" model="ir.ui.view">
<field name="name">estate.property.offer.form</field>
<field name="model">estate.property.offer</field>
<field name="arch" type="xml">
<form string="Property Tag">
<sheet>
<group>
<field name="price"/>
<field name="partner_id"/>
<field name="status"/>
<field name="validity"/>
<field name="date_deadline"/>
<field name="property_type_id"/>
</group>
</sheet>
</form>
</field>
</record>
</odoo>