Commit Graph
131425 Commits
Author SHA1 Message Date
Martin Trigaux 3a7bb6aefd [I18N] *: export 13.0 source terms
closes odoo/odoo#39118

X-original-commit: cfc887dc2032aac4f5894ade017dadab7a413557
Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2019-10-21 12:12:48 +00:00
Martin Trigaux 20c0798fd8 [FIX] survey: correct typo
X-original-commit: 637e6a1ad2bf0a13f1452436e51acc88f1a338c4
2019-10-21 12:12:47 +00:00
Andrea Grazioso (agr-odoo) 8d21ee4053 [FIX] l10n_it_edi: duplicate invoice on import
Install l10n_it_edi, try to import an italian e-invoice (xml). Odoo will create
2 invoices, one draft with the attachment but empty, and another one
with the parsed content of the file.

This happen because the module responsible for the import systematically
create a new invoice instead of reusing the open one.

opw-2089521

closes odoo/odoo#39115

X-original-commit: 45984f8d83a2aa97714ffcca32f690a58cc6328f
Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
2019-10-21 11:28:41 +00:00
jvm-odoo b2314c9b26 [FIX] point_of_sale: fix of currency symbol on receipts discount
Fine tuning of c351f00

In the POS module there is the possibility to print receipts.

Before this commit:

    - The currency symbol appears in the receipts but not in sublines
      and discount

After this commit:

    - The currency symbol appears in the receipts but not in sublines

OPW-2083188

closes odoo/odoo#39114

X-original-commit: 6a22bb1e4e917a27b41290824fec86718935d864
Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
2019-10-21 11:28:23 +00:00
Raphael Collet 9cad630d71 [FIX] base: test domain with LIKE on date field
closes odoo/odoo#39101

X-original-commit: dc48e9d296f7ecb95690e9070f1f9cf945c78654
Signed-off-by: Raphael Collet (rco) <rco@openerp.com>
2019-10-21 09:08:48 +00:00
Raphael Collet bb9952cff2 [FIX] models: filtered_domain on date/datetime fields
X-original-commit: 5399c139b884f721b92477533eae1e03bf4cf62b
2019-10-21 09:08:47 +00:00
Antoine Prieels c2e645f45f [FIX] hw_drivers: Add manufacturer to scales
At the moment the weight is read from all scales automatically. The
problem is that Adam scales beep every time we read the weight, making
them almost unusable in a shop. We set the manufacturer on the IoT
Device to be able to identify those scales and get the weight manually
instead of reading it automatically.

closes odoo/odoo#39107

Taskid: 2089995
X-original-commit: 5bde93951b29c18d8361bd5ca759a8b2e190573a
Signed-off-by: pimodoo <pimodoo@users.noreply.github.com>
2019-10-21 09:57:15 +00:00
wan 5d835f1f50 [FIX] account: prioritize payment ref for matching bank statements
Lets say we have 2 payment references on our invoices:
* `45 RE34Y U0000 00000 02019 00014`
* `45 RE34Y U0000 00000 02019 00022`

A customer pays with the communication: `45 RE34Y U0000 00000 02019 00014`

Before this commit, the query in _get_invoice_matching_query was looking
at the invoice number, the invoice line label, and the vendor reference
all the same way; it was never looking specifically at the payment reference
(which is copied on the receivable line).
This was an issue because the matching was done by keeping only the
digits, grouped by word. If at least one group of digit matched, then
the statement matched with the line.

In our example, both invoices were proposed because `45`, `RE34Y`,
`Ù0000`, `00000` and `02019` matched. (one is enough).

The fix consists of ignoring the lines that match with the number, label
and vendor ref if we find an exact match with the payment reference.

closes odoo/odoo#39102

X-original-commit: 35339bc24b52788e18b57a49f3a0d948f9e466b8
Signed-off-by: Laurent Smet <smetl@users.noreply.github.com>
2019-10-21 09:09:11 +00:00
Sébastien Theys 08d0a90a51 [FIX] sale: change type of signature from Binary to Image
- ensure a valid image was given or prevent to save it otherwise, instead of
  allowing any file, which would then crash at display
- restrict to a reasonable size

PR: #38292
closes #38026

closes odoo/odoo#39098

