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
|
|
@ -17,4 +17,4 @@ |
|
|
|
# along with this program. If not, see <http://www.gnu.org/licenses/>. |
|
|
|
|
|
|
|
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): |
|
|
|
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): |
|
|
|
from ..hooks import post_init_hook |
|
|
|
post_init_hook(self.cr, None) |
|
|
|
self.assertEqual(self.testpartner.gender, 'female') |