Commit Graph
141473 Commits
Author SHA1 Message Date
Rémy Voet (ryv) 01e1ca3468 [FIX] stock: fix empty forecasted report.
When there was no data, the graph overlaps
the empty table. Remove force height in css.

X-original-commit: 8a73dc7776b08a32c70c2492f0044a87f52342dc
2020-09-21 10:36:27 +00:00
Benjamin Vray 1b2ac52969 [FIX] website_form: layout issue on multi checkboxes options
Before this commit, buttons to remove checkboxes and buttons to
re-order checkboxes were styled like button.

After this commit, buttons are just icons. We also improve a little
bit the design of the checkbox list (add space between elements and a
light border between items in the checkbox list).

task-2312878

closes odoo/odoo#58181

X-original-commit: 0253b01632a30adfe071aa090a875fb3915e1962
Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com>
2020-09-22 09:19:05 +00:00
Samuel Degueldre 469bacb91f [FIX] web_editor: fix color comparison and store normalized colors
Previously, shape colors were stored in non-normalized form (eg, would
use the color's name if it was a palette color), this caused some issues
if you chose a palette color for a shape, then changed the palette: the
wrong color would appear in the color picker because it would look use
the color of the current palette instead of the color that was actually
chosen.

This commit also normalizes the case of color strings before comparing
them, as this was causing some colors to be considered non-default
because of different capitalization.

closes odoo/odoo#58180

X-original-commit: cc8589f74d69816357cb614933358000166fa161
Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com>
2020-09-22 09:18:38 +00:00
David Beguin b9b65d7962 [FIX] crm: fix pls field config parameter and force depends recompute
The method _compute_probability has a dynamic depends, that depends on the
crm.pls_fields config parameter. When installing the DB, the depends is
evaluated. If the config parameter is modified afterwards, the depends is not
re-evaluated as the registry is not rebuilt.

The result is that when modifying the config parameter, if an optional
pls_field's value is modified on a record, the compute won't be triggered, as
that pls_field is not in the compute's depends.

This commit force to re-setup the registry after a modification (or the
creation) of the crm.pls_fields config parameter, in order to force the
depends of the _compute_probability method to be updated.

Task ID: 2341829

closes odoo/odoo#58165

X-original-commit: e95afbedc18d198454c7f66b523c4cafb19a4066
Signed-off-by: Raphael Collet (rco) <rco@openerp.com>
Signed-off-by: David Beguin <dbeguin@users.noreply.github.com>
2020-09-21 17:58:03 +00:00
Bruno Zanotti (ADHOC) 644234f7a5 [FIX] l10n_ar: number validation of no official document types
If a document type don't have AFIP code, like "FACTURAS Y COMPROBANTES
DEL EXTERIOR" or "NOTAS DE CREDITO Y REEMBOLSOS DEL EXTERIOR",
we don't have to validate the document number

closes odoo/odoo#58043

X-original-commit: 33cf9fdc0bf90a7246f3f67ada274e7a5519ee6b
Signed-off-by: Josse Colpaert <jco@openerp.com>
2020-09-18 14:20:24 +00:00
Xavier Morel 2da6bc2730 [FIX] base: virtual group fields on users with new default/onchange
* override `onchange` in res.users in order to properly generate and
  send the reified group fields alongside the rest: while default_get
  sets them up, those fields then get stripped by the onchange
  machinery as they don't actually exist on the model
* add a test to check for it
* fix SSF in relation with the new default/onchange system
  - because fields may not actually exist on the record,
    `record_to_values` needs to `read` the record data rather than
    directly access the recordset: the recordset likely will not
    know about fake fields
  - after the initial onchange has run the form must be filled with
    falsy values in case the onchange has not sent defaults for
    everything
  - on creation, all fields in the form should be considered modified

Task 2341153

closes odoo/odoo#58152

X-original-commit: f8658f229180a595d69cd6daefeded082c7f64ea
Signed-off-by: Xavier Morel (xmo) <xmo@odoo.com>
2020-09-21 14:53:29 +00:00
Julien Giannone 9fc3fe1dba [IMP] mail: reintroduce channel mentions, canned responses, commands
task-2280308

closes odoo/odoo#58167

X-original-commit: b63d0d2ee5f3bff24a5e1e1cd962d59bebef082d
Related: odoo/enterprise#13393
Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2020-09-21 21:12:22 +00:00
Marcel Savegnago 043dcba4e0 [CLA] Escodoo signs Odoo's CCLA
closes odoo/odoo#58158

X-original-commit: 25c50242f9761257868a586dbf686d7aeb16c01c
Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
Signed-off-by: Marcel Savegnago <marcelsavegnago@users.noreply.github.com>
2020-09-21 15:46:10 +00:00
Didier (did) d68bdf8720 [FIX] mail: restore the "to followers" feature
Before this commit, the "to followers" message inside the chatter composer was
missing.
Fix also some padding issue.

This also restore the form dialog when you try to send a message to a suggested
recipient that doesn't have a partner (someone in CC email for eg).
But now, suggested recipient without partner are unchecked by default and the
form open when the user try to check them. If the user discard the form dialog,
the suggested recipient isn't checked.
This is better since only a partner will receive a notification.

task-2280157

closes odoo/odoo#58162

X-original-commit: 67d151cc36871d87b92676357a31a70de5a92fce
Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2020-09-21 17:12:43 +00:00
Joseph Caburnay 0cf51928ac [FIX] pos_restaurant: runbot random error on clicking table
Checking the log of the runbot error, there is an extra `create_from_ui`
rpc call for `restaurant.floor`. This is because when table T4 is clicked,
it is still an `EditableTable`. It is possible that the full rendering after
toggling edit mode isn't complete and the tour proceeds because it sees
table T4 in the dom, when in fact the table we want to click should not be
`EditableTable` instead a `TableWidget`. This is random because the tour
may proceed as long at it sees the trigger element, even if the owl
rendering is not finished.

In this commit, we make sure that we click the correct element which is an
unselected table. So we check if table T4 is unselected before clicking
table T4 to open the product screen.

To reproduce, follow instructions here: https://gist.github.com/caburj/ef311076a24d898132ed9c6b99367581

closes odoo/odoo#58151

X-original-commit: 238a65f59202d279d2c9327dd7937f125d80175b
Signed-off-by: pimodoo <pimodoo@users.noreply.github.com>
2020-09-21 14:42:20 +00:00
Raphael Collet f55fcbe15f [FIX] core: always evaluate field.depends upon setup
This is necessary when a field's dependencies are given by a callable.
This functionality was broken with the support for an explicit parameter
`depends` in the fields' definition, because the implementation could
not distinguish between the field parameter `depends` and the `depends`
evaluated from compute functions.

The fix consists in storing the field parameter `depends` into
`field._depends`, and the result of the setup into `field.depends`.

closes odoo/odoo#58144

X-original-commit: aebe9a76c9b35e84eda1f46bec3ef6da152b1539
Signed-off-by: Raphael Collet (rco) <rco@openerp.com>
2020-09-21 14:04:25 +00:00
qmo-odoo 1bd5e3780f [FIX] website_event_meet: Allow room creation for unpublished events
Allow creation of room for unpublished events for base users so that
they can prepare all their rooms before releasing their event in the wild.

LINKS:

TaskID:2339835

closes odoo/odoo#58141

Pr: #57799
X-original-commit: 4cecd66821a1f4493fe321b9886df51d946fd779
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2020-09-21 13:37:37 +00:00
Patrick Hoste cc4b37a610 [FIX] website_event_track_(online|exhibitor): fix the sponsor ribbon display
PURPOSE

The sponsor ribbon wasn't displayed correctly at the bottom of
event page and on the exhibitor page.

SPECIFICATION

The website_event_track_online and website_event_track_exhibitor apps used
some incorrect classes name for displaying the ribbon.

LINKS

Task ID : 2323295
PR : #56597

closes odoo/odoo#57920

X-original-commit: 416b2a592f79aa241bad396c0c163e281c9e4b99
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2020-09-17 08:52:25 +00:00
Samuel Degueldre fab02b45af [FIX] web_editor: make angle of shapes into a multiple of 10deg
This commit changes the angle of some slanted shapes so that they're a
multiple of 10 degrees, this increases consistency between shapes.

closes odoo/odoo#58134

X-original-commit: dc591641f3bf8dee50f172134ffd686edc571bd3
Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com>
2020-09-21 13:16:22 +00:00
Joseph Caburnay 18b5efb42d [IMP] point_of_sale,pos_*: replace 'save' buttons
Replace save buttons in each module field in pos.config with a message.
Saving the pos.config form when a module_ or group_ field is modified
will reload the page.

closes odoo/odoo#51535

Related: odoo/enterprise#10669
Signed-off-by: pimodoo <pimodoo@users.noreply.github.com>
2020-09-17 07:54:03 +00:00
Xavier Morel 7e06e39c50 [FIX] auth_totp: tour not working on a base install
This is a followup to #57826: turns out discuss isn't necessarily
installed (who knew?), so the tour would break if mail was not
explicitly installed alongside base, which is not great.

So instead of opening discuss to try and fix the profile race
condition, reload the *entire web client* by navigating to `/web`.

Further discovery: async run functions don't actually do anything in
tours, not sure where I got that, maybe used one for the convenience
of `await` then the next time around having decided to wipe any
knowledge of tours I had, I figured it wasn't possible that tours were
so stupid as to not support promises.

So yeah, can't just return a "pending" promise in order to force the
tour manager to wait until the page has reloaded to carry on, that
doesn't work. Instead use marker classes. Also remove the `async run`
I had in the rest of the file to avoid being misleading, use a marker
class for the one step where it probably matters.

closes odoo/odoo#58128

X-original-commit: d252b0c6311fd389295e980e6f9725673ce8b650
Signed-off-by: Xavier Morel (xmo) <xmo@odoo.com>
2020-09-21 12:29:28 +00:00
wan 34ea8f97ae [FIX] account: concurency in sequence.mixin
The SELECT FOR UPDATE clause stopped concurent executions but did not
prevent from writing on other rows.
By doing a real UPDATE, we now have the desired behaviour with a
SerializationFailure error.

closes odoo/odoo#58118

X-original-commit: ba6ee0b75d66d6f22a592b1b6a7c5158461bec41
Signed-off-by: Olivier Dony (odo) <odo@openerp.com>
Signed-off-by: wan <william-andre@users.noreply.github.com>
2020-09-21 11:22:38 +00:00
nie 0f59c5b41b [FIX] website_links: Crash when loading data more than a week old
Steps to reproduce the bug:
- Create old click data in the `link_tracker_click` table or change your computer's current date to two weeks in the future.
- Go to the stats page of the link tracker

Bug:
Backtrace on the stats of the link tracker.

opw:2321377

closes odoo/odoo#58113

X-original-commit: 875aeb5c55b96fc3f7d76fc67d56f60df8453ec3
Signed-off-by: Simon Goffin (sig) <sig@openerp.com>
Signed-off-by: backspac <backspac@users.noreply.github.com>
2020-09-21 10:09:12 +00:00
Csaba Tóth 228dc7892c [FIX] website_profile: wrong company name in template ranks_badges
Steps to reproduce the problem:
* Set up multi company with A and B companies
* Set up user UB connected to B company
* Wet up website to company A
* Install eLearning app
* on the /profile/ranks_badges page with user UB the text writes: "Keep
learning with B. Collect points on the forum ...".

This is wrong, as the website is connected to company A. The text should

closes odoo/odoo#58098

Be: "Keep learning with A. Collect points on the forum ..."
X-original-commit: 0d58423f6180fea908fc747e874798ce4aeadd92
Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2020-09-21 08:06:05 +00:00
Carlos Lopez 902ac89eb8 [FIX] point_of_sale: facilitate inheritance return
We are are here facilitating the inheritance of the functions that
create the reurn orders

closes odoo/odoo#57796

X-original-commit: ebb11e18eef7f0a0031f01389116a24de868b6b3
Signed-off-by: pimodoo <pimodoo@users.noreply.github.com>
2020-09-16 08:10:05 +00:00
Swapnesh Shah bdd92878d9 [FIX] point_of_sale: user correct label for record
We are using the reference to  `pos.order` on adding the message to chatter, While we were using the name in the message.

With this commit, we make record name consistent with the record reference being added to the chatter.

closes odoo/odoo#50786

Signed-off-by: pimodoo <pimodoo@users.noreply.github.com>
2020-05-06 18:54:20 +00:00
Odoo's Mergebot 95bd5b6b00 [FW][IMP] web_editor, website: nitpicking
task-2329096

Small details reported by fp/sbu

--
I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr

closes odoo/odoo#58094

Forward-port-of: odoo/odoo#58061
Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com>
2020-09-21 11:01:29 +02:00
Jeremy Kersten 5abfc4dffd [IMP] website: add white shadow on logo
make it compliant with gray / dark color

task-2329096 .12

X-original-commit: 8b8c26877a41e55eb0f3acb1909ac0c3abbf37d7
2020-09-21 07:24:02 +00:00
Jeremy Kersten 69a4cf47c9 [IMP] website: change footer option order and label
task-2329096 .6

X-original-commit: 32024a1fb574a0c109a665d0abf07a32babd5ab5
2020-09-21 07:24:02 +00:00
Jeremy Kersten cad5d8b976 [IMP] web_editor: adapt search style
task-2329096 .2

X-original-commit: 56fac7dda7ecf297d9e55ce21fa43a3720b97f0e
2020-09-21 07:24:01 +00:00
Jeremy Kersten 3b46dd1c5c [IMP] website: typo in helper tour
X-original-commit: 1f182ea5cded409993b2fe1937993356bd277411
2020-09-21 07:24:01 +00:00
Jeremy Kersten 1af84c99df [IMP] web_tour: remove consume button option in step content
This reverts commit 27158a0f612897e41601bf9e9d20861e9b87279f

Why keep a new option now that it has been developped ?

X-original-commit: bd4628e69df1e27498f88f348812a269cc9d3648
2020-09-21 07:24:01 +00:00
Rémy Voet (ryv) a31e07a9ab [REM] (sale_)stock: remove old json forecasted fields
- Remove fields `json_forecast` of `stock.move`
- Remove fields `json_forecast` of `sale.order.line`

closes odoo/odoo#58031

X-original-commit: cc4748b01f5147a50e34d972b65f699a25bec720
Signed-off-by: Arnold Moyaux <amoyaux@users.noreply.github.com>
2020-09-21 06:46:05 +00:00
xO-Tx cd18838a8b [IMP] website: change theme loader during install/update
This commit attempts to update the old "website.ThemePreview.Loader" style
by integrating a loading animation when theme is being installed

Common code used to add loader and install the selected theme in both
ThemePreviewController & ThemePreviewKanbanController.
(preview theme and pick a theme)

task-2338062

closes odoo/odoo#58068

X-original-commit: fbe89b8617c17a3fa93970b4d706a7f0d6421ae5
Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com>
2020-09-18 16:52:49 +00:00
fw-bot df5dde330c [FIX] account: allow full reconciliation for tax lines on entries mixing cash basis and regular taxes
Solves https://github.com/odoo/odoo/issues/56803

Use case:

1) Create accounts ACC TAX A, ACC TAX B, with reconcile = True, internal_type = other

