← Back to team overview

openerp-india team mailing list archive

[Bug 462635] Re: Boolean field, fail when loading data xml files.

 

You can try this to resolve, bug is a bug.

<field name="XXX" ref="False"/>

Thanks.

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

Title:
  Boolean field,  fail when loading data xml files.

Status in OpenERP Server:
  Opinion

Bug description:
  I'm loading our partner data with xml files, for example:

          <record id="res_partner_1" model="res.partner">
              <field name="name">Alternate</field>
              <field name="ref">ALTERNATE</field>
              <field name="lang">es_ES</field>
              <field name="vat">ESG08557985</field>
              <field name="title">ltd</field>
              <field name="vat_subjected">1</field>
              <field name="customer">False</field>
              <field name="supplier">True</field>
          </record>

  The result is ever customer and supplier True both.

  If you write next below, customer and supplier are True both too:
              <field name="customer">0</field>
              <field name="supplier">1</field>

  Only writting next below I can get the correct result:
              <field name="customer" eval="0"></field>
              <field name="supplier" eval="1"></field>

  I don't know if it's a bug, but can drive you crazy at first.

  
  Best Regards, 
  Gins
  "OpenERP is a beast, difficult to master, but when mastered, you become a beast"

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