[MERGE] forward port branch saas-15 up to c0ec09e9d5

This commit is contained in:
Christophe Simonis
2017-07-28 18:11:07 +02:00
11 changed files with 33 additions and 23 deletions
+1 -2
View File
@@ -3593,8 +3593,7 @@ msgstr ""
#. module: crm
#: model:ir.actions.act_window,help:crm.crm_opportunity_report_action_lead
msgid "This report analyses the source of your leads\n"
"(including those converted into opportunities)."
msgid "This report analyses the source of your leads."
msgstr ""
#. module: crm
@@ -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>
@@ -191,13 +191,12 @@ with the the sales channel.</field>
<field name="res_model">crm.opportunity.report</field>
<field name="view_type">form</field>
<field name="view_mode">pivot,graph</field>
<field name="context">{'search_default_current': True, 'active_test': True}</field>
<field name="context">{'search_default_current': True, 'active_test': True, 'search_default_lead': True}</field>
<field name="view_ids"
eval="[(5, 0, 0),
(0, 0, {'view_mode': 'graph', 'view_id': ref('crm_opportunity_report_view_graph_lead')}),
(0, 0, {'view_mode': 'pivot', 'view_id': ref('crm_opportunity_report_view_pivot_lead')})]"/>
<field name="help">This report analyses the source of your leads
(including those converted into opportunities).</field>
<field name="help">This report analyses the source of your leads.</field>
</record>
<menuitem
+2 -2
View File
@@ -53,9 +53,9 @@ class MrpBom(models.Model):
default='asap', required=True)
picking_type_id = fields.Many2one(
'stock.picking.type', 'Operation Type', domain=[('code', '=', 'mrp_operation')],
help="When a procurement has a ‘produce’ route with a operation type set, it will try to create "
help=u"When a procurement has a ‘produce’ route with a operation type set, it will try to create "
"a Manufacturing Order for that product using a BoM of the same operation type. That allows "
"to define procurement rules which trigger different manufacturing orders with different BoMs. ")
"to define procurement rules which trigger different manufacturing orders with different BoMs.")
company_id = fields.Many2one(
'res.company', 'Company',
default=lambda self: self.env['res.company']._company_default_get('mrp.bom'),
+1 -1
View File
@@ -151,7 +151,7 @@
<page string="Miscellaneous">
<group>
<group groups="stock.group_stock_multi_locations">
<field name="picking_type_id" attrs="{'readonly': [('has_moves', '=', True)]}"/>
<field name="picking_type_id" domain="[('code', '=', 'mrp_operation')]" attrs="{'readonly': [('has_moves', '=', True)]}"/>
<field name="location_src_id" domain="[('usage','=','internal')]" attrs="{'readonly': [('has_moves', '=', True)]}"/>
<field name="location_dest_id" domain="[('usage','=','internal')]" attrs="{'readonly': [('has_moves', '=', True)]}"/>
</group>
@@ -111,7 +111,7 @@ class AuthorizeAPI():
payment_profile = etree.SubElement(profile, "paymentProfiles")
etree.SubElement(payment_profile, "customerType").text = 'business' if partner.is_company else 'individual'
billTo = etree.SubElement(payment_profile, "billTo")
etree.SubElement(billTo, "address").text = (partner.street + (partner.street2 if partner.street2 else '')) or None
etree.SubElement(billTo, "address").text = (partner.street or '' + (partner.street2 if partner.street2 else '')) or None
etree.SubElement(billTo, "city").text = partner.city
etree.SubElement(billTo, "state").text = partner.state_id.name or None
etree.SubElement(billTo, "zip").text = partner.zip
+1 -1
View File
@@ -916,7 +916,7 @@ class ProcurementOrder(models.Model):
if self.purchase_line_id:
if not self.move_ids:
return False
return all(move.state == 'done' for move in self.move_ids)
return all(move.state in ('done', 'cancel') for move in self.move_ids) and any(move.state == 'done' for move in self.move_ids)
return super(ProcurementOrder, self)._check()
def _get_purchase_schedule_date(self):
@@ -205,7 +205,7 @@ var RedirectWarningHandler = Dialog.extend(ExceptionHandler, {
}
});
core.crash_registry.add('openerp.exceptions.RedirectWarning', RedirectWarningHandler);
core.crash_registry.add('odoo.exceptions.RedirectWarning', RedirectWarningHandler);
return CrashManager;
});
+11
View File
@@ -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
+6 -6
View File
@@ -21,12 +21,12 @@ class test_model(models.Model):
(4, "réponse <D>"),
])
selection_str = fields.Selection([
('A', "Qu'il n'est pas arrivé à Toronto"),
('B', "Qu'il était supposé arriver à Toronto"),
('C', "Qu'est-ce qu'il fout ce maudit pancake, tabernacle ?"),
('D', "La réponse D"),
], string="Lorsqu'un pancake prend l'avion à destination de Toronto et "
"qu'il fait une escale technique à St Claude, on dit:")
('A', u"Qu'il n'est pas arrivé à Toronto"),
('B', u"Qu'il était supposé arriver à Toronto"),
('C', u"Qu'est-ce qu'il fout ce maudit pancake, tabernacle ?"),
('D', u"La réponse D"),
], string=u"Lorsqu'un pancake prend l'avion à destination de Toronto et "
u"qu'il fait une escale technique à St Claude, on dit:")
html = fields.Html()
text = fields.Text()
+1
View File
@@ -109,6 +109,7 @@ def init_logger():
_logger_init = True
logging.addLevelName(25, "INFO")
logging.captureWarnings(True)
from .tools.translate import resetlocale
resetlocale()
+4 -4
View File
@@ -75,12 +75,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
@@ -582,6 +581,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)