~savoirfairelinux-openerp/purchase-wkfl/pallet-delivery-optimized

« back to all changes in this revision

Viewing changes to purchase_lot_tracking/account.py

  • Committer: Alexandre Boily
  • Date: 2013-10-15 20:41:38 UTC
  • Revision ID: alexandre.boily@savoirfairelinux.com-20131015204138-zpc0brel358rh1ta
Add a reference to the issuing Purchase Order when creating an AA with a Lot

Show diffs side-by-side

added added

removed removed

Lines of Context:
66
66
        return res
67
67
 
68
68
    _columns = {
 
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'),
72
73
    }
73
74
 
 
75
 
74
76
class account_invoice(orm.Model):
75
77
 
76
78
    _inherit = 'account.invoice'
77
79
 
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)
80
 
        
81
 
 
82