2) Create Tax A, with tax_exigibilty = on_invoice and account_id = ACC TAX A, 20%

3) Create Tax B, with tax_exigibilty = on_payment and account_id = ACC TAX B and cash_basic_account_id = ACC TAX A, 20%

4) Create invoice A, account_id = Tax A, unit_price = 1000, Valide invoice

5) Create invoice B, account_id = Tax B, unit_price = 500, Valide invoice,

6) Register full payment for invoice B. The cash basis tax creates a miscellaneous operation MISC A, containing a line on ACC TAX A.

7) Create a mis operation MISC TVA, like this:
line 1 : account_id = ACC TAX A, credit = 300
line 2 : account_id = 401100, debit = 300

8) Reconcile the following move lines:
line of MISC A with account ACC TAX A (300)
line of invoice A with account ACC TAX A (200)
line of MISC TVA with account ACC TAX A (100)

==> When doing that, not full reconcile object was created between the reconciled lines, while it should have been.

X-original-commit: ff35a49

[IMP] account: reintroduce a test that should have been forward-ported …

This test was made together with a bugfix by https://github.com/odoo/odoo/pull/51529 . The fix did not need to be forward-ported to 13.0, but the test should have been, so that we are sure it does not break again in the future.

closes odoo/odoo#58072

X-original-commit: 5d00592f7d803888d8d5befd5a8cd1b096067860
Signed-off-by: oco-odoo <oco-odoo@users.noreply.github.com>
Signed-off-by: Laurent Smet <smetl@users.noreply.github.com>
2020-09-18 17:34:46 +00:00
Laurent Smet 98cd83aaa0 [FIX] account: Fix float division by zero in reconcile model after migration
A statement line can't have a zero amount except after a migration.
In that case, the residual amount of the statement line is also zero and then, the line having the suspense account has a balance of zero.
When opening the bank reconciliation widget, it leads to a float division by zero because we try to compute the paid percentage of the statement line.

