Hi,

I developing several modules and I would like that trytond core
simplify the xml coding in action windows, please let me show :

Nowadays : (party.xml)

        <record model="ir.action.act_window" id="act_party_form">
            <field name="name">Parties</field>
            <field name="res_model">party.party</field>
        </record>
        <record model="ir.action.act_window.view"
id="act_party_form_view1">
            <field name="sequence" eval="10"/>
            <field name="view" ref="party_view_tree"/>
            <field name="act_window" ref="act_party_form"/>
        </record>
        <record model="ir.action.act_window.view"
id="act_party_form_view2">
            <field name="sequence" eval="20"/>
            <field name="view" ref="party_view_form"/>
            <field name="act_window" ref="act_party_form"/>
        </record>

Total: 14 lines

I think that this section could do more easy coding for newbies:

        <record model="ir.action.act_window" id="act_party_form">
            <field name="name">Parties</field>
            <field name="res_model">party.party</field>
            <field name="view" ref="party_view_tree"/>
            <field name="view" ref="party_view_form"/>
        </record>

Total: 6 lines

tryton client show use default view that this first in order up and
down, in this example would be "party_view_tree" or maybe this  other
option fo statement views:

            <field name="view1" ref="party_view_tree"/>
            <field name="view2" ref="party_view_form"/>

add debugging this section would be for long easier and simpler.

Regards,

Oscar Alvarez
Prexik Technologies
Bucaramanga, Colombia

-- 
[email protected] mailing list

Reply via email to