[FIX] Sale: Sale order not created without company_id

bzr revid: mra@mra-laptop-20100818104946-d7y6hf3npfurcslv
This commit is contained in:
Mustufa Rangwala 2010-08-18 16:19:46 +05:30
parent 176a577966
commit 29fb358087
1 changed files with 2 additions and 2 deletions

View File

@ -38,7 +38,7 @@ class sale_shop(osv.osv):
'warehouse_id': fields.many2one('stock.warehouse', 'Warehouse'),
'pricelist_id': fields.many2one('product.pricelist', 'Pricelist'),
'project_id': fields.many2one('account.analytic.account', 'Analytic Account'),
'company_id': fields.many2one('res.company', 'Company'),
'company_id': fields.many2one('res.company', 'Company', required=True),
}
sale_shop()
@ -771,7 +771,7 @@ sale_order()
# - update it on change product and unit price
# - use it in report if there is a uos
class sale_order_line(osv.osv):
def _amount_line(self, cr, uid, ids, field_name, arg, context=None):
tax_obj = self.pool.get('account.tax')
cur_obj = self.pool.get('res.currency')