closes odoo/odoo#58069

Task: 2341850
X-original-commit: ecc8f8be6ee09cb0fdfae0c4b35a933541d41292
Signed-off-by: oco-odoo <oco-odoo@users.noreply.github.com>
Signed-off-by: Laurent Smet <smetl@users.noreply.github.com>
2020-09-18 16:53:13 +00:00
Martin Trigaux a55496dc8e [ADD] doc: sescurity pitfalls
Write guidelines on how to write secure code and avoid commons
mistakes.

Update outdated information and move existing security guidelines to
the same section.

closes odoo/odoo#58065

X-original-commit: 10184274fb6be1639d2047e863654ed5c7bef9f0
Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2020-09-18 16:21:39 +00:00
Paul Morelle 17299012af [FIX] account: fix install of account installs account_accountant
Bug description:

Installing Invoicing on a database whose company is configured in the
SEPA zone, results in installing Accounting

Steps to reproduce on the Runbot:

- Start from a base enterprise database
- Go to Settings > Users & Companies > Companies and configure the
  address of MyCompany to the SEPA zone (e.g. Belgium)
- Go to Apps and install Invoicing
- The Accounting application has been installed

Explanation:

The module account_sepa depends on account_batch_payment, which depends
on account_accountant.
The post_init_hook of account, _auto_install_l10n, adds the account_sepa
module to the installation if the country_code of the company is in the
SEPA zone.
The same side-effect is observed with account_bank_statement_import_camt
which depends on account_bank_statement_import, which depends on
account_accountant.

