[REF] Account
bzr revid: jvo@tinyerp.com-20100830062831-ogdbungx8wavf0v7
This commit is contained in:
parent
56efd64b55
commit
031a79f52e
|
@ -104,7 +104,6 @@ class account_bank_statement(osv.osv):
|
||||||
periods = self.pool.get('account.period').find(cr, uid)
|
periods = self.pool.get('account.period').find(cr, uid)
|
||||||
if periods:
|
if periods:
|
||||||
return periods[0]
|
return periods[0]
|
||||||
else:
|
|
||||||
return False
|
return False
|
||||||
|
|
||||||
def _currency(self, cursor, user, ids, name, args, context=None):
|
def _currency(self, cursor, user, ids, name, args, context=None):
|
||||||
|
|
|
@ -523,7 +523,7 @@ class account_invoice(osv.osv):
|
||||||
obj_l = account_obj.browse(cr, uid, inv_line[2]['account_id'])
|
obj_l = account_obj.browse(cr, uid, inv_line[2]['account_id'])
|
||||||
if obj_l.company_id.id != company_id:
|
if obj_l.company_id.id != company_id:
|
||||||
raise osv.except_osv(_('Configuration Error !'),
|
raise osv.except_osv(_('Configuration Error !'),
|
||||||
_('invoice line account company is not match with invoice company.'))
|
_('Invoice line account company does not match with invoice company.'))
|
||||||
else:
|
else:
|
||||||
continue
|
continue
|
||||||
if company_id and type:
|
if company_id and type:
|
||||||
|
|
Loading…
Reference in New Issue