[trunk] import (csv) projects

Bug #898626 reported by Jacques-Etienne Baudoux
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Server (MOVED TO GITHUB)
Confirmed
Low
OpenERP's Framework R&D

Bug Description

Hi,

The import of projects is very complex and doesn't work has expected.
The analytic account is not automatically created but a new reference to the analytic account is created in ir.model.data.
Currently, to import a project :
- first import analytic account with a specific module.xml_id
id name
analytic.ABCD ABCD
- import projects and refer to the previously imported analytic account
id name analytic_account_id/id parent_id/id state
project.ABCD ABCD ana.ABCD project.all_projects_account Open

In ir.model.data, you have 3 references:
name module model res_id
ABCD analytic account.analytic.account 172
ABCD project project.project 75
ABCD_account_analytic_account project account.analytic.account 172

It should be possible to create and update projects by importing only 1 csv file. The analytic account should be automatically created as suggested by the third entry created in ir.model.data

Tags: testcase
Revision history for this message
Amit Parik (amit-parik) wrote :

Hello,

I have faced the same problem, for more reference I have attached video.

Thanks

Revision history for this message
Amit Parik (amit-parik) wrote :
Changed in openobject-server:
assignee: nobody → OpenERP's Framework R&D (openerp-dev-framework)
importance: Undecided → Low
status: New → Confirmed
Revision history for this message
Antony Lesuisse (OpenERP) (al-openerp) wrote :

probably a problem when calling import_data with models using _inherits.
@jba do you think you could write a test case ?

I tag it with testcase according to the new policy

Changed in openobject-server:
importance: Low → Medium
tags: added: testcase
Revision history for this message
Antony Lesuisse (OpenERP) (al-openerp) wrote :

Import export csv xm yaml import will be refactored in 6.2 with specifications written as test cases and examples.

Changed in openobject-server:
importance: Medium → Low
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.