Bug with importing product categories (Windows)

Bug #495572 reported by Blqt
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Web Client
Fix Released
Undecided
Unassigned

Bug Description

I have just made a build of the same version on both Windows and Linux
server : revision 1910
client-web: revision 2768
addons: revision 2488

On windows, I can't import products from the web client: the categories are not recognized.
Everything is fine on Linux.
The same imported file works fine on official 5.06 release.

I used the script described at http://www.openobject.com/forum/topic12184.html
for the windows build.
Is there anything wrong with this script or is it a regression?

/Benoit

Related branches

Revision history for this message
Sananaz (Open ERP) (sma-tiny) wrote :

Hello Benoit,

Can you please give us the script which you used for importing products from webclient,
And yes you just tell us steps you followed to import the data and error you get when run your script.

Thanks.

Revision history for this message
Blqt (benoit-luquet) wrote :

Here is what I used (a subset)
(I use the french interface and these files are imported perfectly in 5.06)

1- Import categories
Web interface
French
Separator ;
Encoding Latin1

File:
name;parent_id
PRODUITS;
BROCHETTE;PRODUITS
FOURRE;PRODUITS
ROULE;PRODUITS
SPECIALITE;PRODUITS

2- Import products
Web interface
French
Separator ;
Encoding Latin1

File:
Code;Nom;Description;Catégorie;Prix standard;Méthode d'approvisionnement;Méthode de fourniture;Suive les lots de productions;Tracer les lots entrants;Tracer les lots sortants;Type de produit;Actif;Méthode de coût;Peut être acheté;Peut être vendu;Type de mesure;UdM d'achat;UdM par défaut;Emplacement de la Production;Emplacement d'approvisionnement;Emplacement de l'Inventaire
B1E1;Brochette chevre tomate 80g From - L;Brochette chevre tomate 80g From;BROCHETTE;1.52;make_to_stock;produce;True;True;True;product;True;standard;False;True;fixed;PCE;PCE;Production;Procurements;Inventory loss
B2E1;Brochette chevre pruneaux lard 120g From - L;Brochette chevre pruneaux lard 120g From;BROCHETTE;1.63;make_to_stock;produce;True;True;True;product;True;standard;False;True;fixed;PCE;PCE;Production;Procurements;Inventory loss

Error message:
Traceback (most recent call last):
  File "netsvc.pyo", line 244, in dispatch
  File "netsvc.pyo", line 73, in __call__
  File "service\web_services.pyo", line 597, in execute
  File "osv\osv.pyo", line 61, in wrapper
  File "osv\osv.pyo", line 120, in execute
  File "osv\osv.pyo", line 112, in execute_cr
  File "osv\orm.pyo", line 834, in import_data
  File "osv\orm.pyo", line 662, in process_liness
  File "tools\misc.pyo", line 686, in cached_result
  File "C:\Program Files\OpenERP AllInOne\Server\addons\base\ir\ir_model.py", line 435, in _get_id
Exception: No references to .BROCHETTE

HTH
Benoit

Revision history for this message
Sananaz (Open ERP) (sma-tiny) wrote :

Hello Benoit,

Its fixed in stable please update your code and notify us.

Revision Info:
2771 <email address hidden>

Thank you.

Changed in openobject-client-web:
status: New → Fix Committed
Revision history for this message
Blqt (benoit-luquet) wrote :

Hello,

That works perfectly.
Thanks so much.

Benoit

Changed in openobject-client-web:
status: Fix Committed → Fix Released
milestone: none → 5.0.11
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.