Commit Graph
141473 Commits
Author SHA1 Message Date
Josse Colpaert dad3556e97 [FIX] l10n_de: added taxes tags need country_id
A constraint was added.  That is why we had the error,
but we need the fix anyways, otherwise the tags won't be
visible in the configuration of the taxes.

Task id: 2214184

closes odoo/odoo#47440

X-original-commit: 9bac70b6a0e5eab76910c5728371310e32d9cf8a
Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
2020-03-11 16:52:58 +00:00
Odoo's Mergebot 616c3fdb8c [MERGE][IMP] website_[sale_]slides: allow users to take the slide quiz before joining the course
PURPOSE

When previewing a slide of type 'quiz', users are tempted to answer the
questions even if they are not member of the course yet.

This commit will allow users to answer the quiz without being a member of the
course, and offer a smart redirection to join / buy based on the enroll type
of the channel.

SPECIFICATIONS

We introduce a "CourseJoinWidget" that will handle the display and the behavior
of the "join" button based on the user (public or not) and the enroll type
(public course or based on a payment).

When the user answers questions and he's not a member yet, we store the answers
temporarily in the session object.
When he comes back on the quiz page after having completed his membership, we
fill in the quiz based on his previously entered answers and clean the session.

LINKS

Task 2045571

closes odoo/odoo#41972

Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2020-03-12 10:24:33 +01:00
Aurélien Warnon 3aaefe74a1 [IMP] website_sale_slides: improve demo data
As portal user has access to the "Taking care of trees" demo course, we add
this course to the sale order that already contains the "DIY Furniture".
Since the course is "pay to access", it makes more sense.

LINKS

PR #41972
Task 2045571
2020-03-12 08:31:19 +00:00
Florent LejolyandAurélien Warnon 660e105431 [IMP] website_[sale_]slides: allow users to take the slide quiz before joining the course
PURPOSE

When previewing a slide of type 'quiz', users are tempted to answer the
questions even if they are not member of the course yet.

This commit will allow users to answer the quiz without being a member of the
course, and offer a smart redirection to join / buy based on the enroll type
of the channel.

SPECIFICATIONS

We introduce a "CourseJoinWidget" that will handle the display and the behavior
of the "join" button based on the user (public or not) and the enroll type
(public course or based on a payment).

When the user answers questions and he's not a member yet, we store the answers
temporarily in the session object.
When he comes back on the quiz page after having completed his membership, we
fill in the quiz based on his previously entered answers and clean the session.

LINKS

Task 2045571
PR #41972

Co-authored-by: Florent Lejolyn <fle@odoo.com>
Co-authored-by: Aurélien Warnon <awa@odoo.com>
2020-03-12 08:30:16 +00:00
Aurélien Warnon 1a92829c7d [REF] website_slides: rename 'channel_management.xml' to 'slide_course_join.xml'
This commit simply renames a template file to better reflect its purpose and
also align with its JS widget file naming. It is a preparation commit for
pending changes.

Task 2045571
PR #41972
2020-03-12 08:29:55 +00:00
Adrian Torres cd4b50de6f [FIX] base: don't uninstall already uninstalled modules
Before this commit:
    - Install some random module that can be uninstalled (so not base)
    - Open the uninstall wizard for said module in two different tabs /
        windows / whatever
    - In one tab, confirm the module uninstall and wait for it to be
        done
    - As soon as the other tab is done with the uninstall, go to the
        second one with the uninstall wizard still open, and proceed
        with the second uninstall
    - Boom, the registry crashes and completely fucks up the DB because
        there's no check at all that prevents the uninstall of already
        uninstalled modules.

After this commit:
    - `ir.module.module.button_uninstall` will check if all the
        modules being uninstalled are in the installed state
        and if not a UserError will be raised, preventing a second
        uninstall of the module which could potentially break the DB

Do note that this fix is LOCAL, the problem is however more or less
global, wherever there's user-actionable buttons that should only be
pressed once there's a potential for bugs / breakage if a similar fix is
not implemented locally. Perhaps a more global fix should be implemented
eventually, but it's generally less annoying for business cases since
those probably won't break the registry, see task 1859014.

