[MERGE] forward port branch 9.0 up to 444f0b6a7f

This commit is contained in:
Christophe Simonis
2018-06-13 10:50:43 +02:00
4 changed files with 14 additions and 3 deletions
+1 -1
View File
@@ -48,7 +48,7 @@ class OgoneController(http.Controller):
def feedback(self, **kwargs):
try:
tx = request.env['payment.transaction'].sudo()._ogone_form_get_tx_from_data(kwargs)
tx._ogone_s2s_validate()
tx._ogone_s2s_validate_tree(kwargs)
except ValidationError:
return 'ko'
return 'ok'
+1 -1
View File
@@ -659,7 +659,7 @@ class SaleOrderLine(models.Model):
if line.state != 'sale' or not line.product_id._need_procurement():
continue
qty = 0.0
for proc in line.procurement_ids:
for proc in line.procurement_ids.filtered(lambda r: r.state != 'cancel'):
qty += proc.product_qty
if float_compare(qty, line.product_uom_qty, precision_digits=precision) >= 0:
continue
+11
View File
@@ -0,0 +1,11 @@
Nepal, 2018-02-09
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,
Subodh Dahal contact.subodhdahal@gmail.com https://github.com/SubodhDahal
+1 -1
View File
@@ -614,7 +614,7 @@ The previous code will create the snippet’s content, but we still need to plac
.. code-block:: xml
<template id="place_into_bar" inherit_id="website.snippets" name="Place into bar">
<xpath expr="//div[@id='snippet_content']/div[@class='o_panel_body']" position="inside">
<xpath expr="//div[@id='snippet_structure']/div[@class='o_panel_body']" position="inside">
<t t-snippet="theme_tutorial.snippet_testimonial"
t-thumbnail="/theme_tutorial/static/src/img/ui/snippet_thumb.jpg"/>
</xpath>