c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #34797
[Bug 873456] Re: yaml_import cannot specify empty value
False or None/null is a matter of preference, either will do. I thought
that None is more clear in the sense, that I really want this to be
None.
--
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to OpenERP Project Group.
https://bugs.launchpad.net/bugs/873456
Title:
yaml_import cannot specify empty value
Status in OpenERP Server:
Confirmed
Bug description:
I have a multi-company set up and I'm importing existing data using
yaml format and "import module".
I have two companies set up and I'd like to import objects with company_id set to:
* base.company
* other.company
* None
Where none share the contacts.
If I don't specify company_id tag, then the record ends up having the company_id of the user_id=1 which is base company.
If I specify valid company_id, then the record ends up having the company_id set to the correct company.
When specify python None value, or serialised as null in yaml, openerp-server doesn't import it.
Attaching a branch preposal to fix this problem.
To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-server/+bug/873456/+subscriptions
References