report/render: fixes from xrg branch
[odoo/odoo.git] / addons / sale_crm / sale_crm.py
index 5972d25..9570fe0 100644 (file)
@@ -2,7 +2,7 @@
 ##############################################################################
 #
 #    OpenERP, Open Source Management Solution
-#    Copyright (C) 2004-2009 Tiny SPRL (<http://tiny.be>).
+#    Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
 #
 #    This program is free software: you can redistribute it and/or modify
 #    it under the terms of the GNU Affero General Public License as
@@ -23,19 +23,11 @@ from osv import osv,fields
 
 class sale_order(osv.osv):
     _inherit = 'sale.order'
-    _description = 'Sale orders'
+
     _columns = {
-        'section_id': fields.many2one('crm.case.section', 'Section'),
+        'section_id': fields.many2one('crm.case.section', 'Sales Team'),
     }
 
-    def _get_section(self, cr, uid, context):
-       user = self.pool.get('res.users').browse(cr,uid,uid)
-       return user.section_id.id
-
-    _defaults = {
-          'section_id':_get_section
-          }
-
 sale_order()
 
-# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
\ No newline at end of file
+# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: