c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #23369
Re: [Bug 777235] Re: [base_module_record] doesn't generate correct XML ID if one was provided
On Thursday 05 May 2011, you wrote:
> I have done a quick test, and here are the results
>
> 1. It doesn't fix the behavior of generating random XML ID for records
> that already have XML ID (e.g. I create a new DB with demo data, load
> some initialization data from XML, and export back the data, but all
> exported XML IDs are recreated with random values.
>
> 2. It does generate multiple versions of data (same values with
> different ID), especially if "Create & Modified" option is selected.
> This behavior is same for the official version (the one that was release
> with addons 6.0.2). This is not good, since we cannot take the exported
> data as the initial values for newly created DB (multiple data will
> appear).
hmm. Then, I guess, I/we should revisit the code and find a way to
improve it.
--
Say NO to spam and viruses. Stop using Microsoft Windows!
--
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/777235
Title:
[base_module_record] doesn't generate correct XML ID if one was
provided
Status in OpenERP Modules (addons):
New
Bug description:
When exporting data with base_module_record, the XML ID for records
are generated randomly (as if with the case when data are entered via
UI, and do not have XML ID), even if these records are initialized via
__openerp__.py sections. However, if these data reference to other
records that have XML ID, it does generate correct reference
(ref="<XML ID>").
This behavior is inconsistent with exporting data from CSV (where
correct XML ID are generated, and empty is generated for data that is
not initialized with XML ID). It also make it difficult to sync
between preconfigure data and data updated during development.
References