improvedview

bzr revid: fp@tinyerp.com-20080917120515-8i26xl5bs0zu30ve
This commit is contained in:
Fabien Pinckaers
2008-09-17 14:05:15 +02:00
parent 3241a53e99
commit 0b0c2cde32
3 changed files with 17 additions and 15 deletions
+11 -8
View File
@@ -50,18 +50,21 @@ class crm_cases(osv.osv):
crm_cases()
class crm_menu_config_wizard(osv.osv_memory):
_name='crm.menu.config_wizard'
_columns = {
'name':fields.char('Name', size=64),
'meeting' : fields.boolean('Calendar of Meetings'),
'lead' : fields.boolean('Leads'),
'opportunity' : fields.boolean('Business Opportunities'),
'jobs' : fields.boolean('Jobs Hiring Process'),
'bugs' : fields.boolean('Bug Tracking'),
'fund' : fields.boolean('Fund Raising Operations'),
'meeting' : fields.boolean('Calendar of Meetings', help="Manages the calendar of meetings of the users."),
'lead' : fields.boolean('Leads', help="Allows you to track and manage leads which are pre-sales requests, the very first contact with a customer request."),
'opportunity' : fields.boolean('Business Opportunities', help="Tracks identified business opportunities for your sales pipeline."),
'jobs' : fields.boolean('Jobs Hiring Process', help="Help you to organise the jobs hiring process: evaluation, meetings, email integration..."),
'bugs' : fields.boolean('Bug Tracking', help="Used by companies to track bugs and support requests on softwares"),
'fund' : fields.boolean('Fund Raising Operations', help="This may help associations in their fund raising process and tracking."),
}
_defaults = {
'meeting': lambda *args: True,
'jobs': lambda *args: True,
'opportunity': lambda *args: True,
}
def action_create(self, cr, uid, ids, *args):
for res in self.read(cr,uid,ids):
res.__delitem__('id')
+2 -1
View File
@@ -10,7 +10,8 @@
<field name="type">form</field>
<field name="arch" type="xml">
<form string="Configure CRM Sections">
<separator col="4" colspan="4" string="Configure CRM Menu for Selected Sections"/>
<separator col="4" colspan="4" string="Install Pre-Configured Features"/>
<label colspan="4" align="0.0" string="The CRM module of OpenERP is able to manage any kind of relationship. But, as to help you to start quickly on the system, we configured a few of them for you."/>
<newline/>
<field name="meeting"/>
<field name="lead"/>
+4 -6
View File
@@ -63,12 +63,10 @@ class mrp_production_workcenter_line(osv.osv):
_columns = {
'state': fields.selection([('draft','Draft'),('confirm', 'Confirm'),('cancel','Canceled'),('done','Done')],'Status', readonly=True),
'date_start': fields.datetime('Start Date'),
'date_finnished': fields.datetime('End Date'),
'delay': fields.function(_calc_delay, method=True, string='Delay', help="This is delay between operation start and stop in this workcenter"),
'date_start': fields.datetime('Start Date'),
'date_finnished': fields.datetime('End Date'),
'delay': fields.function(_calc_delay, method=True, string='Delay', help="This is delay between operation start and stop in this workcenter"),
'delay': fields.float('delay', required=True),
}
_defaults = {
'state': lambda *a: 'draft',
@@ -154,7 +152,7 @@ class mrp_operations_operation(osv.osv):
'production_id':fields.many2one('mrp.production','Production',required=True),
'workcenter_id':fields.many2one('mrp.workcenter','Workcenter',required=True),
'code_id':fields.many2one('mrp_operations.operation.code','Code',required=True),
}
}
mrp_operations_operation()
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: