Se crea modelo inicial de prospecto
This commit is contained in:
parent
3d5c3e17e0
commit
76b4485c22
@ -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')
|
||||
|
@ -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')
|
@ -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()
|
Loading…
Reference in New Issue
Block a user