The fix is to remove the installation of these modules from the
post_init_hook of the module account, and add them to a new
post_init_hook of the module account_accountant, that will be in a PR in
the enterprise project.

closes odoo/odoo#58073

X-original-commit: db4ce56641c75403be935efa072687bff65c7bb2
Related: odoo/enterprise#13362
Signed-off-by: Quentin De Paoli (qdp) <qdp@openerp.com>
Signed-off-by: Paul Morelle <madprog@users.noreply.github.com>
2020-09-18 17:35:11 +00:00
Raphael Collet 0e6a8b5faf [FIX] core: filtered_domain with operators 'like' and 'ilike'
Make the method work when the value to test is `False`.

closes odoo/odoo#58064

X-original-commit: 6fb19219d333dc324603bcb2a937e977eecb037e
Signed-off-by: Raphael Collet (rco) <rco@openerp.com>
2020-09-18 16:20:05 +00:00
Laurent Stukkens (LTU) b192d8d23f [FIX] website_form: allow to submit form without csrf if not logged
Chrome recently changed their SameSite policy default value from None to Lax,
the session is no more shared between the webpage and the iframe.
As a result, the csrf check systematically fails.

After this commit, the csrf_token check is only made when you have a session.

In case you are using your form in an iframe on another site, with the new
cookies policy, your cookies with the session_id (linked to the csrf token)
is not sent to the server and the check csrf always fails.