opw-2213679
opw-2212594
opw-2206446

closes odoo/odoo#47450

X-original-commit: 8c1bb22ec0222dca652e0649454b986c06cb1368
Signed-off-by: Adrian Torres (adt) <adt@odoo.com>
2020-03-11 18:52:52 +00:00
Andrea Grazioso (agr-odoo) 29e0227081 [FIX] account: avoid double unlinking
With l10n_mx installed:
- Check in the settings that cash basis option is activated, and enabled
on a Purchase Tax (example : IVA(16%) COMPRAS)
- Create a vendor bill with this tax, validate it and
register payment.
- Create a credit note to this invoice, validate and register payment.
- Cancel the credit note

Error will occur, a record is already deleted.
This occur because the canceling action recursively find every related
move to delete, but in the process an account.full.reconcile is going to
be unlinked twice: a check on reverse the exchange rate entry will
trigger the error because the record is already deleted

opw-2199093

closes odoo/odoo#47432

X-original-commit: a230690d947be2095ad1ec7ccca170f9faa222dc
Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
2020-03-11 16:15:22 +00:00
alt-odoo 141b54bb8e [FIX] purchase_requisition: allow cancellation of SO if no Purchase rights
A user with no Purchase rights and only Inventory User rights should be able to cancel an SO
and access requisition_line_ids field.

closes odoo/odoo#47441

X-original-commit: 9a6af5ea576d7eb451fb3c4fa88880eb9edf78af
Signed-off-by: Alex Tuyls <alt-odoo@users.noreply.github.com>
2020-03-11 16:54:05 +00:00
Lucas Lefèvre 35c144c28a [FIX] lunch: Cache lunch product images
Images of the lunch dashboard are not cached by the browser.

closes odoo/odoo#47427

X-original-commit: fec2e2a49faa69d2ce554e62a3de196573fa3656
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2020-03-11 16:05:07 +00:00
Daniel Blanco 8298712468 [FIX] base: change rounding for CLP (l10n-cl) because decimals are not used in the country.
closes odoo/odoo#47420

X-original-commit: 5cc738c9e5ae8376cbc89a8bc00cd5df407e9ee0
Signed-off-by: Josse Colpaert <jco@openerp.com>
2020-03-11 15:17:32 +00:00
William Henrotin a75517241e [FIX] stock: remove hover effect on popover
The hover effect on popover is the following: the popup is opened when
passing the mouse cursor on the icon and closed once it leave the icon.
The issue is if the popup has a button inside, clicking the button
freeze the popup. It cannot be closed unless the entire page is
refreshed

Task : 2199078

closes odoo/odoo#47408

X-original-commit: 25947264929a602256bd7febafa074ef7dabf7bd
Signed-off-by: William Henrotin <Whenrow@users.noreply.github.com>
2020-03-11 14:20:09 +00:00
jbm-odoo 568b258c43 [IMP] tools: rotate PDF
Task ID 1251

closes odoo/odoo#45764

Related: odoo/enterprise#8569
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2020-03-11 09:57:55 +00:00
jbm-odoo c4c2430807 [IMP] sign: Add color option for signature
Blue by default

taskID: 2196770
2020-03-11 09:57:55 +00:00
Xavier Morel ff53bdfb09 [FIX] l10n_latam_invoice_document: check of account_move type
The `type` field was renamed `move_type` in
d675dbaa4c but a forward-port re-added a
use of the old `type` name, which breaks if an account.move is
unlinked while l10n_latam_invoice_document is unlinked (and there are
related moves to update).

Instead of renaming the field, use the proper utility method for the
category (purchase) provided by account.move.

closes odoo/odoo#47301

Signed-off-by: Xavier Morel (xmo) <xmo@odoo.com>
2020-03-10 14:54:42 +00:00
Sébastien Theys db6a018c84 [FIX] mail_bot: revert of notification request change
Commit [1] does not work as it is supposed to, because there has been a
confusion between the "notification request" and the "chat with OdooBot".

`_showOdoobotTimeout` is for the chat, and it is unrelated to the notification
request. We don't want to initiate multiple chats with OdooBot so that has to be
reverted.

