From 396bbe73e1dfdbb65789038f2709ff528e5af03a Mon Sep 17 00:00:00 2001 From: mtr Date: Tue, 23 Nov 2010 16:16:33 +0530 Subject: [ADD] Account_sequence: added installer files bzr revid: mtr@mtr-20101123104633-cnvoe6f8rm7ufq9c --- addons/account_sequence/account_sequence.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'addons/account_sequence/account_sequence.py') diff --git a/addons/account_sequence/account_sequence.py b/addons/account_sequence/account_sequence.py index 309bf3bc803..ee3afa380c1 100644 --- a/addons/account_sequence/account_sequence.py +++ b/addons/account_sequence/account_sequence.py @@ -46,7 +46,7 @@ class account_journal(osv.osv): _inherit = "account.journal" _columns = { - 'internal_sequence': fields.many2one('ir.sequence', 'Internal Sequence'), + 'internal_sequence': fields.many2one('ir.sequence', 'Internal Sequence', help="This sequence will be used to maintain the internal number for the journal entries related to this journal."), } account_journal() -- cgit v1.2.3 From 93c0f3f02fa3545b209288f5b6acd220064602d2 Mon Sep 17 00:00:00 2001 From: "qdp-launchpad@tinyerp.com" <> Date: Fri, 26 Nov 2010 11:28:30 +0100 Subject: [IMP] account_sequence: *rename the field internal_sequence in internal_sequence_id *improved the installation wizard to display the fields of the sequence to create (more user friendly) *set the config wizard as "on_skip" bzr revid: qdp-launchpad@tinyerp.com-20101126102830-9ppwdb3m205634jp --- addons/account_sequence/account_sequence.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'addons/account_sequence/account_sequence.py') diff --git a/addons/account_sequence/account_sequence.py b/addons/account_sequence/account_sequence.py index 82d416e84ca..642521f4688 100644 --- a/addons/account_sequence/account_sequence.py +++ b/addons/account_sequence/account_sequence.py @@ -46,7 +46,7 @@ class account_journal(osv.osv): _inherit = "account.journal" _columns = { - 'internal_sequence': fields.many2one('ir.sequence', 'Internal Sequence', help="This sequence will be used to maintain the internal number for the journal entries related to this journal."), + 'internal_sequence_id': fields.many2one('ir.sequence', 'Internal Sequence', help="This sequence will be used to maintain the internal number for the journal entries related to this journal."), } account_journal() @@ -60,4 +60,4 @@ class account_move_line(osv.osv): account_move_line() -# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: \ No newline at end of file +# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: -- cgit v1.2.3 From 18a03628af95800807077569e07780a7509f76d9 Mon Sep 17 00:00:00 2001 From: "qdp-launchpad@tinyerp.com" <> Date: Fri, 26 Nov 2010 11:38:44 +0100 Subject: [FIX] account_sequence: fixed the previous change of field name internal_sequence_id bzr revid: qdp-launchpad@tinyerp.com-20101126103844-1wnwbu00nk0pji1d --- addons/account_sequence/account_sequence.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'addons/account_sequence/account_sequence.py') diff --git a/addons/account_sequence/account_sequence.py b/addons/account_sequence/account_sequence.py index 642521f4688..56accc5f6eb 100644 --- a/addons/account_sequence/account_sequence.py +++ b/addons/account_sequence/account_sequence.py @@ -33,11 +33,11 @@ class account_move(osv.osv): obj_sequence = self.pool.get('ir.sequence') res = super(account_move, self).post(cr, uid, ids, context=context) seq_no = False - for line in self.browse(cr, uid, ids): - if line.journal_id.internal_sequence: - seq_no = obj_sequence.get_id(cr, uid, line.journal_id.internal_sequence.id, context=context) + for move in self.browse(cr, uid, ids, context): + if move.journal_id.internal_sequence_id: + seq_no = obj_sequence.get_id(cr, uid, move.journal_id.internal_sequence_id.id, context=context) if seq_no: - self.write(cr, uid, [line.id], {'internal_sequence_number': seq_no}) + self.write(cr, uid, [move.id], {'internal_sequence_number': seq_no}) return res account_move() -- cgit v1.2.3