[base_module_record] doesn't generate correct XML ID if one was provided
Bug #777235 reported by
OpenBMS JSC
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Addons (MOVED TO GITHUB) |
Confirmed
|
Wishlist
|
OpenERP R&D Addons Team 1 |
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.
Changed in openobject-addons: | |
assignee: | nobody → OpenERP R&D Addons Team 1 (openerp-dev-addons1) |
importance: | Undecided → Wishlist |
status: | New → Confirmed |
To post a comment you must log in.
On Wednesday 04 May 2011, you wrote:
> Public bug reported:
>
> 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.
>
Please, if you can afford a little time, test my version of the module. I had,
long ago, tried to fix this behaviour. But, I warn you, my version seemed to
sometimes yield multiple xml "versions" of the same record (don't know if the
official does the same).
http:// git.hellug. gr/?p=xrg/ openobject- a=tree; f=base_ module_ record; h=77978ae522c64 529c87a279bc1eb 57bb8a407f42; hb=HEAD
addons;
If this version fixes your bug, we should seek to backport the changes into 6.0
or 6.1