← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 666228] Re: Error attrs only button

 

Hello sma,

Now follows the complete code:

<record model="ir.ui.view" id="view_estoquepedidos_pedido_capa_form_inherit2">
            <field name="name">estoquepedidos.pedido.capa.form.inherit2</field>
            <field name="model">estoquepedidos.pedido.capa</field>
            <field name="type">tree</field>
            <field name="inherit_id" ref="estoquepedidos.view_estoquepedidos_pedido_capa_tree" />
            <field name="arch" type="xml">
                <field name="tipo" position="after">
                    <field name="nf_id" />
                    <button name="%(wizard_abrir_nf)d" type="action" string="Abrir NF" icon="gtk-goto-last" help="Abrir NF"
                        attrs="{'readonly':[('nf_id','=',False)]}" />
                </field>
            </field>
        </record>

-- 
Error attrs only button
https://bugs.launchpad.net/bugs/666228
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.

Status in OpenObject Web Client: New

Bug description:
Hello,

It seems that the errors were corrected with the attrs, but the buttons remain the same mistakes.
Follow the example below:

<button attrs="{'readonly':[('pedido_id','=',False)]}" name="%(wizard_abrir_pedido)d" string="Abrir NF" icon="gtk-goto-last" type="action" help="Abrir NF" context="{'button_name':'abrir_nf'}"/>

Reviews:

Server - 2946
Client - 1647
Web-Client -3704







References