← Back to team overview

openerp-india team mailing list archive

[Bug 973368] [NEW] [6.1] account_coda: bad coda.bank.account search view

 

Public bug reported:

Hi!

I get an error when I click on "CODA Bank Account Configuration" due to
the bad search view. This is due to the following view (in
account_code_view.xml):

    <!-- CODA Bank Account Configuration -->
    <record id="view_coda_bank_account_search" model="ir.ui.view">
      <field name="name">coda.bank.account.search</field>
      <field name="model">coda.bank.account</field>
      <field name="type">search</field>
      <field name="arch" type="xml">
        <form string="CODA Bank Account Configuration">
          <filter string="Normal" domain="[('state','=','normal')]" icon="terp-folder-green"/>
          <filter string="Info" domain="[('state','=','info')]" icon="terp-folder-yellow"/>
          <separator orientation="vertical"/>
          <field name="name"/>
          <field name="bank_id"/>
          <field name="description1"/>
          <field name="journal"/>
          <field name="currency" widget="selection"/>
          <field name="company_id" widget="selection" groups="base.group_multi_company"/>
          <newline/>
          <group expand="0" string="Group By...">
            <filter string="Bank Account" icon="terp-folder-yellow" domain="[]" context="{'group_by':'bank_id'}"/>
            <filter string="Currency" icon="terp-dolar" domain="[]" context="{'group_by':'currency'}"/>
          </group>
        </form>
      </field>
    </record>


The "form" element should be replaced by a "search" element as follows:

    <!-- CODA Bank Account Configuration -->
    <record id="view_coda_bank_account_search" model="ir.ui.view">
      <field name="name">coda.bank.account.search</field>
      <field name="model">coda.bank.account</field>
      <field name="type">search</field>
      <field name="arch" type="xml">
        <search string="CODA Bank Account Configuration">
          <filter string="Normal" domain="[('state','=','normal')]" icon="terp-folder-green"/>
          <filter string="Info" domain="[('state','=','info')]" icon="terp-folder-yellow"/>
          <separator orientation="vertical"/>
          <field name="name"/>
          <field name="bank_id"/>
          <field name="description1"/>
          <field name="journal"/>
          <field name="currency" widget="selection"/>
          <field name="company_id" widget="selection" groups="base.group_multi_company"/>
          <newline/>
          <group expand="0" string="Group By...">
            <filter string="Bank Account" icon="terp-folder-yellow" domain="[]" context="{'group_by':'bank_id'}"/>
            <filter string="Currency" icon="terp-dolar" domain="[]" context="{'group_by':'currency'}"/>
          </group>
        </search>
      </field>
    </record>


Cheers!

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

-- 
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/973368

Title:
  [6.1] account_coda: bad coda.bank.account search view

Status in OpenERP Addons (modules):
  New

Bug description:
  Hi!

  I get an error when I click on "CODA Bank Account Configuration" due
  to the bad search view. This is due to the following view (in
  account_code_view.xml):

      <!-- CODA Bank Account Configuration -->
      <record id="view_coda_bank_account_search" model="ir.ui.view">
        <field name="name">coda.bank.account.search</field>
        <field name="model">coda.bank.account</field>
        <field name="type">search</field>
        <field name="arch" type="xml">
          <form string="CODA Bank Account Configuration">
            <filter string="Normal" domain="[('state','=','normal')]" icon="terp-folder-green"/>
            <filter string="Info" domain="[('state','=','info')]" icon="terp-folder-yellow"/>
            <separator orientation="vertical"/>
            <field name="name"/>
            <field name="bank_id"/>
            <field name="description1"/>
            <field name="journal"/>
            <field name="currency" widget="selection"/>
            <field name="company_id" widget="selection" groups="base.group_multi_company"/>
            <newline/>
            <group expand="0" string="Group By...">
              <filter string="Bank Account" icon="terp-folder-yellow" domain="[]" context="{'group_by':'bank_id'}"/>
              <filter string="Currency" icon="terp-dolar" domain="[]" context="{'group_by':'currency'}"/>
            </group>
          </form>
        </field>
      </record>

  
  The "form" element should be replaced by a "search" element as follows:

      <!-- CODA Bank Account Configuration -->
      <record id="view_coda_bank_account_search" model="ir.ui.view">
        <field name="name">coda.bank.account.search</field>
        <field name="model">coda.bank.account</field>
        <field name="type">search</field>
        <field name="arch" type="xml">
          <search string="CODA Bank Account Configuration">
            <filter string="Normal" domain="[('state','=','normal')]" icon="terp-folder-green"/>
            <filter string="Info" domain="[('state','=','info')]" icon="terp-folder-yellow"/>
            <separator orientation="vertical"/>
            <field name="name"/>
            <field name="bank_id"/>
            <field name="description1"/>
            <field name="journal"/>
            <field name="currency" widget="selection"/>
            <field name="company_id" widget="selection" groups="base.group_multi_company"/>
            <newline/>
            <group expand="0" string="Group By...">
              <filter string="Bank Account" icon="terp-folder-yellow" domain="[]" context="{'group_by':'bank_id'}"/>
              <filter string="Currency" icon="terp-dolar" domain="[]" context="{'group_by':'currency'}"/>
            </group>
          </search>
        </field>
      </record>

  
  Cheers!

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


Follow ups

References