Whow to overrride a méthod in Openerp
Hi everybody,
I want override a method price_get of the pricelist class to custom price computing.
So I make this by inheritance (see code below). The problem is still the original method that is triggered!
What's wrong ?
class product_
_name = 'product.pricelist'
_inherit = 'product.pricelist'
def price_get(self, cr, uid, ids, prod_id, qty, partner=None, context=None):
re = super(product_
res_multi = self.price_
res = res_multi[prod_id]
return res
Thank you for your help
Question information
- Language:
- English Edit question
- Status:
- Solved
- Assignee:
- No assignee Edit question
- Solved by:
- EL HADJ MIMOUNE Mourad
- Solved:
- Last query:
- Last reply: