← Back to team overview

openerp-india team mailing list archive

[Bug 1281315] [NEW] Old account.account.type identifiers in l10n_pl

 

Public bug reported:

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.

** Affects: openobject-addons
     Importance: Undecided
         Status: New

** Patch added: "acount_chart.xml.patch"
   https://bugs.launchpad.net/bugs/1281315/+attachment/3984530/+files/acount_chart.xml.patch

-- 
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/1281315

Title:
  Old account.account.type identifiers in l10n_pl

Status in OpenERP Addons (modules):
  New

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.

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/1281315/+subscriptions


Follow ups

References