OpenERP 6.1 - Export of users data fails

Bug #985329 reported by Kenneth Andresen
48
This bug affects 6 people
Affects Status Importance Assigned to Milestone
Odoo Server (MOVED TO GITHUB)
Confirmed
Low
OpenERP's Framework R&D
6.1
Confirmed
Low
OpenERP Publisher's Warranty Team

Bug Description

Server: OpenERP 6.1 (OpenERP Server 6.1-20120325-233047)

1) setup clean system and install a module such as Sales or Warehouse as admin
2) go to Settings -> Users -> Users
3) go to Other Options -> Export
4) Add all fields and select "Export to File"

You will never get a file to download.
The web interface will indicate it is working for some time, then disappear whereas the page will load forever.

In the server log you will see a Error message similar to this:
ERROR:openerp.netsvc:Field 'sel_groups_13_14_15' does not exist in object 'browse_record(res.users, 1)'

The above error is assuming the you attempted to export "Accounting & Finance".

Fields that cause similar errors on export:
Accounting & Finance
Administration
Analytic Accounting
Extended View
Human Resources
Knowledge Management
Multi Companies
Partner Manager
Product UoS View
Product Variant
Purchase Management
Sales Management
Technical Features
Warehouse Management

Tags: maintenance
Revision history for this message
Kenneth Andresen (kandresen) wrote :

I did before submitting this bug also test on http://6_1_6522.runbot.openerp.com:9410 using database 6_1_6522_all

The Export fails the same way there, so it has not been fixed in any recent build.

Revision history for this message
Kenneth Andresen (kandresen) wrote :

Notice, I had the following modules installed when trying to export:

Name Category/Name Installed version State
account_accountant Accounting & Finance 6.1.1.1 Installed
sale Sales Management 6.1.1.0 Installed
stock Warehouse Management 6.1.1.1 Installed
purchase Purchase Management 6.1.1.1 Installed
account Accounting & Finance 6.1.1.1 Installed
document Knowledge Management 6.1.2.1 Installed
edi Tools 6.1.1.0 Installed
email_template Marketing 6.1.1.1 Installed
product Sales Management 6.1.1.1 Installed
web_process Uncategorized 6.1.2.0 Installed

Assuming other modules add elements to user export, those will likely fail the same way.

Changed in openobject-server:
assignee: nobody → OpenERP's Framework R&D (openerp-dev-framework)
importance: Undecided → Low
status: New → Confirmed
tags: added: maintenance
Revision history for this message
Lucas P (lucas33-3) wrote :

I wrote some explanation about this bug and a temporary workaround on the forum:
http://www.openerp.com/forum/topic32293.html?uid=46155&sid=3fb06f44c5d746a8692e09afffcbd8bb

Revision history for this message
Ray Carnes (rcarnes) wrote :

We have been given the following patch, which works for us:

=== modified file 'openerp/osv/orm.py'
--- openerp/osv/orm.py 2012-08-26 20:26:55 +0000
+++ openerp/osv/orm.py 2012-08-28 11:38:10 +0000
@@ -1124,7 +1124,10 @@
                     elif f[i] == 'id':
                         r = _get_xml_id(self, cr, uid, r)
                     else:
- r = r[f[i]]
+ if f[i].startswith('in_group_') or f[i].startswith('in_groups_') or f[i].startswith('sel_groups_'):
+ r = self.read(cr, uid, row.id, [f[i]], context)[f[i]]
+ else:
+ r = r[f[i]]
                         # To display external name of selection field when its exported
                         if f[i] in self._columns.keys():
                             cols = self._columns[f[i]]

Revision history for this message
Kenneth Andresen (kandresen) wrote :

Thanks for the patch! I have tested it and it is working fine for me!

Revision history for this message
Martin Bramwell (martinhbramwell) wrote :

I have adapted this patch for use with OpenERP V7 and posted it here.

However it is NOT a real answer to this bug.

Further discussion here : http://help.openerp.com/question/12789/whats-the-correct-way-to-access-technical-features/

Revision history for this message
Martin Bramwell (martinhbramwell) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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