openerp-india team mailing list archive
-
openerp-india team
-
Mailing list archive
-
Message #27174
[Bug 1274837] [NEW] error de query en sale_early_payment_discount
Public bug reported:
Dentro de una factura (que viene de un pedido de venta con descuento por
pronto pago), al intentar cambiar el plazo de pago, me salta el error de
abajo y me fuerza a escribir a mano el 'Desc. P.P.(%)' en la factura.
Corriendo sobre kubuntu 13.10 y ramas ocb.
El error:
2014-01-31 07:55:58,911 19267 ERROR ? openerp.sql_db: bad query: SELECT "account_partner_payment_term_early_discount".id FROM "account_partner_payment_term_early_discount" WHERE ((account_partner_payment_term_early_discount."partner_id" = %s) AND (account_partner_payment_term_early_discount."payment_term_id" = %s)) ORDER BY id
Traceback (most recent call last):
File "/mnt/workZone/openerp/testing/openerp_61_ocb_devel/ocb-server/openerp/sql_db.py", line 212, in execute
res = self._obj.execute(query, params)
TypeError: not all arguments converted during string formatting
2014-01-31 07:55:58,911 19267 ERROR ? openerp.osv.osv: Uncaught exception
Traceback (most recent call last):
File "/mnt/workZone/openerp/testing/openerp_61_ocb_devel/ocb-server/openerp/osv/osv.py", line 129, in wrapper
return f(self, dbname, *args, **kwargs)
File "/mnt/workZone/openerp/testing/openerp_61_ocb_devel/ocb-server/openerp/osv/osv.py", line 195, in execute
res = self.execute_cr(cr, uid, obj, method, *args, **kw)
File "/mnt/workZone/openerp/testing/openerp_61_ocb_devel/ocb-server/openerp/osv/osv.py", line 183, in execute_cr
return getattr(object, method)(cr, uid, *args, **kw)
File "/opt/openerp/testing/openerp_61_ocb_devel/all-addons/sale_early_payment_discount/account_invoice.py", line 221, in onchange_payment_term
early_discs = self.pool.get('account.partner.payment.term.early.discount').search(cr, uid, [('partner_id', '=', part), ('payment_term_id', '=', payment_term)])
File "/mnt/workZone/openerp/testing/openerp_61_ocb_devel/ocb-server/openerp/osv/orm.py", line 2254, in search
return self._search(cr, user, args, offset=offset, limit=limit, order=order, context=context, count=count)
File "/mnt/workZone/openerp/testing/openerp_61_ocb_devel/ocb-server/openerp/osv/orm.py", line 4608, in _search
cr.execute('SELECT "%s".id FROM ' % self._table + from_clause + where_str + order_by + limit_str + offset_str, where_clause_params)
File "/mnt/workZone/openerp/testing/openerp_61_ocb_devel/ocb-server/openerp/sql_db.py", line 152, in wrapper
return f(self, *args, **kwargs)
File "/mnt/workZone/openerp/testing/openerp_61_ocb_devel/ocb-server/openerp/sql_db.py", line 212, in execute
res = self._obj.execute(query, params)
TypeError: not all arguments converted during string formatting
2014-01-31 07:55:58,911 19267 ERROR ? openerp.netsvc: not all arguments converted during string formatting
** Affects: openobject-addons
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/1274837
Title:
error de query en sale_early_payment_discount
Status in OpenERP Addons (modules):
New
Bug description:
Dentro de una factura (que viene de un pedido de venta con descuento
por pronto pago), al intentar cambiar el plazo de pago, me salta el
error de abajo y me fuerza a escribir a mano el 'Desc. P.P.(%)' en la
factura.
Corriendo sobre kubuntu 13.10 y ramas ocb.
El error:
2014-01-31 07:55:58,911 19267 ERROR ? openerp.sql_db: bad query: SELECT "account_partner_payment_term_early_discount".id FROM "account_partner_payment_term_early_discount" WHERE ((account_partner_payment_term_early_discount."partner_id" = %s) AND (account_partner_payment_term_early_discount."payment_term_id" = %s)) ORDER BY id
Traceback (most recent call last):
File "/mnt/workZone/openerp/testing/openerp_61_ocb_devel/ocb-server/openerp/sql_db.py", line 212, in execute
res = self._obj.execute(query, params)
TypeError: not all arguments converted during string formatting
2014-01-31 07:55:58,911 19267 ERROR ? openerp.osv.osv: Uncaught exception
Traceback (most recent call last):
File "/mnt/workZone/openerp/testing/openerp_61_ocb_devel/ocb-server/openerp/osv/osv.py", line 129, in wrapper
return f(self, dbname, *args, **kwargs)
File "/mnt/workZone/openerp/testing/openerp_61_ocb_devel/ocb-server/openerp/osv/osv.py", line 195, in execute
res = self.execute_cr(cr, uid, obj, method, *args, **kw)
File "/mnt/workZone/openerp/testing/openerp_61_ocb_devel/ocb-server/openerp/osv/osv.py", line 183, in execute_cr
return getattr(object, method)(cr, uid, *args, **kw)
File "/opt/openerp/testing/openerp_61_ocb_devel/all-addons/sale_early_payment_discount/account_invoice.py", line 221, in onchange_payment_term
early_discs = self.pool.get('account.partner.payment.term.early.discount').search(cr, uid, [('partner_id', '=', part), ('payment_term_id', '=', payment_term)])
File "/mnt/workZone/openerp/testing/openerp_61_ocb_devel/ocb-server/openerp/osv/orm.py", line 2254, in search
return self._search(cr, user, args, offset=offset, limit=limit, order=order, context=context, count=count)
File "/mnt/workZone/openerp/testing/openerp_61_ocb_devel/ocb-server/openerp/osv/orm.py", line 4608, in _search
cr.execute('SELECT "%s".id FROM ' % self._table + from_clause + where_str + order_by + limit_str + offset_str, where_clause_params)
File "/mnt/workZone/openerp/testing/openerp_61_ocb_devel/ocb-server/openerp/sql_db.py", line 152, in wrapper
return f(self, *args, **kwargs)
File "/mnt/workZone/openerp/testing/openerp_61_ocb_devel/ocb-server/openerp/sql_db.py", line 212, in execute
res = self._obj.execute(query, params)
TypeError: not all arguments converted during string formatting
2014-01-31 07:55:58,911 19267 ERROR ? openerp.netsvc: not all arguments converted during string formatting
To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/1274837/+subscriptions
Follow ups
References