chore: Se hace obligatorio mecanismo de contacto en creación de prospecto, #19
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
c8243835d7
commit
21fc7a7bcd
@ -12,7 +12,8 @@ class Prospect(ModelSQL, ModelView):
|
|||||||
name = fields.Char('Name')
|
name = fields.Char('Name')
|
||||||
|
|
||||||
contact_methods = fields.One2Many(
|
contact_methods = fields.One2Many(
|
||||||
'prospect.contact_method', 'prospect', 'Contact methods')
|
'prospect.contact_method',
|
||||||
|
'prospect', 'Contact methods', required=True)
|
||||||
|
|
||||||
department = fields.Many2One('sale.department', 'Department')
|
department = fields.Many2One('sale.department', 'Department')
|
||||||
city = fields.Many2One('sale.city', 'City',
|
city = fields.Many2One('sale.city', 'City',
|
||||||
|
@ -12,5 +12,11 @@ class SaleOpportunityManagementTestCase(ModuleTestCase):
|
|||||||
ProspectTrace = pool.get('sale.prospect_trace')
|
ProspectTrace = pool.get('sale.prospect_trace')
|
||||||
self.assertTrue(ProspectTrace.prospect.required)
|
self.assertTrue(ProspectTrace.prospect.required)
|
||||||
|
|
||||||
|
@with_transaction()
|
||||||
|
def test_contact_method_en_prospect_es_obligatorio(self):
|
||||||
|
pool = Pool()
|
||||||
|
Prospect = pool.get('sale.prospect')
|
||||||
|
self.assertTrue(Prospect.contact_methods.required)
|
||||||
|
|
||||||
|
|
||||||
del ModuleTestCase
|
del ModuleTestCase
|
||||||
|
Loading…
Reference in New Issue
Block a user