chore: se hace obligatorio prospecto en prospect trace
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
parent
3ae02445e8
commit
c8243835d7
@ -11,7 +11,7 @@ class ProspectTrace(ModelSQL, ModelView):
|
|||||||
'Seguimiento de un prospecto'
|
'Seguimiento de un prospecto'
|
||||||
__name__ = 'sale.prospect_trace'
|
__name__ = 'sale.prospect_trace'
|
||||||
|
|
||||||
prospect = fields.Many2One('sale.prospect', 'Prospect')
|
prospect = fields.Many2One('sale.prospect', 'Prospect', required=True)
|
||||||
prospect_contact = fields.Many2One(
|
prospect_contact = fields.Many2One(
|
||||||
'prospect.contact_method', 'Contact method')
|
'prospect.contact_method', 'Contact method')
|
||||||
prospect_city = fields.Many2One('sale.city', 'City')
|
prospect_city = fields.Many2One('sale.city', 'City')
|
||||||
|
@ -1,10 +1,16 @@
|
|||||||
|
from trytond.tests.test_tryton import ModuleTestCase, with_transaction
|
||||||
from trytond.tests.test_tryton import ModuleTestCase
|
from trytond.pool import Pool
|
||||||
|
|
||||||
|
|
||||||
class SaleOpportunityManagementTestCase(ModuleTestCase):
|
class SaleOpportunityManagementTestCase(ModuleTestCase):
|
||||||
"Test Sale Opportunity Management module"
|
"Test Sale Opportunity Management module"
|
||||||
module = 'sale_opportunity_management'
|
module = 'sale_opportunity_management'
|
||||||
|
|
||||||
|
@with_transaction()
|
||||||
|
def test_prospecto_en_prospect_trace_es_obligatorio(self):
|
||||||
|
pool = Pool()
|
||||||
|
ProspectTrace = pool.get('sale.prospect_trace')
|
||||||
|
self.assertTrue(ProspectTrace.prospect.required)
|
||||||
|
|
||||||
|
|
||||||
del ModuleTestCase
|
del ModuleTestCase
|
||||||
|
Loading…
Reference in New Issue
Block a user