La poste generating error

Bug #1316144 reported by Philippe B
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Carriers And Deliveries Management
Incomplete
Undecided
Unassigned

Bug Description

i get this error generating the file
with generic it is ok

2014-05-05 12:52:51,787 2297 WARNING ABC openerp.osv.orm.browse_record.stock.picking: Field 'address_id' does not exist in object 'browse_record(stock.picking, 211)'
2014-05-05 12:52:51,788 2297 ERROR ABC openerp.osv.osv: Uncaught exception
Traceback (most recent call last):
  File "/opt/openerp/server/openerp/osv/osv.py", line 132, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/opt/openerp/server/openerp/osv/osv.py", line 199, in execute
    res = self.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/opt/openerp/server/openerp/osv/osv.py", line 187, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "/opt/openerp/carriers-deliveries/base_delivery_carrier_files/wizard/generate_carrier_files.py", line 62, in action_generate
    context=context)
  File "/opt/openerp/carriers-deliveries/base_delivery_carrier_files/stock.py", line 72, in generate_carrier_files
    context=context)
  File "/opt/openerp/carriers-deliveries/base_delivery_carrier_files/carrier_file.py", line 148, in generate_files
    context=context)
  File "/opt/openerp/carriers-deliveries/base_delivery_carrier_files/carrier_file.py", line 106, in _generate_files
    files = file_generator.generate_files(pickings, carrier_file)
  File "/opt/openerp/carriers-deliveries/base_delivery_carrier_files/generator/file_generator.py", line 71, in generate_files
    return self._generate_files_grouped(pickings, configuration)
  File "/opt/openerp/carriers-deliveries/base_delivery_carrier_files/generator/file_generator.py", line 191, in _generate_files_grouped
    rows += self._get_rows(picking, configuration)
  File "/opt/openerp/carriers-deliveries/delivery_carrier_file_laposte/generator/laposte_generator.py", line 75, in _get_rows
    address = picking.address_id
  File "/opt/openerp/server/openerp/osv/orm.py", line 504, in __getattr__
    raise AttributeError(e)
AttributeError: "Field 'address_id' does not exist in object 'browse_record(stock.picking, 211)'"

Revision history for this message
Romain Deheele - Camptocamp (romaindeheele) wrote :

Hello Philippe,

Do you test this addon on v7?
This addon works in v6.1 but is not ported yet in v7.
To realize that, I checked the manifest __openerp__.py, the key "installable" is still False.
To make the port, I joined an example (base_delivery_carrier_files v7 port ) :
http://bazaar.launchpad.net/~stock-logistic-core-editors/carriers-deliveries/7.0/revision/23

Regards,

Romain

Changed in carriers-deliveries:
status: New → Incomplete
Revision history for this message
Philippe B (philippe-j) wrote : Re: [Bug 1316144] Re: La poste generating error
Download full text (5.6 KiB)

bonjour romain

réponse en privé

ça a été une plaie pour arriver a tenter de tester le coliposte j’ai mis 2 week end a l’installer mais il y a des appels a plein d’autres axons du team arketion

