Add default company on period

This commit is contained in:
Cédric Krier committed 2015-01-16 16:14:32 +01:00
1 parent 0a4c95ee08
commit 2ce1f69998
1 file changed
+4
+4
View File
@@ -52,6 +52,10 @@ class Period(Workflow, ModelSQL, ModelView):
},
})
@staticmethod
def default_company():
return Transaction().context.get('company')
@staticmethod
def default_state():
return 'draft'