openerp-india team mailing list archive
-
openerp-india team
-
Mailing list archive
-
Message #23081
[Bug 1104292] Re: [7.0] Boolean fields set to False take their default values when importing data from yaml
I found that adding view: False to the record solves this problem:
-
!record {model: res.partner, id: test, view: False}:
is_company: True
name: Test Supplier
supplier: True
customer: False
--
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/1104292
Title:
[7.0] Boolean fields set to False take their default values when
importing data from yaml
Status in OpenERP Server:
Confirmed
Bug description:
1. Create a yaml file with the following data:
-
!record {model: res.partner, id: test}:
is_company: True
name: Test Supplier
supplier: True
customer: False
2. Create a module that uses the previous yml file as 'update_xml'
3. Install that module
4. Note that the partner 'Test Supplier' will have both 'suplier' and 'customer' fields set to True
To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-server/+bug/1104292/+subscriptions
References