[FIX] account_payment: allowed to choose a bank journal as well as a cash journal to encode payment order
bzr revid: qdp-launchpad@tinyerp.com-20101103104956-psx112ccc9ipqkxn
This commit is contained in:
@@ -32,7 +32,7 @@ class payment_mode(osv.osv):
|
||||
'bank_id': fields.many2one('res.partner.bank', "Bank account",
|
||||
required=True,help='Bank Account for the Payment Mode'),
|
||||
'journal': fields.many2one('account.journal', 'Journal', required=True,
|
||||
domain=[('type', '=', 'cash')], help='Cash Journal for the Payment Mode'),
|
||||
domain=[('type', 'in', ('bank','cash'))], help='Bank or Cash Journal for the Payment Mode'),
|
||||
'company_id': fields.many2one('res.company', 'Company', required=True),
|
||||
}
|
||||
_defaults = {
|
||||
@@ -452,4 +452,4 @@ class payment_line(osv.osv):
|
||||
|
||||
payment_line()
|
||||
|
||||
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
||||
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
||||
|
||||
Reference in New Issue
Block a user