[FIX] Account: add select=1 on move_id field of account_invoice and of code field of account_account
lp bug: https://launchpad.net/bugs/571610 fixed bzr revid: mra@mra-laptop-20101116043809-m5fxcb5mj4z62dg9
This commit is contained in:
parent
87372a16de
commit
2deaf2ef76
|
@ -344,7 +344,7 @@ class account_account(osv.osv):
|
||||||
_columns = {
|
_columns = {
|
||||||
'name': fields.char('Name', size=128, required=True, select=True),
|
'name': fields.char('Name', size=128, required=True, select=True),
|
||||||
'currency_id': fields.many2one('res.currency', 'Secondary Currency', help="Forces all moves for this account to have this secondary currency."),
|
'currency_id': fields.many2one('res.currency', 'Secondary Currency', help="Forces all moves for this account to have this secondary currency."),
|
||||||
'code': fields.char('Code', size=64, required=True),
|
'code': fields.char('Code', size=64, required=True, select=1),
|
||||||
'type': fields.selection([
|
'type': fields.selection([
|
||||||
('view', 'View'),
|
('view', 'View'),
|
||||||
('other', 'Regular'),
|
('other', 'Regular'),
|
||||||
|
@ -2254,7 +2254,7 @@ class account_account_template(osv.osv):
|
||||||
_columns = {
|
_columns = {
|
||||||
'name': fields.char('Name', size=128, required=True, select=True),
|
'name': fields.char('Name', size=128, required=True, select=True),
|
||||||
'currency_id': fields.many2one('res.currency', 'Secondary Currency', help="Forces all moves for this account to have this secondary currency."),
|
'currency_id': fields.many2one('res.currency', 'Secondary Currency', help="Forces all moves for this account to have this secondary currency."),
|
||||||
'code': fields.char('Code', size=64),
|
'code': fields.char('Code', size=64, select=1),
|
||||||
'type': fields.selection([
|
'type': fields.selection([
|
||||||
('receivable','Receivable'),
|
('receivable','Receivable'),
|
||||||
('payable','Payable'),
|
('payable','Payable'),
|
||||||
|
|
|
@ -263,7 +263,7 @@ class account_invoice(osv.osv):
|
||||||
'invoice_line': fields.one2many('account.invoice.line', 'invoice_id', 'Invoice Lines', readonly=True, states={'draft':[('readonly',False)]}),
|
'invoice_line': fields.one2many('account.invoice.line', 'invoice_id', 'Invoice Lines', readonly=True, states={'draft':[('readonly',False)]}),
|
||||||
'tax_line': fields.one2many('account.invoice.tax', 'invoice_id', 'Tax Lines', readonly=True, states={'draft':[('readonly',False)]}),
|
'tax_line': fields.one2many('account.invoice.tax', 'invoice_id', 'Tax Lines', readonly=True, states={'draft':[('readonly',False)]}),
|
||||||
|
|
||||||
'move_id': fields.many2one('account.move', 'Journal Entry', readonly=True, help="Link to the automatically generated Journal Items."),
|
'move_id': fields.many2one('account.move', 'Journal Entry', readonly=True, select=1, help="Link to the automatically generated Journal Items."),
|
||||||
'amount_untaxed': fields.function(_amount_all, method=True, digits_compute=dp.get_precision('Account'), string='Untaxed',
|
'amount_untaxed': fields.function(_amount_all, method=True, digits_compute=dp.get_precision('Account'), string='Untaxed',
|
||||||
store={
|
store={
|
||||||
'account.invoice': (lambda self, cr, uid, ids, c={}: ids, ['invoice_line'], 20),
|
'account.invoice': (lambda self, cr, uid, ids, c={}: ids, ['invoice_line'], 20),
|
||||||
|
|
Loading…
Reference in New Issue