summaryrefslogtreecommitdiff
path: root/addons
diff options
context:
space:
mode:
authorMustufa Rangwala <mra@mra-laptop>2010-11-16 10:08:09 +0530
committerMustufa Rangwala <mra@mra-laptop>2010-11-16 10:08:09 +0530
commit2deaf2ef76e80e6b6b1dc52dd6fa94bc7dfb039d (patch)
treee35443ad4e5531c1f36b0e45de8cb7541298a1e9 /addons
parent87372a16dea552b4113d4877f1bbfd9df0532551 (diff)
[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
Diffstat (limited to 'addons')
-rw-r--r--addons/account/account.py4
-rw-r--r--addons/account/invoice.py2
2 files changed, 3 insertions, 3 deletions
diff --git a/addons/account/account.py b/addons/account/account.py
index 0f8c9575931..e35676e08a5 100644
--- a/addons/account/account.py
+++ b/addons/account/account.py
@@ -344,7 +344,7 @@ class account_account(osv.osv):
_columns = {
'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."),
- 'code': fields.char('Code', size=64, required=True),
+ 'code': fields.char('Code', size=64, required=True, select=1),
'type': fields.selection([
('view', 'View'),
('other', 'Regular'),
@@ -2254,7 +2254,7 @@ class account_account_template(osv.osv):
_columns = {
'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."),
- 'code': fields.char('Code', size=64),
+ 'code': fields.char('Code', size=64, select=1),
'type': fields.selection([
('receivable','Receivable'),
('payable','Payable'),
diff --git a/addons/account/invoice.py b/addons/account/invoice.py
index f965b405545..af26e7d2d28 100644
--- a/addons/account/invoice.py
+++ b/addons/account/invoice.py
@@ -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)]}),
'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',
store={
'account.invoice': (lambda self, cr, uid, ids, c={}: ids, ['invoice_line'], 20),