X-original-commit: 92eafdf7e283e5474b1da2c88cfbdebbee17b48e
Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2019-10-21 09:08:11 +00:00
Sébastien Theys 20ac5338ac [FIX] fields: verify image resolution on create/write
Before this commit, if `max_width` and `max_height` are 0, the image would not
be opened by Pillow at all (to gain a bit of CPU) however this was actually a
bad idea in this case because then we don't ensure the given value is actually a
valid image when we save it, only later at display we notice it and it crashes.

This optimization only made sense when `image_process` is called many times,
from the route displaying images every time a visitor is requesting an image,
for example. It doesn't really have an impact for one time operations such as
creating/writing.

So when size parameters are 0, which is the default, another parameter must be
passed to `image_process` to ensure image validity, and `verify_resolution` is
actually built for this, as it does the minimal amount of processing:
- loading the image
- making sure it is valid
- and ensuring the resolution is not completely crazy (`IMAGE_MAX_RESOLUTION`).
It doesn't alter the original image if no other operation was requested.

Pr: #38292
X-original-commit: e16c36bb4bfa3ae1739712c69c72849665a057dd
2019-10-21 09:08:10 +00:00
Sébastien Theys 38133ce0d1 [FIX] fields: ensure image values are stored in cache as binary
Binary fields are supposed to be saved as binary in cache, and not as string
which is also supported as an input value.

Pr: #38292
X-original-commit: 64e0d106adccd8132cbfeb6b60da74b3feaf05e1
2019-10-21 09:08:10 +00:00
Raphael Collet 883fd9e045 [FIX] fields: ensure Binary are never recomputed with "bin_size"
The compute methods are always expecting the real value and not the bin_size.

The solution is to always compute with `bin_size=False`, and then manually
compute the `bin_size` and set it on the cache of `bin_size=True`.

PR: #38292

Co-authored-by Sébastien Theys <seb@odoo.com>

X-original-commit: 7744886d6141ca7971d91807d0444c707e10fdf8
2019-10-21 09:08:10 +00:00
alt-odoo db90ae1cd6 [FIX] survey: display results of survey with no sections
Since commit https://github.com/odoo/odoo/commit/dba478332681dd21a39c4a183c002b1cf6e046d2, a survey can have questions with no section
associated, which means 'page_ids' field will be empty.

This prevents to display the analysis results of a survey, as we are
still expecting a structure page/questions. To solve it, if a question
does not have a section associated, we use an empty page instead.

closes odoo/odoo#39087

X-original-commit: 45c2964c1cfd07cabfa6a1a1b8e796bea4c521d7
Signed-off-by: Alex Tuyls <alt-odoo@users.noreply.github.com>
2019-10-21 07:40:07 +00:00
Debauche Stéphane c4d15475d9 [IMP] website_slides: remove the progress bar on "course_card" if the channel type is "documentation"
Task #2080594

closes odoo/odoo#38027

Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2019-10-07 06:59:57 +00:00
David Beguin a8473341ac [IMP] website_slides_survey : Add share button for certification in user's profile page
This commit adds a button in the certification card in the profile page.
this button opens the share modal and allows to share to social networks
the course linked to that certification.

Task ID : 1950396
PR #31776

Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2019-10-15 13:02:24 +00:00
David Beguin bb35811320 [REF] website_slides : refactor share_modal to use same template(s) in all case
This commit prepares the next one. It creates generic main and sub templates
for slide share modal.

