From 6637f578c7973b2bd03a334161c5b773f65555ac Mon Sep 17 00:00:00 2001 From: pso Date: Thu, 11 Nov 2010 11:52:25 +0530 Subject: [PATCH] [FIX] sale: SO -History - can delete related invoice lp bug: https://launchpad.net/bugs/663967 fixed bzr revid: pso@tinyerp.com-20101111062225-xvibc48jivrbwntj --- addons/sale/sale.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/sale/sale.py b/addons/sale/sale.py index b65e640d6dc..29826e1c293 100644 --- a/addons/sale/sale.py +++ b/addons/sale/sale.py @@ -245,7 +245,7 @@ class sale_order(osv.osv): 'project_id': fields.many2one('account.analytic.account', 'Analytic Account', readonly=True, states={'draft': [('readonly', False)]}, help="The analytic account related to a sale order"), 'order_line': fields.one2many('sale.order.line', 'order_id', 'Order Lines', readonly=True, states={'draft': [('readonly', False)]}), - 'invoice_ids': fields.many2many('account.invoice', 'sale_order_invoice_rel', 'order_id', 'invoice_id', 'Invoices', help="This is the list of invoices that have been generated for this sale order. The same sale order may have been invoiced in several times (by line for example)."), + 'invoice_ids': fields.many2many('account.invoice', 'sale_order_invoice_rel', 'order_id', 'invoice_id', 'Invoices', readonly=True, help="This is the list of invoices that have been generated for this sale order. The same sale order may have been invoiced in several times (by line for example)."), 'picking_ids': fields.one2many('stock.picking', 'sale_id', 'Related Picking', readonly=True, help="This is the list of picking list that have been generated for this invoice"), 'shipped': fields.boolean('Delivered', readonly=True, help="It indicates that the sale order has been delivered. This field is updated only after the scheduler have been launched !"), 'picked_rate': fields.function(_picked_rate, method=True, string='Picked', type='float'),