CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
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.
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" ...
About This Community
Odoo Training Center
|Asked: 3/18/14, 7:58 AM|
|Seen: 884 times|
|Last updated: 3/16/15, 8:10 AM|