Trunk: account_payment_extension cambia el nombre del botón en vista padre

Bug #620815 reported by Ana Juaristi Olalde
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenERP Spanish Localization Project
Invalid
Undecided
Unassigned

Bug Description

Buenas... No entiendo porqué, pero ahora el botón account_payment.wizard_populate_statement ya no se llama así sino... 601. Rarito el nombre.

 INFO:init:module account_payment_extension: loading payment_view.xml
[2010-08-19 16:51:01,106] ERROR:init:[01]: <record id="view_bank_statement_form_ext" model="ir.ui.view">
[2010-08-19 16:51:01,107] ERROR:init:[02]: <field name="name">account.bank.statement.form.ext</field>
[2010-08-19 16:51:01,108] ERROR:init:[03]: <field name="model">account.bank.statement</field>
[2010-08-19 16:51:01,109] ERROR:init:[04]: <field name="type">form</field>
[2010-08-19 16:51:01,148] ERROR:init:[05]: <field name="inherit_id" ref="account_payment.view_bank_statement_form"/>
[2010-08-19 16:51:01,149] ERROR:init:[06]: <field name="arch" type="xml">
[2010-08-19 16:51:01,149] ERROR:init:[07]: <button name="%(account_payment.wizard_populate_statement)d" position="replace">
[2010-08-19 16:51:01,150] ERROR:init:[08]: <button name="%(wizard_populate_statement_ext)d" string="Import payment lines" type="action"/>
[2010-08-19 16:51:01,151] ERROR:init:[09]: </button>
[2010-08-19 16:51:01,151] ERROR:init:[10]: </field>
[2010-08-19 16:51:01,153] ERROR:init:[11]: </record>

Aquí la definición de la vista account.bank.statement.form.inherit donde aparece el botón, ya que en su padre account.bank.statement.form no aparece la definición de ningún botón similar. Fijaos que aparece como nombre 601. Tiene pinta de que venga de algún generador de código automático o algo, no sé.

<?xml version="1.0"?>
<group col="7" colspan="4" position="inside">
                    <button colspan="2" name="601" string="Import payment lines" type="action" icon="gtk-open"/>
                </group>

Revision history for this message
Ana Juaristi Olalde (ajuaristio) wrote :

Error similar aparece un poquito más abajo en el mismo fichero. Así los he dejado y funcionan por si los quereis cambiar:
    <!--***************************** BANK STATEMENT *********************************-->
    <record id="view_bank_statement_form_ext" model="ir.ui.view">
        <field name="name">account.bank.statement.form.ext</field>
        <field name="model">account.bank.statement</field>
        <field name="type">form</field>
        <field name="inherit_id" ref="account_payment.view_bank_statement_form"/>
        <field name="arch" type="xml">
            <button name="601" position="replace">
                <button name="%(wizard_populate_statement_ext)d" string="Import payment lines" type="action"/>
            </button>
        </field>
    </record>

    <!--***************************** PAYMENT ORDER *********************************-->
    <!-- Filter invoices by payment type. Allow negative payment amounts -->
    <record id="view_payment_order_form_ext1" model="ir.ui.view">
        <field name="name">payment.order.form.ext1</field>
        <field name="model">payment.order</field>
        <field name="type">form</field>
        <field name="inherit_id" ref="account_payment.view_payment_order_form"/>
        <field name="arch" type="xml">
            <button name="603" position="replace">
                <newline/>
                <field name="payment_type_name" invisible="1"/>
                <field name="type"/>
                <button colspan="2" name="%(wizard_populate_payment_ext)d" string="Select invoices to pay/receive payment" type="action" attrs="{'invisible':[('state','=','done')]}"/>
            </button>
        </field>
    </record>

Changed in openerp-spain:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.