As for the original goal of the PR about the notification request, it wasn't met
either because it is the browser controlling it:

- on Firefox there simply isn't a "close" button, and closing it by any other
  means (escape key) is considered as a denied.

- on Chrome, when closing it for the first time, it will appear again
  automatically after the next page reload, so no additional code is required.
  However, if it is closed too many times (around 3) it will become
  automatically denied too, at the browser level.

The only thing to do at that point is to better notify the user that it was
blocked, without being intrusive, which is the focus of task-2188584.

[1] b7254ecaeee7f8fa564ca2059f119f5d12404af6

opw-2186299

closes odoo/odoo#47395

X-original-commit: 50155e808c44121086cc7436cec0e7f166cd4268
Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2020-03-11 13:01:37 +00:00
Swapnesh Shah cf42c2e27c [FIX] sale,payment: Encode Payment URL correctly
Before this commit, Payment URL was not encoded correctly which can compute Payment refernece Wrongly on website.

Eg,
  Enter Description which contains Special Characters
  Go to Payment Page using Computed URL.
  There will be wrong Payment Reference on Payment page.

With this commit, We encode Payment reference before generating Payment URL.

closes odoo/odoo#47387

X-original-commit: 6ebcc43d177b9333afa73ee90e976d57111aaf3d
Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
2020-03-11 12:25:06 +00:00
Xavier Morel b6af34d30e [IMP] core: only check for the unaccent function to enable the feature
Before this the `--unaccent` flag does double duty to specify whether
to create new databases with the extension *and* to try to use the
corresponding function.

The latter is further gated on the function existing at all in the
database.

Given postgresql does not have unaccent installed by default it seems
only the latter is really useful and we can ignore the flag to decide
whether to enable unaccent features, if the extension is installed
consider that it should be enabled and move on.

Merge this in master rather than previous versions as it can change
things like index access / use.

closes odoo/odoo#47377

Signed-off-by: Xavier Morel (xmo) <xmo@odoo.com>
2020-03-11 11:14:48 +00:00
jvm-odoo 06dee038dd [FIX] mail: attachments in the message when marking activity as done
Fine tuning of 1e411e3a6d
- It moves the attachment in the message when we mark an activity as
  done.
- It adds a test

OPW-2196668

closes odoo/odoo#47349

X-original-commit: 2033066426a6af6eed5f80f1bcde6e650e998f0d
Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
2020-03-11 09:49:02 +00:00
Nicolas Martinelli 4aa7e101a9 [FIX] point_of_sale: rounding error
- Set 'Product Unit of Measure' to 5
- Set the UoM rounding to 0.001
- Create an excluded tax of 6 %
- Create a product costing 7.0
- Open the POS, add the product with a quantity of 0.535

The tax is 0.22 instead of 0.23.

The root cause of the issue is the in JS:

```
round_pr(0.535, Math.pow(10,-5)) * 7 = 3.744999999999999
round_pr(0.535, 0.00001) * 7 = 3.745
```

The numerical error impacts the tax computation later on.

As a workaround, we round by the maximum between the UoM rounding and
the 'Product Unit of Measure', which is what will be done in the backend
anyway.

opw-2205092

closes odoo/odoo#47372

X-original-commit: 125cdf96e94a94146804091ad47e701240c2529e
Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
2020-03-11 11:06:11 +00:00
Romain Estievenart 8ec70c9072 [FIX] web: data-mobile on action_manager_act_window
Commit ca4eaf4 introduced the data-mobile attribute, used
to specify options to pass when executing an action, only in
mobile (like using a fullscreen modal).

However, we forgot to add the 'isMobile' check, so the option
was passed in desktop as well.

This commit fixes the issue and adds some tests.

Task ID: 2155601

closes odoo/odoo#47333

X-original-commit: 6cb68a53106fa7326a7f818461418437d5a0df77
Signed-off-by: res-odoo <res-odoo@users.noreply.github.com>
2020-03-10 21:40:19 +00:00
Josse Colpaert 72623a2c82 [FIX] l10n_ch: adapt bank account creation in reconciliation
If the bank account number is a postal one, search differently
to see if the account already exists.  As for a postal account,
the same number can be used by multiple partners, changed the
account to include the name of the partner, but for this
we need to alter the way the account is searched/created.

