Se crea modelo inicial de prospecto

This commit is contained in:
Camilo Gonzalez 2023-07-28 01:09:31 +00:00
parent 3d5c3e17e0
commit 76b4485c22
3 changed files with 5 additions and 2 deletions

View File

@ -1,10 +1,12 @@
from trytond.pool import Pool
from . import prospect
__all__ = ['register']
def register():
Pool.register(
prospect.Prospect,
module='sale_opportunity_management', type_='model')
Pool.register(
module='sale_opportunity_management', type_='wizard')

View File

@ -4,6 +4,7 @@ from trytond.model import ModelSQL, ModelView, fields
class Prospect(ModelSQL, ModelView):
'Prospecto'
__name__ = 'call.prospect'
__name__ = 'sale.prospect'
name = fields.Char('Name')

View File

@ -16,7 +16,7 @@ Como administrador quiero poder registrar un prospecto para lugo poder hacerle u
---------------------------------------------------------------------------------------------
Crear prospecto::
>>> Prospect = Model.get('call.prospect')
>>> Prospect = Model.get('sale.prospect')
>>> prospect = Prospect()
>>> prospect.name = 'guchito S.A.S'
>>> prospect.save()