I want overwrite the _get_order and print_quotation methods from the purchase module. My code below only works for the print_quotation method but not for _get_order method. I had the same problem with other methods like _minimum_planned_date .
I added the colums definition to my new purchase.py file experimentally. In this case both methods my _get_order method and the orginal _get_order method were executed.
Thanks
My code
class purchase_order(orm.Model):
_inherit='purchase.order'
_name='purchase.order'
def print_quotation(self, cr, uid, ids, context=None):
print "### my quotation used"
res = super(purchase_order, self).print_quotation( cr, uid, ids,context)
return res
def _get_order(self, cr, uid, ids, context=None):
print "### my _get_order" ...