~unifield-team/unifield-wm/us-826

« back to all changes in this revision

Viewing changes to analytic_distribution_supply/analytic_distribution.py

  • Committer: Quentin THEURET
  • Date: 2016-03-04 12:15:00 UTC
  • Revision ID: qt@tempo-consulting.fr-20160304121500-u2ay8zrf83ih9fu3
US-826 [IMP] Change the way to check if products is not consistent on add multiple line wizard

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
36
37
    }
37
38
 
38
 
    def copy(self, cr, uid, id, default=None, context=None):
 
39
    def copy(self, cr, uid, d_id, default=None, context=None):
39
40
        """
40
41
        Delete one2many fields
41
42
        """
51
52
            'sale_order_ids': False,
52
53
            'sale_order_line_ids': False,
53
54
        })
54
 
        return super(analytic_distribution, self).copy(cr, uid, id, default, context)
 
55
        return super(analytic_distribution, self).copy(cr, uid, d_id, default, context)
55
56
 
56
57
analytic_distribution()
57
58
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: