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

6 years ago
6 years ago
6 years ago
  1. # Copyright 2017 Onestein (<http://www.onestein.eu>)
  2. # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
  3. import odoo.tests.common as common
  4. class TestOnchangeHelper(common.TransactionCase):
  5. def test_playing_onchange_on_model(self):
  6. result = self.env['res.partner'].play_onchanges({
  7. 'company_type': 'company',
  8. }, ['company_type'])
  9. self.assertEqual(result['is_company'], True)