From d329b946d6f357eeff74b211a58b57ec54e28e0b Mon Sep 17 00:00:00 2001 From: Jairo Llopis Date: Tue, 5 Sep 2017 13:23:51 +0200 Subject: [PATCH 1/2] [FIX] website_portal: improve mobile layout This commit closes odoo/odoo#19267 --- .../website_portal/static/src/less/website_portal.less | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/addons/website_portal/static/src/less/website_portal.less b/addons/website_portal/static/src/less/website_portal.less index d1f04277023..120f2aa7d17 100644 --- a/addons/website_portal/static/src/less/website_portal.less +++ b/addons/website_portal/static/src/less/website_portal.less @@ -15,4 +15,12 @@ text-align: left; } table-layout: fixed; -} \ No newline at end of file + + @media (max-width: @screen-xs-max) { + display: block; + width: 100%; + overflow-x: auto; + -webkit-overflow-scrolling: touch; + -ms-overflow-style: -ms-autohiding-scrollbar; + } +} From 40d4cdd39fb648d9d6ca7851248bdddff48389dd Mon Sep 17 00:00:00 2001 From: Carlos Dauden Date: Thu, 12 Oct 2017 13:20:57 +0200 Subject: [PATCH 2/2] [FIX] account: Field total_invoiced in res.partner doesn't include archived children --- addons/account/models/partner.py | 2 +- doc/cla/individual/carlosdauden.md | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 doc/cla/individual/carlosdauden.md diff --git a/addons/account/models/partner.py b/addons/account/models/partner.py index eb423456436..803196c15c2 100644 --- a/addons/account/models/partner.py +++ b/addons/account/models/partner.py @@ -296,7 +296,7 @@ class ResPartner(models.Model): all_partner_ids = [] for partner in self: # price_total is in the company currency - all_partners_and_children[partner] = self.search([('id', 'child_of', partner.id)]).ids + all_partners_and_children[partner] = self.with_context(active_test=False).search([('id', 'child_of', partner.id)]).ids all_partner_ids += all_partners_and_children[partner] # searching account.invoice.report via the orm is comparatively expensive diff --git a/doc/cla/individual/carlosdauden.md b/doc/cla/individual/carlosdauden.md new file mode 100644 index 00000000000..a672fcaf988 --- /dev/null +++ b/doc/cla/individual/carlosdauden.md @@ -0,0 +1,9 @@ +Spain, 2015-05-28 + +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, + +Carlos Dauden carlos.dauden@tecnativa.com https://github.com/carlosdauden