Since the purpose of the csrf is to prevent another website to submit a form
with your 'authenticated account', we can consider that if you are not logged
and so have no session_id, it is no critical and we can ignore the csrf check.

opw-2330286

closes odoo/odoo#58050

X-original-commit: 9a0c9f3192bc7043add89446cbe6c2650499a654
Signed-off-by: Olivier Dony (odo) <odo@openerp.com>
Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com>
2020-09-18 15:09:51 +00:00
Jeremy Kersten 42921d130e [IMP] website_blog: tour query count improvement
Disabled livechat in blog query count
if website_livechat is installed before website_blog, the get_livechat_channel_info add
unrelated query for the current test. So we disabled it.

Courstesy of @Xavier-Do for analyse

closes odoo/odoo#58044

X-original-commit: 86f065e3571a1339798501156804fda6c57c6989
Signed-off-by: Xavier Dollé (xdo) <xdo@odoo.com>
Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com>
2020-09-18 14:34:36 +00:00
Yannick Tivisse 64b1056e5c [IMP] hr: Add a warning when changing employee's company
closes odoo/odoo#57973

Related: odoo/upgrade#1784
Related: odoo/enterprise#13312
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2020-09-18 11:00:25 +00:00
Yannick Tivisse 140e5dafba [IMP] hr_work_entry: Make clear that validated work entries cannot be modified
TaskID: 2337204
2020-09-18 10:33:20 +00:00
Yannick Tivisse 61139a4a52 [IMP] hr_work_entry: Improve the work entries search view
TaskID: 2337204
2020-09-18 10:33:20 +00:00
Yannick Tivisse 0d4441a6dc [IMP] hr_work_entry: Display work entry type on resource.calendar
TaskID: 2337204
2020-09-18 10:33:20 +00:00
Yannick Tivisse a453661fd5 [IMP] hr_work_entry: Add stat button to work entries on employee form
TaskID: 2337204
2020-09-18 10:33:20 +00:00
oco-odoo 9383f4c9ac [FIX] l10n_ch: improve the definition of "dédouanement" taxes so that they can be used with tax closing features
Tax closing requires the use of tax_line_id field on the lines it needs to take into account. This new config ensures such a line is created for 100% taxes. An empty, 0-balanced line is also created for the base line, but this is acceptable.

