[FIX] lp 703088
bzr revid: fp@tinyerp.com-20110117073511-94kur7vzlhyfq9zt
This commit is contained in:
parent
4e0bc0926d
commit
948e9172ce
|
@ -146,7 +146,7 @@ class res_users(osv.osv):
|
|||
'user_id': user_id}, context=context)
|
||||
except:
|
||||
# Tolerate a missing shortcut. See product/product.py for similar code.
|
||||
logging.getLogger('orm').warning('Skipped Products shortcut for user "%s"', data.get('name','<new'))
|
||||
logging.getLogger('orm').debug('Skipped meetings shortcut for user "%s"', data.get('name','<new'))
|
||||
|
||||
return user_id
|
||||
|
||||
|
|
|
@ -158,7 +158,7 @@ class purchase_line_invoice(osv.osv_memory):
|
|||
'view_mode': 'tree,form',
|
||||
'res_model': 'account.invoice',
|
||||
'view_id': False,
|
||||
'context': "{'type':'in_invoice'}",
|
||||
'context': "{'type':'in_invoice', 'journal_type': 'purchase'}",
|
||||
'type': 'ir.actions.act_window'
|
||||
}
|
||||
purchase_line_invoice()
|
||||
|
|
Loading…
Reference in New Issue