16 lines
389 B
Python
16 lines
389 B
Python
from trytond.model import ModelSQL, ModelView, fields
|
|
from datetime import date
|
|
|
|
class Call(ModelSQL, ModelView):
|
|
'Llamada'
|
|
|
|
__name__ = 'sale.call'
|
|
|
|
date = fields.Date('Date')
|
|
description = fields.Char('Description')
|
|
|
|
prospect_trace = fields.Many2One('sale.prospect_trace', 'Prospect track')
|
|
|
|
@classmethod
|
|
def default_date(cls):
|
|
return date.today() |