~torbat-j/+junk/ncdierp

« back to all changes in this revision

Viewing changes to ierp_loan/configure_product.py

  • Committer: erka
  • Date: 2014-10-21 08:43:45 UTC
  • Revision ID: erka-20141021084345-vb5veh7pk63zeys9
Зээл болон худалдан авалтын классын дагуу нэмэлт талбаруудыг нэмэв.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# -*- encoding: utf-8 -*-
 
2
 
 
3
from openerp.osv import fields, osv
 
4
import time
 
5
import exceptions
 
6
from datetime import date
 
7
from datetime import datetime
 
8
 
 
9
class configure_loan_product(osv.osv):
 
10
        _name="configure.loan.product"
 
11
        _description="Settings of loan product"
 
12
        _columns={
 
13
                        'company_id':fields.many2one('res.company','Company'),
 
14
                        'name': fields.char(u'Name',size=256,required=True),
 
15
            'product_id': fields.many2one('loan.product','Loan product',domain=[('loan_product_type','=','loan_product')],required=True),
 
16
                        'xt_product': fields.many2one('loan.product','Interest payment',domain=[('loan_product_type','=','interest_payment')],required=True),
 
17
                        'xxt_product': fields.many2one('loan.product','Accumlated interest payment',domain=[('loan_product_type','=','accumulative_interest_payment')],required=True),
 
18
                        'loss_product': fields.many2one('loan.product','Surcharge payment',domain=[('loan_product_type','=','undue_loss')],required=True),
 
19
                        'xxz_product': fields.many2one('loan.product','Past due loans',domain=[('loan_product_type','=','xxz_product')],required=True),
 
20
                        'xb_product': fields.many2one('loan.product','Abnormal loans',domain=[('loan_product_type','=','xb_product')],required=True),
 
21
                        'ez_product': fields.many2one('loan.product','Doubted loans',domain=[('loan_product_type','=','ez_product')],required=True),
 
22
                        'mz_product': fields.many2one('loan.product','Bad loans',domain=[('loan_product_type','=','mz_product')],required=True),
 
23
 
 
24
        }
 
25
        _defaults = {
 
26
                                'company_id':lambda self, cr, uid, c: self.pool.get('res.users').browse(cr, uid, uid, c).company_id.id,
 
27
                                }
 
28
configure_loan_product()