[FIX] account bank statement
bzr revid: fp@tinyerp.com-20111211101845-ejswkmmty1kba1sg
This commit is contained in:
parent
ca16eaf1b1
commit
785f2bb5af
|
@ -34,8 +34,6 @@ class account_bank_statement(osv.osv):
|
|||
for line in vals['line_ids']:
|
||||
seq += 1
|
||||
line[2]['sequence'] = seq
|
||||
new_line_ids += tuple(line)
|
||||
vals['line_ids'] = new_line_ids
|
||||
return super(account_bank_statement, self).create(cr, uid, vals, context=context)
|
||||
|
||||
def write(self, cr, uid, ids, vals, context=None):
|
||||
|
|
|
@ -381,11 +381,12 @@ class pos_order(osv.osv):
|
|||
inv_ref.button_reset_taxes(cr, uid, [inv_id], context=context)
|
||||
|
||||
if not inv_ids: return {}
|
||||
|
||||
mod_obj = self.pool.get('ir.model.data')
|
||||
res = mod_obj.get_object_reference(cr, uid, 'account', 'invoice_form')
|
||||
res_id = res and res[1] or False
|
||||
return {
|
||||
'name': _('PoS Invoices'),
|
||||
'name': _('Customer Invoice'),
|
||||
'view_type': 'form',
|
||||
'view_mode': 'form',
|
||||
'view_id': res_id,
|
||||
|
|
Loading…
Reference in New Issue