In order to be usable for all cases, header and body sub template have been added.
Also and in the same purpose, as the website url can be another url
than the record to share (or if the record doesn't have website_url), this website_url
can be specified separately from the record. Otherwise, the standard behaviour is to
use the record.website_url.

Task ID: 1950396
PR #31776
2019-10-15 11:45:22 +00:00
Laurent Smet 7235c51164 [FIX] account: Fix tax lines generation with analytic
The analytic account/tags must be set on taxes only when the 'analytic' box is ticked.

closes odoo/odoo#39088

--task: 2089557
X-original-commit: 0ed224048d2d5f7e6c37af42fb8865237b874b94
Signed-off-by: Quentin De Paoli (qdp) <qdp@openerp.com>
2019-10-21 07:43:35 +00:00
Kevin Baptiste 08eafe3a57 [IMP] hr_expense: less email notification on assignation
Managers were receiving 2 emails to say basically the same thing. This
commit removes one of those emails ("You have been assigned to ...").

closes odoo/odoo#39058

Taskid: 2067994
X-original-commit: 1dbffeb7dba9ed862d6c62ebd771e7581dd33250
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2019-10-18 19:30:04 +00:00
Odoo's Mergebot c3335a0db0 [IMP] web: force desktop mode on mobile
Before this commit, some views appeared broken on mobile.
We don't consider this as a bug because Odoo is not supposed
to be responsive in Community edition. This feature is only
available on Enterprise.

This commit aims at clarifying this situation by clearly moving
the base requirements to support browsers' responsive to the
Enterprise edition and stating that the Community edition only
targets desktop.

It's important to note that, for technical reasons, some
responsive-related JS/CSS code may still be present in the
Community codebase but they are not meant to provide any
explicit or implicit support for responsive/mobile devices.

Technically speaking, this commit removes the viewport meta tag.
This change will then force the "desktop-like" rendering even on
small screens for the Community edition and will keep the current
behavior (scaling/zooming on small screens) for the Enterprise edition.

By doing this we do not let the users think that something is broken
and must be fixed.

So,
in Community edition, desktop is always displayed;
In Enterprise edition, Responsive Web Design is available.

We also had to adapt a test to be able to apply XPath adding
viewport meta tag in enterprise.

Task ID: 2090202

closes odoo/odoo#38768

Signed-off-by: Olivier Dony (odo) <odo@openerp.com>
2019-10-21 10:54:02 +02:00
Thibault Delavallée 0d2f046851 [IMP] test_mail: add performance test for composer creation and send_mail
Currently there are some high-level tests that trigger composer creation,
call or send_mail action. However it is always a good idea to have some
performance tests only for some parts of mail application.

In this commit we also fix some naming and remove unnecessary variables
as a side dish.

closes odoo/odoo#38475

Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2019-10-18 15:28:15 +00:00
Thibault Delavallée 2535a52177 [IMP] mail, portal: use formataddr to format email
Somehow followup of dbb6cfdbf8 . Purpose is
to use formataddr from tools instead of manually handcrafting the full
email address format. Indeed the tools one correctly encapsulates and
format name and email.

Task ID 2068986
2019-10-18 14:17:45 +00:00
Thibault Delavallée 20c49e8093 [FIX][IMP] mail: update all notification status before sending bus notifications
Otherwise status of notifications is not correctly updated when sending them
on the bus.

Task ID 2068986
2019-10-18 14:13:28 +00:00
qsm-odoo aee7283d9d [FIX] website_mail_channel: adapt snippet option to new UI
closes odoo/odoo#39062

X-original-commit: f097f07f95b7fc4a6acc84d7df1e3501fa555ec7
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2019-10-18 20:17:33 +00:00
Pierre Rousseau 47f64af982 [FIX] partner_autocomplete: do not crash on empty logo
Before this commit, if the user clicked on a company which have no company logo, the system did not let him create a contact.

opw-2086824

closes odoo/odoo#39054

X-original-commit: e3fe7a9af00b7afa5b03d5dcaac1d8f135cb1ea5
Signed-off-by: Pierre Rousseau (pro) <pro@odoo.com>
2019-10-18 15:14:56 +00:00
Romeo Fragomeli 56b91ccdc0 [FIX] web: virtual keyboard is always showing during navigation
Before this commit, the search bar auto focus was already disable
on mobile based on media queries.
But "isMobile" equals false since we force the desktop mode.

To fix this, we use isMobileDevice which doesn't depend on the
resolution.

Task ID: 2090202
2019-10-18 12:59:48 +00:00
Romeo Fragomeli 78b9dad560 [REF] web,barcodes: simplify mobile device detection
In this commit, we introduce "isMobileDevice".
Do not confuse with isMobile.

isMobile:
A frequent use case is to have a different render in 'mobile' mode,
meaning when the screen is small.  This flag (boolean) is true when
the size is XS/VSM/SM. It is also updated dynamically.

isMobileDevice:
Mobile device detection using userAgent.
This flag doesn't depend on the size/resolution of the screen.
It targets mobile devices which suggests that there is a virtual keyboard.

Task ID: 2090202
2019-10-18 12:59:08 +00:00
Romeo Fragomeli 9831ed08fe [IMP] web: force desktop mode on mobile
Before this commit, some views appeared broken on mobile.
We don't consider this as a bug because Odoo is not supposed
to be responsive in Community edition. This feature is only
available on Enterprise.

This commit aims at clarifying this situation by clearly moving
the base requirements to support browsers' responsive to the
Enterprise edition and stating that the Community edition only
targets desktop.

It's important to note that, for technical reasons, some
responsive-related JS/CSS code may still be present in the
Community codebase but they are not meant to provide any
explicit or implicit support for responsive/mobile devices.

Technically speaking, this commit removes the viewport meta tag.
This change will then force the "desktop-like" rendering even on
small screens for the Community edition and will keep the current
behavior (scaling/zooming on small screens) for the Enterprise edition.

By doing this we do not let the users think that something is broken
and must be fixed.

So,
in Community edition, desktop is always displayed;
In Enterprise edition, Responsive Web Design is available.

We also had to adapt a test to be able to apply XPath adding
viewport meta tag in enterprise.

Task ID: 2090202
2019-10-18 12:41:39 +00:00
Katherine Zaoral d31a87c14e [FIX] l10n_ar_afip_code: Currency AFIP codes
60 is different of 060. The 060 is the correct value for the afip code
in this case (EUR). Apply to all the numeric values in the currency afip
codes.

closes odoo/odoo#38953

X-original-commit: 8c47c7f0342b985287da86f7955a52ef05a6ba0d
Signed-off-by: Josse Colpaert <jco@openerp.com>
2019-10-17 13:07:46 +00:00
Katherine Zaoral 22376c05d4 [ADD] l10n_ar: Add more afip codes to res.country
X-original-commit: 4a0c8846e97bde501ad0d3e864de86ceb30b75d0
2019-10-17 13:07:46 +00:00
Katherine Zaoral 2b221edb49 [IMP] l10n_latam_invoice_document: remove include recipts
Since we are not using document only in invoice by now we remove the
option to incoude receipts.

closes odoo/odoo#38842

X-original-commit: af0703f959357120ec9a8ea674e02faaddfefb85
Signed-off-by: Josse Colpaert <jco@openerp.com>
2019-10-15 21:42:12 +00:00
Lucas Perais (lpe) bdc8e948d6 [FIX] event, website_event: timezone timestamp to compute one day
Have an event in Mexico timezone
As a begin date, choose something in the morning
As a end date, choose 18:00 in that timezone (or later)
in the same day
The end date will be written as the day after at 00:00 in UTC

Before this commit, the event was considered taking more than one day
Also, the rendering on the website took the wrong widget, and did not
transform the UTC dates into their TZ value

After this commit, the event is considered taking place in the same day
The rendering on the website is correct

OPW 2087828

closes odoo/odoo#39060

X-original-commit: 4514ff30e9cc218474dda4519e36cfc983e49fc8
Signed-off-by: Lucas Perais (lpe) <lpe@odoo.com>
2019-10-18 19:41:14 +00:00
Nicolas Martinelli 5bb8d068ac [FIX] account: auto-post date
Tests can fail when they are run at the moment when `fields.Date.today`
is different from `fields.Date.context_today`.

closes odoo/odoo#39079

X-original-commit: 0405f4a35bcad60fd99b1a05ffc8d9774e9a2829
Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
2019-10-20 12:27:12 +00:00
Joseph Caburnay 2524d78cab [FIX] point_of_sale: recursive pos.category error message
Instead of showing a traceback, show a user-friendly error message
to the user to avoid recursive pos.category.

closes odoo/odoo#38803

X-original-commit: babcbf8a2bdf3ea9813705c5fce42e883831e009
Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
2019-10-15 13:44:34 +00:00
William Henrotin cf6e8e412c [FIX] stock_account: remove useless descriptions
closes odoo/odoo#39067

X-original-commit: e398db8783c2c88ffbb571b14758281ba6f382d1
Signed-off-by: Simon Lejeune (sle) <sle@openerp.com>
2019-10-19 07:33:19 +00:00
Andrea Grazioso (agr-odoo) de1e2cf038 [FIX] point_of_sale: User associated with non-existing Employee
* Install pos_hr
* Create new user [DEMO] (change password and save the user id)
* In POS session settings, uncheck "Login with Employees"
* Log in with [DEMO]
* Start a new POS session
* From the Employee page delete the record matching [DEMO] user id
* Process a transaction from the POS

Several error message will popup. This is due to
https://github.com/odoo/odoo/commit/26274dbb9720743461be2a70de02bf4c1ea377f4
which introduced a faulty matching between the id of user who start the pos
and an employee with the same id.
Assigning the single properties as before the change fix the issue

opw-2087591

closes odoo/odoo#39052

X-original-commit: c51e91cd755a3dc48bb41378528a39e0df434eab
Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
2019-10-18 14:59:38 +00:00
Kevin Baptiste 53febfa218 [IMP] lunch: add help message for empty alerts
closes odoo/odoo#39042

Taskid: 2081660
X-original-commit: 5f3f58a41f92f6b90f48beb11d89fb253945564d
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2019-10-18 13:51:45 +00:00
Andrea Grazioso (agr-odoo) d202452b8c [FIX] account: reversed entry in the future is posted
Install Accounting, create a journal entry, post it, reverse it with
a date in the future.

The reverse entry will be posted, instead it should stay a draft (with
the appropriate 'auto_post' set to True)

opw-2083121

closes odoo/odoo#38802

Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
2019-10-18 06:36:41 +00:00
Meghna Jaswani 548c2a03a0 [FIX] hr_holidays: Include manager (parent_id) as valid responsible
On a time off request, if the 'Time Off Responsible' (leave_manager_id)
is not set, then the SUPERUSER_ID is taken as time off responsible for the
validation.

Before falling back on OdooBot, include the parent_id of the employee,
aka the manager, as a valid responsible.

closes odoo/odoo#39041

Task: 2072111
X-original-commit: 1e1b9b4089736ee8f7ef374c663376d040372ffd
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2019-10-18 13:51:29 +00:00
wan 9ba8734f15 [MOV] account: reconciliation widget
Task 2034073
The reconciliation widget is now entirely part of the enterprise version
as it is an advanced accounting feature

closes odoo/odoo#38424

Signed-off-by: Quentin De Paoli (qdp) <qdp@openerp.com>
2019-10-18 12:53:41 +00:00
Meghna Jaswani 48e563f0bf [ADD] l10n_il: generic chart of accounts for Israel
- added CoA
- added standard input/output taxes with rate 17% and few others

closes odoo/odoo#39045

Task: 1966308
X-original-commit: eea6171d6990e98f99f14bb511b5fd08d0c0d7e7
Signed-off-by: Josse Colpaert <jco@openerp.com>
2019-10-18 13:58:23 +00:00
ryv-odoo f01ce96204 [FIX] website_sale_digital : fix AccessError attachment
A user get a AccessError during a valid flow on the website shop
due to a attachment search (with website_sale_digital installed) :
- As a portal user buy a product and pay with wire tranfer (or other)
- Check the your quotation with this user and we get a AccessError
for the read ir.attachment model.

The bug comes from the website_sale_digital module which add a search
on ir.attachment for each product (allows digital product sell,
eg. ebook) on the controller rendering orders. To fix this issue, add
a sudo call before the search. It is legit because only the name and
date is retrieved and the download (of the digital product) checks
the access of this product attachment (if user already paid for it).

TASK_ID : 2004031

closes odoo/odoo#39043

X-original-commit: c757e14cb791262485a949eacdcfb2029d03fa5f
Signed-off-by: ryv-odoo <ryv-odoo@users.noreply.github.com>
2019-10-18 13:52:17 +00:00
jbm-odoo d669654895 [FIX] web pivot: Fix open position of selection
Description of the issue/feature this PR addresses:
In pivot, when we click on '+', it must open the selection box at
the point where we click.

Current behavior before PR:
The box opens at the top of the page

Desired behavior after PR is merged:
The box opens at the point where we click

id=2066675

closes odoo/odoo#39034

X-original-commit: 989df08fd8bbfa4a1f05784b599b1657a9b28fe5
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2019-10-18 12:19:50 +00:00
Kevin Baptiste 7b8038c4bd [FIX] mail: Reserve mis-referenced trackings to system users
Purpose
=======

Let's say that the field 'foo' is tracked and defined with a res.group.

When the field is modified, a mail.tracking.value is generated, but the
reference to the field name is a char field.

When displaying the mail.tracking.values on the chatter, a check is done
according to the field group to decide whether we should display it or not
to the user. See: odoo/odoo@c7aa8c5#diff-ad8b6db158187579d2208f233d993c3cR43

So if I rename the field, and if the mail.tracking.value is not modified,
the mail.tracking.value magically appears to the users who shouldn't
access it before.

Note: If the migration is correctly handled, this shouldn't be the case.
But manual manipulations on the database could lead to this issue.

Specification
=============

If the field referenced by the mail_tracking_value doesn't seem to exist,
then display its value to system users only, by security.

closes odoo/odoo#39033

Taskid: 2088634
X-original-commit: ae1e70eba10112170283cfc17fa95d94dd948d2b
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2019-10-18 12:19:10 +00:00
helly kapatel bf99c212a0 [FIX] hr_holidays: display correct number of timeoff on approval view.
When timeoff is 1 day or 0.5 days then it was not going to
correctly display timeoff number on approval page due to momment.

For 1 day leave the date_to and date_from as equal so momment diff will
be 0 days and floating is off for diff so not display 0.5 for floating leave.
even we enable floating it will display the wrong floating based
on 24 hours instead of 8 working hours a day.

so get the number_of_days from db and display on leave same as department
leave summary.

Task-2071031

closes odoo/odoo#39032

X-original-commit: 6953620f507990010c593a0d35d67c81f5b27e47
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2019-10-18 12:18:53 +00:00
RomainLibert 69319bba3e [IMP] lunch: get rid of the lunch_order_temp wizard
Replace lunch.order.temp wizard by lunch.order (fp request)

closes odoo/odoo#35585

Taskid: 2048667
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2019-10-18 12:37:52 +00:00
Romain Derie ace7f03bab [FIX] website: make test works with more website than the data ones
This test was raising an assert error if the DB has other websites than  the
data/demo ones.

As we have a new module in Odoo 13.0 (https://github.com/odoo/design-themes/pull/178)
which is creating 25 websites, and since the design-themes runbot is now
running tests, we were having a red design-themes runbot.

closes odoo/odoo#39008

X-original-commit: 5c7b446363fbec7b2a76a579794e0fac20d05271
Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com>
2019-10-18 08:34:59 +00:00
Julien Mougenot 33c406e3b1 [FIX] web: filter menu styling
Before this commit, the trash icons and "OR" indicator of each filter
was too far and couldn't be seen

Now, both of them are closer to the filter and can be seen in any circumstance.

Task 2073707

closes odoo/odoo#39026

X-original-commit: 87a91c78fb15ee941e72023e02e539de64f0486d
Signed-off-by: Julien Mougenot (JUM) <Arcasias@users.noreply.github.com>
2019-10-18 11:03:56 +00:00
Jorge Pinna PuissantandLucas Perais d00a832952 [FIX] website: access to themes images
Since 62c9dedafd, when accessing a website
connected as portal or public user, the themes images are not showed. An
error is arose 'Sorry, you are not allowed to access documents of type
'Attachment' (ir.attachment)'.

Now, the portal and public user have access to the themes images.

opw-2082468

closes odoo/odoo#39025

X-original-commit: 9b8c390cd5526556346356f260a9cfe1b90cd510
Signed-off-by: Jorge Pinna Puissant (jpp) <jpp@odoo.com>
Co-authored-by: Lucas Perais <lpe@odoo.com>
2019-10-18 11:01:15 +00:00
Victor Feyens e92d302d2f [FIX] web: kanban archive / unarchive all
Since https://github.com/odoo/odoo/commit/f896afcc8a54eae3efcdf034e3fd256942f7fa78,
(un)archive all triggered toggle_active on all records, which doesn't consider
whether we want to archive/unarchive and on which records...

Closes #38903

closes odoo/odoo#39022

X-original-commit: 2c89cb0c92fc593e2e323e322c9228de268f64cf
Signed-off-by: Victor Feyens (vfe) <vfe@odoo.com>
2019-10-18 10:25:58 +00:00
Samuel Degueldre 86681cd0b4 [IMP] website: add option to stretch or unstretch sections
Snippets with side margins look quite compressed between full width
snippets. This commit adds an option in the side-menu to control whether
a section is stretched or not. This option is available everywhere it
would have a reasonable visual impact (the cutoff was arbitrarily chosen
to be that the stretched section is at least 5% larger than the
unstretched version)

task-2080570

closes odoo/odoo#38852

Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2019-10-18 10:25:08 +00:00