From 359d6d5c9216b044ff87a436ee74b149c57d32f9 Mon Sep 17 00:00:00 2001 From: Antony Lesuisse Date: Wed, 5 Jan 2011 14:40:50 +0100 Subject: [PATCH] [FIX] sale set the company_id related field readonly lp bug: https://launchpad.net/bugs/694124 fixed bzr revid: al@openerp.com-20110105134050-yjf77ev78h08q9ri --- 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 65991b798d8..3ed49f44b74 100644 --- a/addons/sale/sale.py +++ b/addons/sale/sale.py @@ -260,7 +260,7 @@ class sale_order(osv.osv): 'invoice_quantity': fields.selection([('order', 'Ordered Quantities'), ('procurement', 'Shipped Quantities')], 'Invoice on', help="The sale order will automatically create the invoice proposition (draft invoice). Ordered and delivered quantities may not be the same. You have to choose if you want your invoice based on ordered or shipped quantities. If the product is a service, shipped quantities means hours spent on the associated tasks.", required=True, readonly=True, states={'draft': [('readonly', False)]}), 'payment_term': fields.many2one('account.payment.term', 'Payment Term'), 'fiscal_position': fields.many2one('account.fiscal.position', 'Fiscal Position'), - 'company_id': fields.related('shop_id','company_id',type='many2one',relation='res.company',string='Company',store=True) + 'company_id': fields.related('shop_id','company_id',type='many2one',relation='res.company',string='Company',store=True,readonly=True) } _defaults = { 'picking_policy': 'direct',