'Check that a rule is executed whenever a field is recomputed after a
change on another model.'

def test_10_recomputed_field(self):

    partner = self.env.ref('base.res_partner_1')
    partner.write({'customer': False})
    lead = self.create_lead(state='open', partner_id=partner.id)
    self.assertFalse(lead.customer, 'Customer    field    should    updated    to    False')
    self.assertEqual(lead.user_id, self.user_admin, "Responsible    should    not    change    on    creation    of    Lead    with    state    from    'draft'    to    'open'.")
    partner.write({'customer': True})
    self.assertTrue(lead.customer, 'Customer    field    should    updated    to    True')
    self.assertEqual(lead.user_id, self.user_demo, 'Responsible    should    be    change    on    write    of    Lead    when    Customer    becomes    True.')
