30
30
_name = 'account.analytic.journal'
31
31
_description = 'Analytic Journal'
32
32
_inherit = 'account.analytic.journal'
34
def get_journal_type(self, cr, uid, context={}):
36
Get all analytic journal type
38
return [('sale','Sale'), \
39
('purchase','Purchase'), \
41
('general','General'), \
42
('situation','Situation'), \
43
('engagement', 'Engagement'), \
45
('correction', 'Correction'), \
46
('cur_adj', 'Currency Adjustement'), \
34
'type': fields.selection([('sale','Sale'), ('purchase','Purchase'), ('cash','Cash'), ('general','General'), ('situation','Situation'),
35
('engagement', 'Engagement'), ('correction', 'Correction'), ('cur_adj', 'Currency Adjustement'), ('hr', 'HR')], 'Type',
37
help="Gives the type of the analytic journal. When it needs for a document (eg: an invoice) to create analytic entries, OpenERP will look for a matching journal of the same type."),
50
'type': fields.selection(get_journal_type, 'Type', size=32, required=True, help="Gives the type of the analytic journal. When it needs for a document \
51
(eg: an invoice) to create analytic entries, OpenERP will look for a matching journal of the same type."),
40
54
def _check_engagement_count(self, cr, uid, ids, context=None):