[IMP] l10n_ch: add new 100% tax for investments and other expenses

OPW 2333144

closes odoo/odoo#58014

X-original-commit: 0cc190ad302f98f7ae198166983ac40532d1d5ee
Signed-off-by: oco-odoo <oco-odoo@users.noreply.github.com>
2020-09-18 09:43:04 +00:00
Yannick Vaucher b5b83b60a7 [DOC] l10n_ch: describe structure of ISR ref
The reference with 27 chars and the optical line
are not meant to be human readable. This document
the structure of the ISR Reference. [1]

[1] https://www.raiffeisen.ch/rch/fr/clients-entreprises/trafic-paiements-et-liquidites/debiteurs/bulletin-de-versement-orange.html

closes odoo/odoo#57889

X-original-commit: d5be7ff9331b060c9ff84361b1a422056817f548
Signed-off-by: oco-odoo <oco-odoo@users.noreply.github.com>
2020-09-16 16:18:09 +00:00
Christophe Simonis 65f537439b [FIX] sale_timesheet: do not alter the context of project_id field
The field `project_id` is not defined in the inherited view (from `sale`
module) but by another inherited view from the `sale_project` module.

This cause issues during upgrade where the inherited views can be
applied in a different order.

Moreover, this overwrite of the context is now wrong and unneeded as the
base view already defines a more complete one.
See commit odoo/odoo@ed2e18f3c9.

