173
173
address_obj.unlink(cr, uid, bill_address[0], context=context)
176
self.pool.get('res.company').write(cr, 1, [company.id], {'name': company.instance_id.instance}, context=context)
176
self.pool.get('res.company').write(cr, uid, [company.id], {'name': company.instance_id.instance}, context=context)
179
179
c.update({'from_config': True})
180
180
self.pool.get('res.partner').write(cr, uid, [company.partner_id.id], {'name': company.instance_id.instance,
181
181
'partner_type': 'internal'}, context=c)
187
instance_name = user_obj.browse(cr, uid, uid, context=context).company_id.partner_id.name
190
warehouse_id = data_obj.get_object_reference(cr, uid, 'stock', 'warehouse0')[1]
191
warehouse_obj.write(cr, uid, [warehouse_id], {'name': 'MSF %s' % instance_name}, context=context)