You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
self.assertEqual(line.tag_ids.ids, original_report_2_tags[line.id], "The tax report lines not sharing their tags with any other report should keep the same tags when the country of their report is changed")
self.assertNotEqual(line.tag_ids.ids, original_report_2_tags[line.id], "The tax report lines sharing their tags with other report should receive new tags when the country of their report is changed")
272
+
273
+
deftest_unlink_report_line_tags(self):
274
+
""" Under certain circumstances, unlinking a tax report line should also unlink
275
+
the tags that are linked to it. We test those cases here.
check_tags_unlink('42', self.tax_report_line_2_42, True, "Unlinking one line not sharing its tags should also unlink them")
284
+
check_tags_unlink('01', self.tax_report_line_1_1, False, "Unlinking one line sharing its tags with others should keep the tags")
285
+
check_tags_unlink('100', self.tax_report_line_1_6+self.tax_report_line_2_6, True, "Unlinkink all the lines sharing the same tags should also unlink them")
0 commit comments