closes odoo/odoo#47365

X-original-commit: b95b9d6db2af51644f640142d5a0b9ca72eac52f
Signed-off-by: Josse Colpaert <jco@openerp.com>
2020-03-11 10:32:47 +00:00
Josse Colpaert 4179341f79 [REF] account: refactor bank statement reconciliation for adding bank account
When reconciling and the bank account is not found, the system
wlll automatically create one.  Here we refactor the method
checking/creating this bank account in order to be able to inherit
this functionality.

In the meantime, we added the company_id for the newly created
bank account in order to avoid problems when you are operating
on multiple companies at the same time.

X-original-commit: a63bd575166e4b07345fdcfa1c7d5bb9560821c8
2020-03-11 10:32:46 +00:00
Odoo's Mergebot bb80540e01 [IMP] test_main_flows: adapt The Main Flow Tour for mobile
This PR adapts some existing steps or add new ones to execute
the same tour on mobile.

This tour has many steps and give a good idea to know if new tasks
broke mobile or not.
The goal is that even if the design isn't perfect, users aren't blocked
and are able to perform their usual tasks.

The main flow tour is still running on desktop but
we also run it a second time on mobile.
It's only available in enterprise, otherwise the test will be skipped.
'375x667' correspond to the Bootstrap XS size.
This value is already used for the mobile tests suite.

Also see https://github.com/odoo/enterprise/pull/9011

Task ID: 2149402

closes odoo/odoo#46880

Related: odoo/enterprise#9011
Signed-off-by: Adrien Dieudonné (adr) <adr@odoo.com>
2020-03-11 12:01:31 +01:00
Krupa Patel 703a9c48e9 [FIX] web_editor: close widgets by clicking outside of them
task-2196789

closes odoo/odoo#46298

Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2020-03-11 10:18:30 +00:00
Romeo Fragomeli 8ff16b2128 [IMP] test_main_flows: adapt The Main Flow Tour to be usable on mobile
This commit adapts some existing steps or add new ones to execute
the same tour on mobile.

This tour has many steps and give a good idea to know if new tasks
broke mobile or not.
The goal is that even if the design isn't perfect, users aren't blocked
and are able to perform their usual tasks.

Task ID: 2149402
2020-03-11 10:10:16 +00:00
Romeo Fragomeli ab2e3fdb7d [REF] *: add tour steps utils
This commit moves some step utils in a dedicated file and add new ones.
These steps will be very useful for the Main Flow Tour to avoid
duplicated code.

To do this, we also had to transform it into functions to allow
utils to call each other. Existing one are converted for
standardization purpose.

Note that 'WEBSITE_NEW_PAGE' wasn't considered as an util.
This is a very simple step only used twice.
2020-03-11 10:10:16 +00:00
Romeo Fragomeli edf4f5c781 [IMP] test_main_flows: execute main flow tour on mobile
In this commit, we are still running the main flow tour on desktop
but we also run it a second time on mobile.

It's only available in enterprise, otherwise the test will be skipped.

'375x667' correspond to the Bootstrap XS size.
This value is already used for the mobile tests suite.

Task ID: 2149402
2020-03-11 10:10:16 +00:00
Romeo Fragomeli 298f2f4aae [IMP] web_tour: add 'mobile' flag for steps in tours
We are not able to precise in which case a step should be executed.
We already have 'edition' and now we introduce 'mobile'.

undefined: Desktop + Mobile*
true:      Mobile* only
false:     Desktop only

*: Responsive (<= SM), see isMobile
2020-03-11 10:10:16 +00:00
Romeo Fragomeli 8ba6a881c5 [REF] test_main_flows: use XMLID's as app menu selector
Note that tours shouldn't be language dependent.
By using XMLID's we are able to find a menu even if the tour
is running in another language.

