You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
432 B
13 lines
432 B
# Copyright 2017 Onestein (<http://www.onestein.eu>)
|
|
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
|
|
|
|
import odoo.tests.common as common
|
|
|
|
|
|
class TestOnchangeHelper(common.TransactionCase):
|
|
|
|
def test_playing_onchange_on_model(self):
|
|
result = self.env['res.partner'].play_onchanges({
|
|
'company_type': 'company',
|
|
}, ['company_type'])
|
|
self.assertEqual(result['is_company'], True)
|