Reviewers: ,


Please review this at http://codereview.tryton.org/99001/

Affected files:
  M __init__.py
  A configuration.py


Index: __init__.py
===================================================================

--- a/__init__.py
+++ b/__init__.py
@@ -3,3 +3,4 @@

 from company import *
 from cron import *
+import configuration

Index: configuration.py
===================================================================
new file mode 100644

--- /dev/null
+++ b/configuration.py
@@ -0,0 +1,20 @@
+#This file is part of Tryton.  The COPYRIGHT file at the top level of
+#this repository contains the full copyright notices and license terms.
+import copy
+
+from trytond.model import Model
+from trytond.pyson import Eval
+
+
+class PartyConfiguration(Model):
+    _name = 'party.configuration'
+
+    def __init__(self):
+        super(PartyConfiguration, self).__init__()
+
+        self.party_sequence = copy.copy(self.party_sequence)
+        self.party_sequence.domain = copy.copy(self.party_sequence.states)
+        self.party_sequence.domain.append(
+            ('company', 'in', [Eval('context', {}).get('company'), False]))
+
+PartyConfiguration()



--
[email protected] mailing list

Reply via email to