32
32
_inherit = 'account.analytic.journal'
34
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."),
35
('engagement', 'Engagement')], 'Type', size=32, required=True, help="Gives the type of the analytic journal. When it needs for a document \
36
(eg: an invoice) to create analytic entries, OpenERP will look for a matching journal of the same type."),
40
def _check_engagement_count(self, cr, uid, ids, context=None):
39
def _check_engagement_count(self, cr, uid, ids, context={}):
42
41
Check that no more than one engagement journal exists