The tip has been moved slightly but it's not a big deal,
others selectors menu already used XMLID's.
2020-03-11 10:10:16 +00:00
Romeo Fragomeli 6f7349c91a [REF] test_main_flows: use destructuring assignment 2020-03-11 10:10:16 +00:00
Romeo Fragomeli d2fcdd5012 [REF] test_main_flows: fix linter warnings 2020-03-11 10:10:16 +00:00
Romeo Fragomeli 3a191d053a [FIX] web_tour: tip not consumed with the right event on mobile
Before this commit, the tip for a many2X field was consumed with a
input event.

But on mobile we doesn't have the same behaviour; a kanban modal is
opened when we click on the many2X field input instead of writing in it
(auto-complete) like on desktop.

After this commit, the tip is consumed with a click event for many2X on mobile.
2020-03-11 10:10:15 +00:00
Romeo Fragomeli 10a47cf401 [FIX] web_tour: tip not visible anymore on notebook header
Since commit: odoo/enterprise@e662ef3629
a 'div' wrapper was added around the notebook header.

The tip was not visible due to it's location in the wrapper with
'overflow: hidden'.

After this commit, the tip is appended to the ancestor of the wrapper
and so it's visible again.
2020-03-11 10:10:15 +00:00
Romeo Fragomeli fa2f25154c [IMP] web_tour: activate tour service for mobile
Before this commit, when you tried to run a tour by clicking on
"Start Tour" in the debug menu, nothing happened and a warning
message appeared in console:
"debug_manager.js:53 No handler for start_tour".
Now it will work on mobile too (debug mode only).

We had to do this to be able to run the main flow tour on mobile.

Note that another commit (in enterprise) will automatically consume
all tours to avoid to display it for demonstration purposes.

Task ID: 2149402
2020-03-11 10:10:15 +00:00
fja-odoo 5d8367747c [REF] web_editor: remove useless code in palette
Previously the widget was not refreshed everytime it was opened.
Now that it is the case and since the color picker rerenders every time
we select a color:
It is no longer required to select/unselect the colors.
It is no longer required to add custom colors to existing colors.

Part of: https://github.com/odoo/odoo/pull/45872

task-2212288

closes odoo/odoo#47355

X-original-commit: 481fe703e9400fb64e96291914f76d4dca883e29
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2020-03-11 09:57:53 +00:00
fja-odoo 2c1ebbf89e [FIX] web_editor: fix select theme color if match
When a default color matches a theme color it will now select the theme
color class instead of a css attribute when clicked.

Part of: https://github.com/odoo/odoo/pull/45872

task-2212288

X-original-commit: d7b3538a814f0e53cd3c5816f8296ad5e4c5f41a
2020-03-11 09:57:52 +00:00
Nisha patel 3c1b50c510 [IMP] hr_holidays: Allow to add accrual per days on leave allocation
Purpose of this task is some people would like to make accrual in days
but currently accruals work on different periods(week,month,year).

So in this commit, we added "days" as "interval unit" for leave
allocation with type accrual.

closes odoo/odoo#46751

Taskid: 2168023
Closes: #46751
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2020-03-04 09:02:53 +00:00
Hemali Bhimani 74f7660ccb [IMP] sale_stock: change 'date' on 'Sales Order Portal Content'
Currently on a Sales Order Portal view, the field 'date'
under the delivery order shows the creation date of deliveries
linked to the SO,
After this commit it should display the 'effective date'
(or'scheduled date' if not yet delivered) of deliveries linked to
the SO

task:2180525

closes odoo/odoo#46633

Closes: #46633
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2020-03-04 04:53:59 +00:00
Joseph Caburnay d6b854306c [IMP] web: allow patching getters
Previous implementation of patch (web.utils) only allows patching
methods. This commit allows patching getters as well.

closes odoo/odoo#47047

Signed-off-by: Géry Debongnie (ged) <ged@openerp.com>
2020-03-06 09:04:20 +00:00
Benjamin Vray ed1a39c618 [FIX] website: avoid error if click on edit when nothing is editable
Avoid traceback when click on edit and nothing is editable on the
page.

task-2199214

closes odoo/odoo#47328

