~unifield-team/unifield-wm/us-671-homere

« back to all changes in this revision

Viewing changes to financing_contract/donor.py

  • Committer: jf
  • Date: 2012-04-17 15:29:16 UTC
  • mfrom: (631.3.7 UF_828)
  • Revision ID: jf@tempo4-20120417152916-svm6ioq8ur2bi5tu
UF-955 [DEV] Reporting (Month-end) - 2 remaining reports
lp:~unifield-team/unifield-wm/UF_955

Show diffs side-by-side

added added

removed removed

Lines of Context:
31
31
        'code': fields.char('Donor code', size=16, required=True),
32
32
        'active': fields.boolean('Active'),
33
33
        # Define for _inherits
34
 
        'format_id': fields.many2one('financing.contract.format', 'Format', ondelete="cascade"),
35
 
        'reporting_currency': fields.many2one('res.currency', 'Reporting currency', required=True),
 
34
        'format_id': fields.many2one('financing.contract.format', 'Format', ondelete="cascade", required=True),
36
35
    }
37
36
    
38
37
    _defaults = {
39
38
        'active': True,
 
39
        'format_id': lambda self,cr,uid,context: self.pool.get('financing.contract.format').create(cr, uid, {}, context=context)
40
40
    }
41
41
 
42
42
    def _check_unicity(self, cr, uid, ids, context=None):