~unifield-team/unifield-wm/us-826

« back to all changes in this revision

Viewing changes to account_journal/project/project.py

UF-663: [IMP] first version

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
    _inherit = 'account.analytic.journal'
33
33
    _columns = {
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', 
36
 
            required=True, 
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."),
38
37
    }
39
38
 
40
 
    def _check_engagement_count(self, cr, uid, ids, context=None):
 
39
    def _check_engagement_count(self, cr, uid, ids, context={}):
41
40
        """
42
41
        Check that no more than one engagement journal exists
43
42
        """