[FIX] point_of_sale: ok this one should be good
bzr revid: mat@openerp.com-20130814140240-f0qqsks6tcc423s8
This commit is contained in:
parent
9f5c0f54ec
commit
41ca4aa350
|
@ -109,8 +109,8 @@ class pos_config(osv.osv):
|
|||
return result
|
||||
|
||||
def _default_sale_journal(self, cr, uid, context=None):
|
||||
company_id = self.pool.get('res.users').browse(cr, uid, uid, context=context)
|
||||
res = self.pool.get('account.journal').search(cr, uid, [('type', '=', 'sale'), ('company_id', '=', company_id.id)], limit=1, context=context)
|
||||
company_id = self.pool.get('res.users').browse(cr, uid, uid, context=context).company_id.id
|
||||
res = self.pool.get('account.journal').search(cr, uid, [('type', '=', 'sale'), ('company_id', '=', company_id)], limit=1, context=context)
|
||||
return res and res[0] or False
|
||||
|
||||
def _default_shop(self, cr, uid, context=None):
|
||||
|
|
Loading…
Reference in New Issue