@@ -123,6 +123,12 @@ class Forecast(Workflow, ModelSQL, ModelView):
|
||||
def default_state():
|
||||
return 'draft'
|
||||
|
||||
@classmethod
|
||||
def default_warehouse(cls):
|
||||
pool = Pool()
|
||||
Location = pool.get('stock.location')
|
||||
return Location.get_default_warehouse()
|
||||
|
||||
@classmethod
|
||||
def default_destination(cls):
|
||||
Location = Pool().get('stock.location')
|
||||
|
||||
Reference in New Issue
Block a user