Old account.account.type identifiers in l10n_pl

Bug #1281315 reported by Dariusz Żbikowski (Krokus)
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
New
Undecided
Unassigned

Bug Description

In account module new ids for account.account.type like "data_account_type...", for example id="data_account_type_expense":

       <record model="account.account.type" id="data_account_type_expense">
          <field name="name">Expense</field>
          <field name="code">expense</field>
          <field name="close_method">none</field>
          <field name="report_type">expense</field>
        </record>

but in module l10n_pl, in account_chart.xml, old styles refs are used, for example ref="account_type_expense":

       <record id="chart114010300" model="account.account.template">
        <field name="code">114010300</field>
        <field name="reconcile" eval="False"/>
        <field name="parent_id" ref="chart114010000"/>
        <field name="type">other</field>
        <field name="user_type" ref="account_type_expense"/>
        <field name="name">Udzielone pożyczki</field>
    </record>

It causes counterparts of types in account.account.type ("account_type_expense" <>"data_account_type_expense") and in consequence, for example, empty selection accounts list in view_purchase_receipt_form where
domain="[('user_type.report_type','=','expense') .......]

                                <tree string="Expense Lines" editable="bottom">
                                    <field name="account_id" widget="selection" domain="[('user_type.report_type','=','expense'), ('type','!=','view')]"/>
                                    <field name="name"/>
                                    <field name="amount"/>
                                    <field name="account_analytic_id" groups="analytic.group_analytic_accounting"/>
                                </tree>

Proposed patch in attachment.

Revision history for this message
Dariusz Żbikowski (Krokus) (darek-krokus) wrote :
Revision history for this message
Dariusz Żbikowski (Krokus) (darek-krokus) wrote :

PS. Last patch line is ok after correction Poland currency code from PLZ to PLN

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.