86
def button_reset_distribution(self, cr, uid, ids, context=None):
98
to_reset = sale_obj.search(cr, uid, [('order_id', 'in', ids)])
99
sale_obj.write(cr, uid, to_reset, {'analytic_distribution_id': False})
86
102
def copy_data(self, cr, uid, s_id, default=None, context=None):
88
104
Copy global distribution and give it to new sale order.