Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

[Bug?]partial invoicing from sales order [Closed]

By
Mind And Go
on 1/9/14, 5:22 PM 1,704 views

The Question has been closed

by
Fabien Pinckaers (fp)
on 05/20/2014 07:46:36

Hy,

I'm running under OpenERP 7.0 update thanks to bazaar. I'm trying to make partial invoices from a sale order that has bee confirmed. I have this issue :

2014-01-08 16:38:55,343 1977 ERROR at_prod openerp.osv.osv: Uncaught exception Traceback (most recent call last): File "/home/florent/DEV/Serveurs/openerp-7.0-series/server/openerp/osv/osv.py", line 131, in wrapper return f(self, dbname, args, *kwargs) File "/home/florent/DEV/Serveurs/openerp-7.0-series/server/openerp/osv/osv.py", line 197, in execute res = self.execute_cr(cr, uid, obj, method, args, *kw) File "/home/florent/DEV/Serveurs/openerp-7.0-series/server/openerp/osv/osv.py", line 185, in execute_cr return getattr(object, method)(cr, uid, args, *kw) File "/home/florent/DEV/Serveurs/openerp-7.0-series/addons/sale/wizard/sale_make_invoice_advance.py", line 189, in create_invoices inv_ids.append(self._create_invoices(cr, uid, inv_values, sale_id, context=context)) File "/home/florent/DEV/Serveurs/openerp-7.0-series/addons/sale/wizard/sale_make_invoice_advance.py", line 158, in _create_invoices sale_obj.write(cr, uid, sale_id, {'invoice_ids': [(4, inv_id)]}, context=context) File "/home/florent/DEV/Projets_Attraptemps/Depot-OpenERP/trunk/magaddons/at_prod/order.py", line 49, in write for sale in self.browse(cr,uid, ids, context=context): File "/home/florent/DEV/Serveurs/openerp-7.0-series/server/openerp/osv/orm.py", line 505, in __iter__ raise NotImplementedError("Iteration is not allowed on %s" % self) NotImplementedError: Iteration is not allowed on browse_record(sale.order, 15) 2014-01-08 16:38:55,343 1977 ERROR at_prod openerp.netsvc: Iteration is not allowed on browse_record(sale.order, 15) Traceback (most recent call last): File "/home/florent/DEV/Serveurs/openerp-7.0-series/server/openerp/netsvc.py", line 292, in dispatch_rpc result = ExportService.getService(service_name).dispatch(method, params) File "/home/florent/DEV/Serveurs/openerp-7.0-series/server/openerp/service/web_services.py", line 626, in dispatch res = fn(db, uid, params) File "/home/florent/DEV/Serveurs/openerp-7.0-series/server/openerp/osv/osv.py", line 188, in execute_kw return self.execute(db, uid, obj, method, *args, *kw or {}) File "/home/florent/DEV/Serveurs/openerp-7.0-series/server/openerp/osv/osv.py", line 131, in wrapper return f(self, dbname, args, *kwargs) File "/home/florent/DEV/Serveurs/openerp-7.0-series/server/openerp/osv/osv.py", line 197, in execute res = self.execute_cr(cr, uid, obj, method, args, *kw) File "/home/florent/DEV/Serveurs/openerp-7.0-series/server/openerp/osv/osv.py", line 185, in execute_cr return getattr(object, method)(cr, uid, args, *kw) File "/home/florent/DEV/Serveurs/openerp-7.0-series/addons/sale/wizard/sale_make_invoice_advance.py", line 189, in create_invoices inv_ids.append(self._create_invoices(cr, uid, inv_values, sale_id, context=context)) File "/home/florent/DEV/Serveurs/openerp-7.0-series/addons/sale/wizard/sale_make_invoice_advance.py", line 158, in _create_invoices sale_obj.write(cr, uid, sale_id, {'invoice_ids': [(4, inv_id)]}, context=context) File "/home/florent/DEV/Projets_Attraptemps/Depot-OpenERP/trunk/magaddons/at_prod/order.py", line 49, in write for sale in self.browse(cr,uid, ids, context=context): File "/home/florent/DEV/Serveurs/openerp-7.0-series/server/openerp/osv/orm.py", line 505, in __iter__ raise NotImplementedError("Iteration is not allowed on %s" % self) NotImplementedError: Iteration is not allowed on browse_record(sale.order, 15)

I tried many thing without success

If anyone could help, it will be great.

regards

0
Mind And Go
On 1/9/14, 6:15 PM

Problem solved.

https://bugs.launchpad.net/openobject-addons/+bug/992183

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

0 follower(s)

Stats

Asked: 1/9/14, 5:22 PM
Seen: 1704 times
Last updated: 3/16/15, 8:10 AM