[MERGE] forward port branch saas-11 up to 5e6637a240
This commit is contained in:
@@ -77,8 +77,8 @@
|
||||
<field name="domain">[('probability', '=', 100)]</field>
|
||||
<field name="context">{'col_group_by': ['create_date:month'], 'group_by': ['country_id']}</field>
|
||||
</record>
|
||||
<record id="ir_filters_crm_opportunity_report_next_action" model="ir.filters">
|
||||
<field name="name">Expected Revenus by Team</field>
|
||||
<record id="filter_opportunity_expected_revenue" model="ir.filters">
|
||||
<field name="name">Expected Revenue by Team</field>
|
||||
<field name="model_id">crm.opportunity.report</field>
|
||||
<field name="user_id" eval="False"/>
|
||||
<field name="context">{'group_by': ['create_date:month', 'team_id'], 'measures': ['expected_revenue', '__count']}</field>
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
Belgium, 19/07/2017
|
||||
|
||||
I hereby agree to the terms of the Odoo Individual Contributor License
|
||||
Agreement v1.0.
|
||||
|
||||
I declare that I am authorized and able to make this agreement and sign this
|
||||
declaration.
|
||||
|
||||
Signed,
|
||||
|
||||
Vincent Adriaensen vincentadriaensen@users.noreply.github.com https://github.com/vincentadriaensen
|
||||
@@ -74,12 +74,11 @@ class BaseWSGIServerNoBind(LoggingBaseWSGIServerMixIn, werkzeug.serving.BaseWSGI
|
||||
use this class, sets the socket and calls the process_request() manually
|
||||
"""
|
||||
def __init__(self, app):
|
||||
werkzeug.serving.BaseWSGIServer.__init__(self, "1", "1", app)
|
||||
def server_bind(self):
|
||||
# we dont bind beause we use the listen socket of PreforkServer#socket
|
||||
# instead we close the socket
|
||||
werkzeug.serving.BaseWSGIServer.__init__(self, "127.0.0.1", 0, app)
|
||||
# Directly close the socket. It will be replaced by WorkerHTTP when processing requests
|
||||
if self.socket:
|
||||
self.socket.close()
|
||||
|
||||
def server_activate(self):
|
||||
# dont listen as we use PreforkServer#socket
|
||||
pass
|
||||
@@ -581,6 +580,7 @@ class PreforkServer(CommonServer):
|
||||
|
||||
if self.address:
|
||||
# listen to socket
|
||||
_logger.info('HTTP service (werkzeug) running on %s:%s', *self.address)
|
||||
self.socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
|
||||
self.socket.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
|
||||
self.socket.setblocking(0)
|
||||
|
||||
Reference in New Issue
Block a user