export_data on product_product : too external_ids(ir.model.data) generated?
Bug #1096172 reported by
Romain Deheele - Camptocamp
This bug report is a duplicate of:
Bug #1194893: Export creates xml id based on wrong table name.
Edit
Remove
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Server (MOVED TO GITHUB) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Hello,
with : server 4327 & addons 7121
First, I have configured a new product named "Test product"
I try to export this product with next fields:
- Product Template
- Name
I have this result:
"id","product_
"__export_
If i retry, i have this:
"id","product_
"__export_
etc...
Is it normal to have at every turn a different external id for the template?
This behavior creates unlimited ir.model.data records.
Thanks for your return,
Romain
Related branches
lp://staging/~credativ/openobject-server/6.1-fix-productexport
Ready for review
for merging
into
lp://staging/openobject-server/6.1
- OpenERP Core Team: Pending requested
-
Diff: 19 lines (+2/-2)1 file modifiedopenerp/osv/orm.py (+2/-2)
summary: |
- ir.model.data : too external_ids generated + ir.model.data : too external_ids generated? |
summary: |
- ir.model.data : too external_ids generated? + export_data on product_product : too external_ids(ir.model.data) + generated? |
description: | updated |
Changed in openobject-server: | |
status: | Expired → Invalid |
To post a comment you must log in.
This problem also seems to prevent importing as well with this external id on product template.
The problem seems to be related to creating a new external id in ir.model.data for a many2one field.
When creating it, the ir.model.data model and name will be taken from self... and exporting product self is 'product.product' not 'product.template'.
Thanks,
Craig