Skip to content

Enhancements to the Chapter 7 of the Module tutorial #15008

@eximius313

Description

@eximius313

This part:

Image

should come after this part:

Image

And instead of it, there should be other example (perhaps the one referring to property_type?) as at the point where it's now -reader has no idea what "partner" is and why it's mention here.

This section:

Image

is missing part

Comodel:

is with underscore instead of dot:

Image

The statement

No need to create an action or a menu.

Gives no explaination of how to create list view without an action. Previously all our records looked like this

    <record id = "estate_property_offer_action" model="ir.actions.act_window">
        <field name="name">Property Offer</field>
        <field name="res_model">estate_property_offer</field>
        <field name="view_mode">list,form</field>
    </record>

What makes it not an action?

(after a while I realised that whole code above is an action, and a "simple list" is this code:

<record id="estate_property_offer_view_list" model="ir.ui.view">
        <field name="name">estate_property_offer.list</field>
        <field name="model">estate_property_odder</field>
        <field name="arch" type="xml">
            <list string="List">
                <field name="price" />
                <field name="partner_id" />
                <field name="status" />
            </list>
        </field>
    </record>

instead) Maybe that could be explained better in previous chapters?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions