69
'purchase_order': fields.many2one('purchase.order', 'Purchase Order', help='Issuing Purchase Order'),
69
70
'total_cost_unit': fields.function(_calculate_tcu, string='Total Cost Unit', type='float'),
70
71
'estimated_tcu': fields.function(_estimated_tcu, string='Estimated Total Cost per Unit', type='float'),
71
72
'total_in_qty': fields.function(_calculate_total_in, string='Total Received Quantity', type='float'),
74
76
class account_invoice(orm.Model):
76
78
_inherit = 'account.invoice'
78
80
def invoice_validate(self, cr, uid, ids, context=None):
79
81
return super(account_invoice, self).invoice_validate(cr, uid, ids, context=context)