Error editing existing pricelist
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Web (MOVED TO GITHUB) |
Fix Released
|
Medium
|
OpenERP R&D Web Team |
Bug Description
1. [Create]
2. Enter pricelist name, "Pricelist Version" [Create]
3. Enter name, "Listprice Items" [Create]
4. Select product (e.g. Ice Cream), based on "partner section…", surcharge 2.00 (rightmost fields, second from bottom)
5. [Save and close] [Save and close] [Save]
6. [Edit], then edit version and item
7. Set surcharge to 3.00
8. [Save] (item), [Save] (version), [Save] (pricelist)
Expected: pricelist saving
Observed: error dialog, product_
the product_id m2o seems to try setting the whole name_get somehow, rather than just the id. Not sure where that comes from.
Final RPC requests are:
object.
1,
'*',
'product.
'read',
[[8],
['sequence',
'name',
'product_id',
'product_
'categ_id',
'min_quantity',
'base'],
{'lang': 'en_US', 'tz': False, 'uid': 1}],
{})
object.execute_kw time:0.012s [{'base': -2,
'categ_id': False,
'id': 8,
'min_quantity': 0,
'name': u'1',
'product_id': (50, u'[1] Ice Cream'),
'product_
'sequence': 5}]
object.
1,
'*',
'product.
'write',
[[4],
{'version_id': [[1,
5,
8,
{'base': -2,
'id': 8,
'name': '1',
{'default_type': 'sale',
'lang': 'en_US',
'search_
'tz': False,
'uid': 1}],
{})
[old description]
1) Use demo data
2) Assign a supplier for a specific product, add some pricelists for this specific supplier
3) Create a new pricelist based on "Partner section of the product form" and make some price computation
4) Create a sale order, apply the pricelist and select the product on which you added some supplier info in step2
5) Error: No valid pricelist line found ! :Couldn't find a pricelist line matching this product and quantity.
You have to change either the product, the quantity or the pricelist.
6) If you try to modify the pricelist after that (I try to add a name to the rule I've created):
Client Traceback (most recent call last):
File "/home/
response[
File "/home/
r = m.write([id], data, req.session.
File "/home/
args, kw)
File "/home/
result = self.connector.
File "/home/
raise fault
Server Traceback (most recent call last):
File "/home/
result = openerp.
File "/home/
result = ExportService.
File "/home/
res = fn(db, uid, *params)
File "/home/
return self.execute(db, uid, obj, method, *args, **kw or {})
File "/home/
return f(self, dbname, *args, **kwargs)
File "/home/
res = self.execute_cr(cr, uid, obj, method, *args, **kw)
File "/home/
return fct_src(cr, uid, model, method, *args)
File "/home/
return getattr(object, method)(cr, uid, *args, **kw)
File "/home/
result += self._columns[
File "/home/
obj.write(cr, user, [act[1]], act[2], context=context)
File "/home/
result += self._columns[
File "/home/
obj.write(cr, user, [act[1]], act[2], context=context)
File "/home/
'where id IN %s', upd1 + [sub_ids])
File "/home/
return f(self, *args, **kwargs)
File "/home/
res = self._obj.
DataError: invalid input syntax for integer: "All products"
LINE 1: ..."base"
More or less the same bug under 6.0.3. No error but the price computation is false.
Related branches
Changed in openerp-web: | |
assignee: | nobody → OpenERP R&D Web Team (openerp-dev-web) |
summary: |
- Problem on pricelist when price computation based on "partner section on - the product form" + Error editing existing pricelist |
description: | updated |
description: | updated |
Changed in openerp-web: | |
status: | Confirmed → Fix Released |
Le 02/02/2012 10:19, Antoine(OpenERP) a écrit : odoo/runbot/ static/ openerp- dev-trunk- 1276/server/ openerp/ addons/ web/common/ http.py" , line 180, in dispatch odoo/runbot/ static/ openerp- dev-trunk- 1276/server/ openerp/ addons/ web/controllers /main.py" , line 830, in save eval_context( req.context) ) odoo/runbot/ static/ openerp- dev-trunk- 1276/server/ openerp/ addons/ web/common/ openerplib/ main.py" , line 250, in proxy odoo/runbot/ static/ openerp- dev-trunk- 1276/server/ openerp/ addons/ web/common/ openerplib/ main.py" , line 117, in proxy send(self. service_ name, method, *args) odoo/runbot/ static/ openerp- dev-trunk- 1276/server/ openerp/ addons/ web/common/ http.py" , line 609, in send odoo/runbot/ static/ openerp- dev-trunk- 1276/server/ openerp/ addons/ web/common/ http.py" , line 590, in send netsvc. dispatch_ rpc(service_ name, method, args) odoo/runbot/ static/ openerp- dev-trunk- 1276/server/ openerp/ netsvc. py", line 324, in dispatch_rpc getService( service_ name).dispatch( method, params) odoo/runbot/ static/ openerp- dev-trunk- 1276/server/ openerp/ service/ web_services. py", line 591, in dispatch odoo/runbot/ static/ openerp- dev-trunk- 1276/server/ openerp/ osv/osv. py", line 166, in execute_kw odoo/runbot/ static/ openerp- dev-trunk- 1276/server/ openerp/ osv/osv. py", line 120, in wrapper odoo/runbot/ static/ openerp- dev-trunk- 1276/server/ openerp/ osv/osv. py", line 175, in execute odoo/runbot/ static/ openerp- dev-trunk- 1276/server/ openerp/ addons/ audittrail/ audittrail. py", line 495, in execute_cr odoo/runbot/ static/ openerp- dev-trunk- 1276/server/ openerp/ osv/osv. py", line 163, in execute_cr odoo/runbot/ static/ openerp- dev-trunk- 1276/server/ openerp/ osv/orm. py", line 3920, in write field]. set(cr, self...
> Public bug reported:
>
> 1) Use demo data
> 2) Assign a supplier for a specific product, add some pricelists for this specific supplier
> 3) Create a new pricelist based on "Partner section of the product form" and make some price computation
> 4) Create a sale order, apply the pricelist and select the product on which you added some supplier info in step2
> 5) Error: No valid pricelist line found ! :Couldn't find a pricelist line matching this product and quantity.
> You have to change either the product, the quantity or the pricelist.
>
> 6) If you try to modify the pricelist after that (I try to add a name to
> the rule I've created):
>
>
> Client Traceback (most recent call last):
> File "/home/
> response["result"] = method(controller, self, **self.params)
> File "/home/
> r = m.write([id], data, req.session.
> File "/home/
> args, kw)
> File "/home/
> result = self.connector.
> File "/home/
> raise fault
>
>
> Server Traceback (most recent call last):
> File "/home/
> result = openerp.
> File "/home/
> result = ExportService.
> File "/home/
> res = fn(db, uid, *params)
> File "/home/
> return self.execute(db, uid, obj, method, *args, **kw or {})
> File "/home/
> return f(self, dbname, *args, **kwargs)
> File "/home/
> res = self.execute_cr(cr, uid, obj, method, *args, **kw)
> File "/home/
> return fct_src(cr, uid, model, method, *args)
> File "/home/
> return getattr(object, method)(cr, uid, *args, **kw)
> File "/home/
> result += self._columns[