~openerp-commiter/openobject-addons/trunk-extra-addons

« back to all changes in this revision

Viewing changes to commission/partner.py

  • Committer: DHS(OpenERP)
  • Date: 2010-08-13 09:15:07 UTC
  • Revision ID: dhs@tinyerp.com-20100813091507-0aalep6l7nc8zcuf
[REF] Commission : Code improvements

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
# -*- encoding: utf-8 -*-
2
2
##############################################################################
3
 
#    
 
3
#
4
4
#    OpenERP, Open Source Management Solution
5
5
#    Copyright (C) 2004-2009 Tiny SPRL (<http://tiny.be>).
6
6
#
15
15
#    GNU Affero General Public License for more details.
16
16
#
17
17
#    You should have received a copy of the GNU Affero General Public License
18
 
#    along with this program.  If not, see <http://www.gnu.org/licenses/>.     
 
18
#    along with this program.  If not, see <http://www.gnu.org/licenses/>.
19
19
#
20
20
##############################################################################
21
 
import math
 
21
 
22
22
from osv import fields,osv
23
 
import tools
24
 
import ir
25
 
import pooler
26
23
 
27
24
class res_partner(osv.osv):
28
25
        _name = "res.partner"
29
 
        _description = "Sale agent sale info"
30
 
        _inherit="res.partner"
 
26
        _description = "Sale agent sale info"
 
27
        _inherit = "res.partner"
31
28
        _columns = {
32
29
                #'agent_id': fields.one2many('sale.agent','partner_id','salesagent', required=True),
33
 
                  'agent_id': fields.many2one('sale.agent','saleagent'),
34
 
                }
 
30
                'agent_id': fields.many2one('sale.agent','Sales Agent'),
 
31
                }
 
32
 
35
33
res_partner()
36
34
 
 
35
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
 
 
b'\\ No newline at end of file'