Commits

Jordi Esteve (Zikzakmedia)  committed 683e9cf

Search contracts by reference or party

  • Participants
  • Parent commits 25dadd1

Comments (0)

Files changed (1)

         return 'draft'
 
     @classmethod
+    def search_rec_name(cls, name, clause):
+        return ['OR',
+            ('reference',) + tuple(clause[1:]),
+            ('party',) + tuple(clause[1:]),
+            ]
+
+    @classmethod
     def copy(cls, contracts, default=None):
         if default is None:
             default = {}