help="The first contact you get with a potential customer is a lead you qualify before converting it into a real business opportunity. Check this box to manage leads in this sales team."),
'use_opportunities': fields.boolean('Opportunities', help="Check this box to manage opportunities in this sales team."),
'monthly_open_leads': fields.function(_get_opportunities_data,
- type="any", readonly=True, multi='_get_opportunities_data',
+ type="char", readonly=True, multi='_get_opportunities_data',
string='Open Leads per Month'),
'monthly_planned_revenue': fields.function(_get_opportunities_data,
- type="any", readonly=True, multi='_get_opportunities_data',
+ type="char", readonly=True, multi='_get_opportunities_data',
string='Planned Revenue per Month'),
'alias_id': fields.many2one('mail.alias', 'Alias', ondelete="restrict", required=True, help="The email address associated with this team. New emails received will automatically create new leads assigned to the team."),
}
help="Target of invoice revenue for the current month. This is the amount the sales \n"
"team estimates to be able to invoice this month."),
'monthly_quoted': fields.function(_get_sale_orders_data,
- type='any', readonly=True, multi='_get_sale_orders_data',
+ type='char', readonly=True, multi='_get_sale_orders_data',
string='Rate of created quotation per duration'),
'monthly_confirmed': fields.function(_get_sale_orders_data,
- type='any', readonly=True, multi='_get_sale_orders_data',
+ type='char', readonly=True, multi='_get_sale_orders_data',
string='Rate of validate sales orders per duration'),
'monthly_invoiced': fields.function(_get_invoices_data,
- type='any', readonly=True,
+ type='char', readonly=True,
string='Rate of sent invoices per duration'),
}
# Statistics for the kanban view
'last_done_picking': fields.function(_get_tristate_values,
- type='any',
+ type='char',
string='Last 10 Done Pickings'),
'count_picking_draft': fields.function(_get_picking_count,
return spec
-class Any(Field):
- """ Field for arbitrary Python values. """
- # Warning: no storage is defined for this type of field!
- type = 'any'
-
-
class Boolean(Field):
""" Boolean field. """
type = 'boolean'