Ciao a tutti,
ho questo problema:
Se ho un Ordine i cui item sono:
1/n Prodotto/i
1/n Servizio/i
Quando provo a generare la fattura passando ovviamente tra i vari TAB Ordine di consegna e Crea Fattura.
all'atto della creazione della fattura mi compare l'errore in allegato ch e qui estrapolo nel contenuto:
Server Traceback (most recent call last):
File "/usr/lib/pymodules/python2.7/openerp/addons/web/session.py", line 89, in send
return openerp.netsvc.dispatch_rpc(service_name, method, args)
File "/usr/lib/pymodules/python2.7/openerp/netsvc.py", line 292, in dispatch_rpc
result = ExportService.getService(service_name).dispatch(method, params)
File "/usr/lib/pymodules/python2.7/openerp/service/web_services.py", line 626, in dispatch
res = fn(db, uid, *params)
File "/usr/lib/pymodules/python2.7/openerp/osv/osv.py", line 190, in execute_kw
return self.execute(db, uid, obj, method, *args, **kw or {})
File "/usr/lib/pymodules/python2.7/openerp/osv/osv.py", line 132, in wrapper
return f(self, dbname, *args, **kwargs)
File "/usr/lib/pymodules/python2.7/openerp/osv/osv.py", line 199, in execute
res = self.execute_cr(cr, uid, obj, method, *args, **kw)
File "/usr/lib/pymodules/python2.7/openerp/osv/osv.py", line 187, in execute_cr
return getattr(object, method)(cr, uid, *args, **kw)
File "/usr/lib/pymodules/python2.7/openerp/addons/stock/wizard/stock_invoice_onshipping.py", line 106, in open_invoice
res = self.create_invoice(cr, uid, ids, context=context)
File "/usr/lib/pymodules/python2.7/openerp/addons/stock/wizard/stock_invoice_onshipping.py", line 146, in create_invoice
context=context)
File "/usr/lib/pymodules/python2.7/openerp/addons/extension_sale/extension_sale_stock.py", line 19, in action_invoice_create
res = super(my_stock_picking_out, self).action_invoice_create(cursor, user, ids, journal_id, group, type, context)
File "/usr/lib/pymodules/python2.7/openerp/addons/delivery/stock.py", line 128, in action_invoice_create
context=context)
File "/usr/lib/pymodules/python2.7/openerp/addons/stock/stock.py", line 1167, in action_invoice_create
self._invoice_hook(cr, uid, picking, invoice_id)
File "/usr/lib/pymodules/python2.7/openerp/addons/sale_stock/stock.py", line 135, in _invoice_hook
vals = order_line_obj._prepare_order_line_invoice_line(cursor, user, sale_line, False)
File "/usr/lib/pymodules/python2.7/openerp/addons/extension_sale/extension_sale_partial.py", line 90, in _prepare_order_line_invoice_line
if '_partial_invoice' in context:
TypeError: argument of type 'NoneType' is not iterable
Avete qualche idea/suggerimento?