fix end chapt 11

This commit is contained in:
Matt Marcha 2024-07-29 15:42:49 -10:00 committed by Matt Marcha
parent 7e1eb2245c
commit d5ec3cc5b9
3 changed files with 7 additions and 2 deletions

View file

@ -1,5 +1,11 @@
<?xml version="1.0"?>
<odoo>
<record id="estate_property_offer_from_type_action" model="ir.actions.act_window">
<field name="name">Offers</field>
<field name="res_model">estate.property.offer</field>
<field name="view_mode">tree,form</field>
</record>
<record id="estate_property_offer_tree_view" model="ir.ui.view">
<field name="name">estate.property.offer.tree</field>
<field name="model">estate.property.offer</field>

View file

@ -13,7 +13,7 @@
<form>
<sheet>
<div name="button_box" position="inside">
<button class="oe_stat_button" type="action" name="%(estate.estate_property_action)d" icon="fa-money">
<button class="oe_stat_button" type="action" name="%(estate_property_offer_from_type_action)d" icon="fa-money">
<field name="offer_count" string="Offers" widget="statinfo" />
</button>
</div>

View file

@ -5,7 +5,6 @@
<field name="res_model">estate.property</field>
<field name="view_mode">tree,form</field>
<field name="context">{'search_default_available': True}</field>
<field name="domain">[('property_type_id', '=', active_id)]</field>
</record>
<record id="estate_property_tree_view" model="ir.ui.view">