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 trytond.pool import Pool
|
||||||
|
from . import prospect
|
||||||
|
|
||||||
__all__ = ['register']
|
__all__ = ['register']
|
||||||
|
|
||||||
|
|
||||||
def register():
|
def register():
|
||||||
Pool.register(
|
Pool.register(
|
||||||
|
prospect.Prospect,
|
||||||
module='sale_opportunity_management', type_='model')
|
module='sale_opportunity_management', type_='model')
|
||||||
Pool.register(
|
Pool.register(
|
||||||
module='sale_opportunity_management', type_='wizard')
|
module='sale_opportunity_management', type_='wizard')
|
||||||
|
@ -4,6 +4,7 @@ from trytond.model import ModelSQL, ModelView, fields
|
|||||||
|
|
||||||
class Prospect(ModelSQL, ModelView):
|
class Prospect(ModelSQL, ModelView):
|
||||||
'Prospecto'
|
'Prospecto'
|
||||||
__name__ = 'call.prospect'
|
|
||||||
|
__name__ = 'sale.prospect'
|
||||||
|
|
||||||
name = fields.Char('Name')
|
name = fields.Char('Name')
|
@ -16,7 +16,7 @@ Como administrador quiero poder registrar un prospecto para lugo poder hacerle u
|
|||||||
---------------------------------------------------------------------------------------------
|
---------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
Crear prospecto::
|
Crear prospecto::
|
||||||
>>> Prospect = Model.get('call.prospect')
|
>>> Prospect = Model.get('sale.prospect')
|
||||||
>>> prospect = Prospect()
|
>>> prospect = Prospect()
|
||||||
>>> prospect.name = 'guchito S.A.S'
|
>>> prospect.name = 'guchito S.A.S'
|
||||||
>>> prospect.save()
|
>>> prospect.save()
|
Loading…
Reference in New Issue
Block a user