[7.0] "partner" doesn`t work in Other pricelist

Asked by Joshua Jan(SHINEIT) on 2013-01-24

Hi all.

I create two purchase pricelist
1) p-a : Based on : Partner section of the product form | Base Price * ( 1 + 0) + 0
2) p-a80% : Based on : Other Pricelist | Other Pricelist : p-a | Base Price * ( 1 + -0.2) + 0

when I create a purchase order use the p-a that It works well. But when I use p-a80% then I got 0.00.

Best Regards
Joshua

Question information

Language:
English Edit question
Status:
Open
For:
Odoo Addons (MOVED TO GITHUB) Edit question
Assignee:
No assignee Edit question
Last query:
2013-01-24
Last reply:

=== modified file 'product/pricelist.py'
--- product/pricelist.py 2012-12-06 14:56:32 +0000
+++ product/pricelist.py 2013-01-24 14:13:51 +0000
@@ -233,7 +233,7 @@
                             else:
                                 price_tmp = self.price_get(cr, uid,
                                         [res['base_pricelist_id']], product_id,
- qty, context=context)[res['base_pricelist_id']]
+ qty, partner, context=context)[res['base_pricelist_id']]
                                 ptype_src = self.browse(cr, uid, res['base_pricelist_id']).currency_id.id
                                 uom_price_already_computed = True
                                 price = currency_obj.compute(cr, uid, ptype_src, res['currency_id'], price_tmp, round=False)

I think it`s better to add parameter "partner" to here.

Can you help with this problem?

Provide an answer of your own, or ask Joshua Jan(SHINEIT) for more information if necessary.

To post a message you must log in.