~unifield-team/unifield-wm/us-671-homere

« back to all changes in this revision

Viewing changes to analytic_distribution_supply/analytic_distribution.py

  • Committer: chloups208
  • Date: 2012-11-21 11:15:15 UTC
  • mto: This revision was merged to the branch mainline in revision 1340.
  • Revision ID: chloups208@chloups208-laptop-20121121111515-myqv282h6xmgh053
utp-171 modification of fields po, po line, product, so, so line

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
        'purchase_line_ids': fields.one2many('purchase.order.line', 'analytic_distribution_id', string="Purchase Lines"),
34
34
        'sale_order_ids': fields.one2many('sale.order', 'analytic_distribution_id', string="Sales"),
35
35
        'sale_order_line_ids': fields.one2many('sale.order.line', 'analytic_distribution_id', string="Sale Order Lines"),
36
 
        'partner_type': fields.text(string='Partner Type of FO/PO', required=False, readonly=True),#UF-2138: added the ref to partner type of FO/PO
37
36
    }
38
37
 
39
 
    def copy(self, cr, uid, d_id, default=None, context=None):
 
38
    def copy(self, cr, uid, id, default=None, context=None):
40
39
        """
41
40
        Delete one2many fields
42
41
        """
52
51
            'sale_order_ids': False,
53
52
            'sale_order_line_ids': False,
54
53
        })
55
 
        return super(analytic_distribution, self).copy(cr, uid, d_id, default, context)
 
54
        return super(analytic_distribution, self).copy(cr, uid, id, default, context)
56
55
 
57
56
analytic_distribution()
58
57
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: