parent
cd3ab0247d
commit
74a035e432
@ -7,5 +7,5 @@ class PendingCall(ModelSQL, ModelView):
|
||||
'Llamada pendiente a un prospecto'
|
||||
__name__ = "sale.pending_call"
|
||||
|
||||
date = fields.Date('Date')
|
||||
date = fields.Date('Date', required=True)
|
||||
prospect_trace = fields.Many2One('sale.prospect_trace', 'Prospect trace')
|
||||
|
@ -7,40 +7,46 @@ class RequiredValuesTestCase(ModuleTestCase):
|
||||
module = 'sale_opportunity_management'
|
||||
|
||||
@with_transaction()
|
||||
def test_prospecto_en_prospect_trace_es_obligatorio(self):
|
||||
def test_prospect_en_ProspectTrace_es_obligatorio(self):
|
||||
pool = Pool()
|
||||
ProspectTrace = pool.get('sale.prospect_trace')
|
||||
self.assertTrue(ProspectTrace.prospect.required)
|
||||
|
||||
@with_transaction()
|
||||
def test_contact_method_en_prospect_es_obligatorio(self):
|
||||
def test_contact_method_en_Prospect_es_obligatorio(self):
|
||||
pool = Pool()
|
||||
Prospect = pool.get('sale.prospect')
|
||||
self.assertTrue(Prospect.contact_methods.required)
|
||||
|
||||
@with_transaction()
|
||||
def test_name_en_prospect_es_obligatorio(self):
|
||||
def test_name_en_Prospect_es_obligatorio(self):
|
||||
pool = Pool()
|
||||
Prospect = pool.get('sale.prospect')
|
||||
self.assertTrue(Prospect.name.required)
|
||||
|
||||
@with_transaction()
|
||||
def test_value_en_contact_method_es_obligatorio(self):
|
||||
def test_value_en_ContactMethod_es_obligatorio(self):
|
||||
pool = Pool()
|
||||
ContactMethod = pool.get('prospect.contact_method')
|
||||
self.assertTrue(ContactMethod.value.required)
|
||||
|
||||
@with_transaction()
|
||||
def test_contact_type_en_contact_method_es_obligatorio(self):
|
||||
def test_contact_type_en_ContactMethod_es_obligatorio(self):
|
||||
pool = Pool()
|
||||
ContactMethod = pool.get('prospect.contact_method')
|
||||
self.assertTrue(ContactMethod.contact_type.required)
|
||||
|
||||
@with_transaction()
|
||||
def test_prospect_en_contact_method_es_obligatorio(self):
|
||||
def test_prospect_en_ContactMethod_es_obligatorio(self):
|
||||
pool = Pool()
|
||||
ContactMethod = pool.get('prospect.contact_method')
|
||||
self.assertTrue(ContactMethod.prospect.required)
|
||||
|
||||
@with_transaction()
|
||||
def test_date_en_PendingCall_es_obligatorio(self):
|
||||
pool = Pool()
|
||||
PendingCall = pool.get('sale.pending_call')
|
||||
self.assertTrue(PendingCall.date.required)
|
||||
|
||||
|
||||
del ModuleTestCase
|
||||
|
Loading…
Reference in New Issue
Block a user