don je ne connais pas bien les tenants et les aboutissants
voici ma structure d’addons
drwxrwxr-x 12 openerp openerp 4096 juin 8 12:14 carriers-deliveries
drwxrwxr-x 10 openerp openerp 4096 juin 7 20:36 e-commerce-addons
drwxrwxr-x 4 openerp openerp 4096 juin 7 20:50 enapps-csv-import-tool
drwxrwxr-x 7 openerp openerp 4096 juin 8 12:34 file-exchange
drwxrwxr-x 8 openerp openerp 4096 juin 8 12:34 file-exchange-70
drwxrwxr-x 2 openerp openerp 4096 juin 7 21:31 files
drwxrwxr-x 7 openerp openerp 4096 juin 8 21:28 fr-laposte
drwxrwxr-x 4 openerp openerp 4096 juin 8 13:20 module-configuration-helper-dbl
drwxrwxr-x 8 openerp openerp 4096 juin 7 21:04 new-report-intrastat
drwxrwxr-x 5 openerp openerp 4096 juin 10 12:26 openerp-connector
drwxrwxr-x 4 openerp openerp 4096 juin 7 20:47 openerp-connector-ecommerce
drwxrwxr-x 11 openerp openerp 4096 juin 8 09:41 openerp-connector-magento
drwxrwxr-x 32 openerp openerp 4096 juin 7 20:36 openerp-product-attributes
drwxrwxr-x 11 openerp openerp 4096 juin 8 21:53 openobject-extension-repository-70
drwxrwxr-x 18 openerp openerp 4096 juin 8 12:53 partner-contact-management
drwxrwxr-x 7 openerp openerp 4096 juin 7 20:49 product-kitting
-rw------- 1 openerp openerp 19 déc. 28 19:46 .psql_history
drwxrwxr-x 30 openerp openerp 4096 juin 7 20:36 sale-wkfl
drwxrwxr-x 10 openerp openerp 4096 juin 7 19:09 server
drwxrwxr-x 15 openerp openerp 4096 juin 7 20:50 stock-logistic-flows
drwxrwxr-x 17 openerp openerp 4096 juin 7 20:49 stock-logistic-warehouse
drwxrwxr-x 4 openerp openerp 4096 juin 7 20:26 web
drwxrwxr-x 5 openerp openerp 4096 juin 8 18:55 webkit-utils
openerp@lapos

de plus il y a au moins 3 version de fr-laposte qui trainent sur git

je visa attendre que ce soit un peu plus stable pour l’installer
pour l’instant je me sert d’expeditor inet relié a magento pour les envois et la récupération des numéros de tracking

de plus il manque un endroit pour mettre les plages de colis dans les paramètres (avec une alerte d’épuisement)

si je peux aider plus ce sera avec plaisir

Philippe

PB CONSEIL
Maintenance et Conseils
Philippe Bach
40 rue du Tivoli
67000 Strasbourg
+33 6 72 72 07 91
<email address hidden>

P Pensez à l'environnement avant d'imprimer ce message

Le 11 juin 2014 à 17:25, Romain Deheele - Camptocamp <email address hidden> a écrit :

> Hello Philippe,
>
> Do you test this addon on v7?
> This addon works in v6.1 but is not ported yet in v7.
> To realize that, I checked the manifest __openerp__.py, the key "installable" is still False.
> To make the port, I joined an example (base_delivery_carrier_files v7 port ) :
> http://bazaar.launchpad.net/~stock-logistic-core-editors/carriers-deliveries/7.0/revision/23
>
> Regards,
>
> Romain
>
> ** Changed in: carriers-deliveries
> Status: New => Incomplete
>
> --
> You received this bug noti...

Read more...

Revision history for this message
Sébastien BEAU - http://www.akretion.com (sebastien.beau) wrote :

Hi Philipe,
Regarding your test what is your need ?
Exporting the customer address information from openerp to inet expeditor? or directly printing the delivery label from OpenERP (whithout inet expeditor).

If is the first case then you have to port and install base_delivery_carrier_files and delivery_carrier_file_laposte to V7. (we do not plan to work on it)

If you want to print directlty the label from OpenERP, you have to use our module. But for now it's still under developement (we do not have any customer in production yet).
We are working hard on this project but it's not so simple. To resume it quickly you will have to install
- a python lib for generating the label and also to connect to the webservice
- 2 or 3 main modules on OpenERP side (depend if you use colissimo, socolissimo or both) (you will have also some dependency)
- pywebdriver on a raspberry py for printing the label automatically
- and a picking application based on sencha touch framework

Take care you will have to pass the poste label validation before going in production (you should contact the saleman of la poste)

For now it's not finish so please do not use it in production. When everything will be ready we will communicate on it. But for now it not even a beta version.

Hope this will help you

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.