Define a supply period on test scenario
issue6570 review37471002
This commit is contained in:
1 parent
60269839b6
commit
9090ad57d7
1 file changed
+8
@@ -4,6 +4,7 @@ Production Request Scenario
|
||||
|
||||
Imports::
|
||||
|
||||
>>> from datetime import timedelta
|
||||
>>> from decimal import Decimal
|
||||
>>> from proteus import Model, Wizard
|
||||
>>> from trytond.tests.tools import activate_modules
|
||||
@@ -37,6 +38,13 @@ Create product::
|
||||
>>> product.template = template
|
||||
>>> product.save()
|
||||
|
||||
Define a supply period for production::
|
||||
|
||||
>>> ProductionConfiguration = Model.get('production.configuration')
|
||||
>>> production_configuration = ProductionConfiguration(1)
|
||||
>>> production_configuration.supply_period = timedelta(1)
|
||||
>>> production_configuration.save()
|
||||
|
||||
Get stock locations::
|
||||
|
||||
>>> Location = Model.get('stock.location')
|
||||
|
||||
Reference in new issue
Block a user