← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 630670] Re: [trunk] xml code for certain button changes during loading

 

Hello Guys,

This is how the system works. On xml, you don't know the ID of action,
so you do with the help of syntax %(ID)d.

It is the similar trick you do for ref(ID).

Thanks.

** Changed in: openobject-server
       Status: Confirmed => Invalid

-- 
[trunk] xml code for certain  button changes during loading
https://bugs.launchpad.net/bugs/630670
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.

Status in OpenObject Server: Invalid

Bug description:
crm.crm_case_form_view_leads

in crm_opportunity_view.xml

                                    <button name="%(action_crm_lead2partner)d"
                                        icon="gtk-index" type="action"
                                        string="Create"
                                        attrs="{'invisible':[('partner_id','!=',False)]}"/>

loaded form in db
<button name="303" icon="gtk-index" type="action" string="Create" attrs="{'invisible':[('partner_id','!=',False)]}"/>

this prohibits to export / reuse of the code after Customization / View

IMHO the button name must NOT be replaced by a number