[tryton-commits] changeset in modules/ldap_authentication:default Remove active_d...
changeset d6f60e28fcb5 in modules/ldap_authentication:default details: https://hg.tryton.org/modules/ldap_authentication?cmd=changeset;node=d6f60e28fcb5 description: Remove active_directory config option from docs issue8458 review253761002 diffstat: doc/index.rst | 5 - 1 files changed, 0 insertions(+), 5 deletions(-) diffs (15 lines): diff -r c7f1eb545f6d -r d6f60e28fcb5 doc/index.rst --- a/doc/index.rst Mon May 06 15:04:08 2019 +0200 +++ b/doc/index.rst Fri Jun 28 22:16:03 2019 +0200 @@ -22,11 +22,6 @@ The LDAP password used to bind if needed. -active_directory - - -A boolean to set if the LDAP server is an Active Directory. - uid ---
[tryton-commits] changeset in trytond:default Correct name of bus class config op...
changeset 8f02ce4fd4b6 in trytond:default details: https://hg.tryton.org/trytond?cmd=changeset;node=8f02ce4fd4b6 description: Correct name of bus class config option issue8461 review265631003 diffstat: trytond/bus.py | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diffs (12 lines): diff -r f9982286317a -r 8f02ce4fd4b6 trytond/bus.py --- a/trytond/bus.pyThu Jun 27 21:45:37 2019 +0200 +++ b/trytond/bus.pyFri Jun 28 22:11:59 2019 +0200 @@ -213,7 +213,7 @@ cursor.execute('NOTIFY "%s", %%s' % cls._channel, (payload,)) -if config.get('bus', 'queue'): +if config.get('bus', 'class'): Bus = resolve(config.get('bus', 'class')) else: Bus = LongPollingBus
[tryton-commits] changeset in modules/stock_supply_production:default Make order ...
changeset fbb0dcccd9c5 in modules/stock_supply_production:default details: https://hg.tryton.org/modules/stock_supply_production?cmd=changeset;node=fbb0dcccd9c5 description: Make order point's minimal quantity required issue8405 review259611017 diffstat: tests/scenario_stock_supply_production.rst | 18 -- 1 files changed, 16 insertions(+), 2 deletions(-) diffs (38 lines): diff -r e0301c4cc765 -r fbb0dcccd9c5 tests/scenario_stock_supply_production.rst --- a/tests/scenario_stock_supply_production.rstThu Jun 06 19:22:13 2019 +0200 +++ b/tests/scenario_stock_supply_production.rstFri Jun 28 10:17:32 2019 +0200 @@ -82,14 +82,14 @@ >>> production.quantity 1.0 -With an order point without minimal quantity:: +Create an order point negative minimal quantity:: >>> OrderPoint = Model.get('stock.order_point') >>> order_point = OrderPoint() >>> order_point.type = 'production' >>> order_point.product = product >>> order_point.warehouse_location = warehouse_loc ->>> order_point.min_quantity = None +>>> order_point.min_quantity = -1 >>> order_point.target_quantity = 10 >>> order_point.save() @@ -123,3 +123,17 @@ True >>> production.quantity 11.0 + +Using zero as minimal quantity also creates a production request:: + +>>> order_point.min_quantity = 0 +>>> order_point.save() +>>> create_pr = Wizard('stock.supply') +>>> create_pr.execute('create_') +>>> production, = Production.find([]) +>>> production.state +'request' +>>> production.product == product +True +>>> production.quantity +11.0