32
32
'purchase_ids': fields.one2many('purchase.order', 'analytic_distribution_id', string="Purchases"),
33
'purchase_line_ids': fields.one2many('purchase.order.line', 'analytic_distribution_id', string="Purchase Lines"),
34
'sale_order_ids': fields.one2many('sale.order', 'analytic_distribution_id', string="Sales"),
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
33
'purchase_line_ids': fields.one2many('purchase.order.line', 'analytic_distribution_id', string="Purchase lines"),
39
def copy(self, cr, uid, d_id, default=None, context=None):
41
Delete one2many fields
48
# Delete purchase_ids and purchase_line_ids links
50
'purchase_ids': False,
51
'purchase_line_ids': False,
52
'sale_order_ids': False,
53
'sale_order_line_ids': False,
55
return super(analytic_distribution, self).copy(cr, uid, d_id, default, context)
57
36
analytic_distribution()
58
37
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: