From d226771383fa203907e15386cffe03e26177cbe8 Mon Sep 17 00:00:00 2001 From: czoellner Date: Wed, 10 Jun 2015 18:14:04 +0200 Subject: [PATCH 01/11] [FIX] purchase: ensures invoice lines are linked to PO line Fixes the impossibility to invoice purchase order lines, which were never invoiced but set to invoiced by validating a first invoice created by invoice control "manual". --- addons/purchase/purchase.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/addons/purchase/purchase.py b/addons/purchase/purchase.py index 3e80966e410..33062c3b858 100644 --- a/addons/purchase/purchase.py +++ b/addons/purchase/purchase.py @@ -1336,7 +1336,8 @@ class account_invoice(osv.Model): not all(picking.invoice_state in ['invoiced'] for picking in order.picking_ids)): shipped = False for po_line in order.order_line: - if all(line.invoice_id.state not in ['draft', 'cancel'] for line in po_line.invoice_lines): + if (po_line.invoice_lines and + all(line.invoice_id.state not in ['draft', 'cancel'] for line in po_line.invoice_lines)): invoiced.append(po_line.id) if invoiced and shipped: self.pool['purchase.order.line'].write(cr, user_id, invoiced, {'invoiced': True}) From 727f9056a35afd969cade0189908d2417cac5134 Mon Sep 17 00:00:00 2001 From: StefanRijnhart Date: Wed, 30 Jul 2014 14:22:35 +0200 Subject: [PATCH 02/11] [FIX] web: wrong company logo in multi-company env Don't preload company logo of the wrong company When a user other than the admin signed in and was in a company different than the admin and this company had a different logo, the company logo (in the upper left corner) displayed the logo of the admin company, instead of the logo of the company of this user. As soon as the user refreshed the page in his browser, the issue was resolved, but the logo should be the good one from the beginning. Closes #1453 --- addons/web/static/src/xml/base.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/web/static/src/xml/base.xml b/addons/web/static/src/xml/base.xml index e9949a589b1..0eb6ed1ee95 100644 --- a/addons/web/static/src/xml/base.xml +++ b/addons/web/static/src/xml/base.xml @@ -461,7 +461,7 @@