Hello Juan,

Am Donnerstag, den 14.01.2010, 11:50 -0500 schrieb Juan Fernando
Jaramillo Botero:

You can set the context in the ir.action.act_window which the user
opens e.g. from a menu entry. There you can distinguish the the provided 
context, 
on model side, which menu entry the user has opened. 
(When you have different menu entries for the same model.)

See account_invoice module for further informations.

        <record model="ir.action.act_window"
id="act_invoice_out_invoice_form">
            <field name="name">Invoices</field>
            <field name="res_model">account.invoice</field>
            <field name="view_type">form</field>
            <field name="domain">[('type', '=', 'out_invoice')]</field>
            <field name="context">{'type': 'out_invoice'}</field>
        </record>

Cheers 
Udo
-- 
____________________________________
virtual things
Preisler & Spallek GbR
Munich - Aix-la-Chapelle

Windeckstr. 77
81375 Munich - Germany
Tel: +49 (89) 710 481 55
Fax: +49 (89) 710 481 56

[email protected]
http://www.virtual-things.biz



-- 
[email protected] mailing list

Reply via email to