closes odoo/odoo#58020

X-original-commit: 7acb868ca1eff53ba30028a2ab002b62a9ad33be
Signed-off-by: Christophe Simonis <chs@odoo.com>
2020-09-18 10:27:07 +00:00
Xavier Dubuc 356a5448fe [FIX] mail: fix notification partners display in popover
Handle notification creation in convertData correctly.

task-2324260

closes odoo/odoo#58013

X-original-commit: ca457e990c87cd0405a2b7416a6c8064a9a83e21
Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2020-09-18 09:42:09 +00:00
David Beguin e6567379ed [FIX] website_jitsi: load acls file in manifest
ACLS file was missing in the manifest. This commit adds the file
to the module's manifest and rename the acls according the groups they are
referring to.

Task ID: 2339073

closes odoo/odoo#58012

X-original-commit: 6e83898e17d4aac93ce11b20d589b5a637eb6a8c
Signed-off-by: Xavier Dollé (xdo) <xdo@odoo.com>
2020-09-18 09:41:42 +00:00
Thanh Dodeur cf1339c1bb [FIX] im_livechat: sets thread window z-index above the navbar
Before this commit, the z-index of the thread window was too low
compared to the z-index of the topbar, which prevented users to close
the window on mobile.

task-2312878

closes odoo/odoo#58011

X-original-commit: fadadd90c124197187ffe0013718ac2ffaab3cb8
Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2020-09-18 09:34:29 +00:00
Rémy Voet (ryv) f0ac3db667 [FIX] stock: forecasted info change
In reserved field of stock move, instead of showing expected
date of coming moves without enough quantity,
show "Not Availaible".

closes odoo/odoo#58003

X-original-commit: 54c326e87ef2ed43cc89180c4f53baef0fcd569d
Signed-off-by: Arnold Moyaux <amoyaux@users.noreply.github.com>
Signed-off-by: Rémy Voet <ryv-odoo@users.noreply.github.com>
2020-09-18 08:59:06 +00:00
Raphael Collet b951579d31 [FIX] core: non-stored binary fields should have attachment=False
This prevents some code (in controllers) to retrieve an attachment for a
field that is not stored, as the code only relies on `field.attachment`.
This also makes the field definition more consistent.

closes odoo/odoo#57980

X-original-commit: 7325c3f8c538a8b8c0435963cdda3ced6fe4b324
Signed-off-by: Raphael Collet (rco) <rco@openerp.com>
2020-09-17 16:54:02 +00:00
Simon Genin (ges) 2d98708f92 [FIX] base: x2many edition on res.config.settings form views
Before this, a one2many relation in a settings view would not work.
After the save, the added data in the field would be cleared.

Now, the data is still present.

With the change made to BaseSettingsModel the 'base_settings_tests' need
to only use the res.config.settings as fake data model. (relations towards
other models are still ok though). The test file is therefore altered
to comply to this new rule.

Note that this commit only validates the good behavior on the frontend side,
as a one2many relation towards a res.settings can't be done simply in
python as it is a transient model (forbidden).

Task ID: 2274168

closes odoo/odoo#57401

Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
2020-09-17 14:26:16 +00:00