X-original-commit: fd92a78bd18a0fd765d9c3a857adc10e29c025dd
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2020-03-10 18:08:20 +00:00
Benjamin Vray 4e48c3ce0f [FIX] web_editor: allow non-alphabetic unit in data-unit
Allow non-alphabetic unit (like percentage) as data-unit value.

task-2194309

closes odoo/odoo#47325

X-original-commit: 1f3dd221134b7b5e5b0eac0ab2ffe447771998b9
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2020-03-10 17:33:21 +00:00
Damien Bouvy 6bcf02efeb [FIX] web: introduce parser for many2one_reference
Follow-up of d0c852f

The parser of `many2one_reference` was not introduced when the new field
type was created and then later when the formatter was added, which
leads to errors when the web client is trying to set the value of such
fields.

Since the value of this field is an ID, it is parsed as an integer.

closes odoo/odoo#47330

X-original-commit: db1e16bc041e1d892fd1f3ac5b694e12496a32f9
Signed-off-by: Damien Bouvy (dbo) <dbo@odoo.com>
2020-03-10 18:41:00 +00:00
Arnold Moyaux abef168389 [IMP] purchase_requistion, purchase_requisition_stock: custom variant
Allow to use custom product decscription on requisition line.

closes odoo/odoo#34174

Task: 1970476
Signed-off-by: Arnold Moyaux <amoyaux@users.noreply.github.com>
2020-03-05 14:31:13 +00:00
Arnold Moyaux 7eb22cef2f [IMP] purchase_requisition: remove useless inherit
_prepapre_tender_values in only call from purchase_requisition_stock.
It's not needed to have 2 functions, everything should be in
purchase_requisition_stock.
2020-03-05 14:31:13 +00:00
Mitali Patel 6f247d799a [IMP] stock, sale_stock, mrp, purchase_stock: transfer the custom variant information
Allow to propagate custom information to upper document. It could be
usefull in many buisness that do custom stuff for people
(t-shirt with user defined text, poster with own pictures...)

The customes values are pass throught procurements'values and are
display on MO or purchase order line.

Task: 1970476
2020-03-05 14:31:13 +00:00
Josse Colpaert ffc6fe1704 [FIX] l10n_de: need to give a name to the DIN5008 lay-out
The report layout was refactored before, but we forgot
to give the specific German lay-out a name, although the field
was added.  This gave a traceback when we wanted to
select a lay-out or this particular lay-out (name False)
in the Settings.

closes odoo/odoo#47321

X-original-commit: 162eb09159a8e8836d5decd6d1a210d2659b55a9
Signed-off-by: Josse Colpaert <jco@openerp.com>
2020-03-10 16:26:21 +00:00
Nils Hamerlinck b381b0eb6f [IMP] db: install unaccent extension on new databases
The unaccent extension was installed only at restore, not at creation
of a database.
Make both consistent.

closes odoo/odoo#46534

Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2020-03-10 16:50:06 +00:00
fja-odoo 38781f1649 [FIX] web_editor: fix laggy option sections
Some option sections are feeling really laggy (especialy the theme ones
we now have in master/13.2). This was due to the "preview" activation of
the snippet being triggered on mouseover and not on mouseenter.

Introduced by: https://github.com/odoo/odoo/pull/36068

task-2198177

closes odoo/odoo#47303

X-original-commit: d85d912de513de5c81c85a8ff814e0af1e13cefd
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2020-03-10 16:02:07 +00:00
Odoo's Mergebot 8f86388360 [FW][MERGE] doc: compatible python 3 and sphinx 2.4
This PR allows one to build the user documentation with python 3 and sphinx>= 2.4.0.
It also removes several warnings.
Remove autogenerated JS doc (backport from master)

closes odoo/odoo#47295

Forward-port-of: odoo/odoo#47169
Forward-port-of: odoo/odoo#46069
Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2020-03-10 16:21:36 +01:00
fw-bot 13c326f6dc [FIX] doc: increase requirement
Partial cherry pick of e4b75149f7
Sphinx 1.6.7 is the minimum in debian stable and ubuntu LTS

X-original-commit: 516e7854fd61c75865bb444e3614cad20283275e
2020-03-10 15:24:11 +01:00