Maintainers
+Maintainers
This module is maintained by the OCA.
diff --git a/agreement/tests/test_agreement.py b/agreement/tests/test_agreement.py index 89eb91cd..59e4b8b9 100644 --- a/agreement/tests/test_agreement.py +++ b/agreement/tests/test_agreement.py @@ -27,10 +27,9 @@ def test_agreement_type_change(self): self.agreement.write({"agreement_type_id": self.agreement_type.id}) self.assertEqual(self.agreement.domain, self.agreement_type.domain) - def test_name_get(self): - res = self.agreement.name_get() - self.assertEqual(res[0][0], self.agreement.id) - self.assertEqual(res[0][1], f"[{self.agreement.code}] {self.agreement.name}") + def test_compute_display_name(self): + display_name = self.agreement.display_name + self.assertEqual(display_name, f"[{self.agreement.code}] {self.agreement.name}") def test_copy(self): agreement1 = self.agreement.copy(default={"code": "Test Code"}) diff --git a/agreement/views/agreement.xml.orig b/agreement/views/agreement.xml.orig deleted file mode 100644 index 592bd565..00000000 --- a/agreement/views/agreement.xml.orig +++ /dev/null @@ -1,135 +0,0 @@ - - -