Import facility does not handle many2many records correctly

Bug #845440 reported by James Jesudason
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Server (MOVED TO GITHUB)
Invalid
Undecided
Unassigned

Bug Description

The import from CSV facility is not handling many2many records correctly. To test:

1. In install the accounts module.
2. Use the export CSV wizard to generate an export file, include the 'Entries/Account' field.
3. Try and use the exported CSV to import into the system.

Expected result: should import the records correctly.
Actual result: generates an error that indicates that it cannot find the account record.

Having traced what is happening, I tracked down the problem to the field detection. When it comes to the account.move.line account field (line_id/account_id) it searches the account.move.line model, looking at the 'name' column. This is incorrect. It should be searching the account.account record, looking at the 'name' field.

It has looked at the model of the 'line_id' part of the field (account.move.line), but not recognised that 'account_id' is a many2one field - thus it should look at the model of the 'account_id' field (account.account) and search for that.

OpenERP version: 6.1 trunk

Revision history for this message
Vishal Parmar(Open ERP) (vpa-openerp) wrote :

Hello James Jesudason,

Would you please give your .csv file and provide proper steps with related video or screenshot so we can reproduce same at our

end.

Thanks and waiting for your reply.

Changed in openobject-server:
status: New → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for OpenERP Server because there has been no activity for 60 days.]

Changed in openobject-server:
status: Incomplete → Expired
Revision history for this message
Amit Parik (amit-parik) wrote :

Hello James,

Would you please check with the latest updated code.

Currently I am closing this issue, If you still face the problem then you can reopen this with more information.

Thanks

Changed in openobject-server:
status: Expired → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.