Holger Brunn
9 years ago
No known key found for this signature in database
GPG Key ID: 1C9760FECA3AE18
2 changed files with
9 additions and
1 deletions
-
partner_contact_gender/__init__.py
-
partner_contact_gender/tests/test_partner_contact_gender.py
|
@ -3,4 +3,4 @@ |
|
|
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). |
|
|
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). |
|
|
|
|
|
|
|
|
from . import models |
|
|
from . import models |
|
|
from hooks import post_init_hook |
|
|
|
|
|
|
|
|
from .hooks import post_init_hook |
|
@ -5,6 +5,14 @@ from openerp.tests.common import TransactionCase |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class TestPartnerContactGender(TransactionCase): |
|
|
class TestPartnerContactGender(TransactionCase): |
|
|
|
|
|
def setUp(self): |
|
|
|
|
|
super(TestPartnerContactGender, self).setUp() |
|
|
|
|
|
self.testpartner = self.env['res.partner'].create({ |
|
|
|
|
|
'name': 'test', |
|
|
|
|
|
'title': self.env.ref('base.res_partner_title_madam').id, |
|
|
|
|
|
}) |
|
|
|
|
|
|
|
|
def test_partner_contact_gender(self): |
|
|
def test_partner_contact_gender(self): |
|
|
from ..hooks import post_init_hook |
|
|
from ..hooks import post_init_hook |
|
|
post_init_hook(self.cr, None) |
|
|
post_init_hook(self.cr, None) |
|
|
|
|
|
self.assertEqual(self.testpartner.gender, 'female') |