Commit Graph
3090 Commits
Author SHA1 Message Date
Khalid El Haji 5dee24c670 [CLA] signature for khalidelhaji
closes odoo/odoo#68558

X-original-commit: 610e1cea4b158c9fa28e63ab33cf7c7fa76873bf
Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2021-03-30 16:40:03 +00:00
Qaidjohar 163f7acb2c [CLA] signature for QaidjoharBarbhaya
closes odoo/odoo#68551

X-original-commit: 6fa6d67531408ce51a3a762575f5c576fe916866
Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2021-03-30 13:21:14 +00:00
Ossi Mantylahti 5d250cdef3 [CLA] signature for ossimantylahti
closes odoo/odoo#68544

X-original-commit: f9cdaa3deef305ce45aba7e9102ac23ef6f5fac1
Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2021-03-30 12:37:21 +00:00
Bilal el Attar ef9431aae5 [CLA] Signature for bilalattar
closes odoo/odoo#68531

X-original-commit: a281aafecb043fb935b69f2f7f2c13fdf41cae62
Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2021-03-30 09:58:23 +00:00
Mohammad M. Shahbazi fcdd8a1fa2 [CLA] signed by mshahbazi
closes odoo/odoo#68525

X-original-commit: 217848a3e3c8cd052473f0b1a4d2fc038e40ac4f
Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2021-03-30 09:11:12 +00:00
abharos 55b5918803 [CLA] signature for abharos
closes odoo/odoo#68524

X-original-commit: d623afe03571007f98c2b7c29412775f79f53447
Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
Signed-off-by: abharos <abharos@users.noreply.github.com>
2021-03-30 09:10:49 +00:00
geraldaistleitner 16a5666099 [CLA] signature for geraldaistleitner
closes odoo/odoo#68522

X-original-commit: 3aeeaa40fcf5a89619f3ecd886377f46b9df0364
Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2021-03-30 09:10:12 +00:00
Pablo Fuentes 096629d669 [CLA] Studio73 signature
closes odoo/odoo#68518

X-original-commit: 994032cc29e715627bd80ff0cd529581cb950132
Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2021-03-30 08:19:12 +00:00
Marc Kolly 8ef8ac5e36 [CLA] signature for makuser
closes odoo/odoo#67725

Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2021-03-11 20:25:15 +00:00
YOGRAJ TANDELandMohammed Shekha 7da9c296eb [ADD] calendar,lunch,web: weekly recurrent widget
with this commit we adding weekly recurrent widget, currently proeject and
calendar shows boolean for each day vertically but with this widget we displays
week days and its boolean horizontally.

Here widget will display first day as per language's week_start field, also we
adds FieldDependencies on custom widget and consider those FieldDependencies
while processing view node in basic_view.js

We add support of registry to contain owl custom widgets and add support
of rendering owl custom widgets.

Also with this commit we removes fields like sun, mon, tue etc. from view and
instead use "web_weekly_recurrence" custom widget to display boolean for each
week day.

Co-authored-by: Mohammed Shekha <msh@odoo.com>
2021-03-26 12:25:44 +00:00
Barad Mahendra 9a57330d06 [IMP] web: display the default label next to the icon in state_selection
Purpose of the commit is to display the default label next to the icon
for state_selection widget in list view.
also that widget support the hide_label option to hide the label in
state_selection widget of the list view.

Related Ent PR: odoo/enterprise#16559

closes odoo/odoo#66589

Taskid: 2451287
Related: odoo/upgrade#2195
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2021-03-22 08:42:04 +00:00
Aaron Bohy d613f97320 [CLA] add kmagusiak
X-original-commit: 3fb99e44164b4bfe79ba7ba61efff39c45006cac
2021-03-24 14:38:11 +00:00
Martin Trigaux 13dd40ea55 [IMP] doc: modernize NGINX SSL recommandations
TLS 1 and 1.1 are not recommended anymore
This configuration was generated with Mozilla SSL Configuration
Generator (https://ssl-config.mozilla.org) with a fairly conservative
approach:
- nginx 1.10.3, OpenSSL 1.1.0l (Debian Stretch)
- Supports Firefox 27, Android 4.4.2, Chrome 31, Edge, IE 11 on
  Windows 7, Java 8u31, OpenSSL 1.0.1, Opera 20, and Safari 9

Fixes odoo/odoo#68002

closes odoo/odoo#68227

X-original-commit: ece5778c205765e5e5b1a3fd86e6f031bf25c12d
Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2021-03-23 10:14:16 +00:00
Denis Mudarisov a4cc5cef6e [CLA] add IT Projects Labs
closes odoo/odoo#68202

X-original-commit: 1335d16c8dddb0f89d90d2f71e50250dc0b395ff
Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com>
2021-03-22 13:28:27 +00:00
dominikkertys 4577b10881 [CLA] add 26HOUSE
X-original-commit: 6e2e88c518e8efa30e848feed92a090c56ad4f61
2021-03-19 16:03:15 +00:00
Veronika Kotovich 43d70a670a [FIX] mail: prepare mail header References to avoid line breaks
When Odoo routes incoming emails it is looking for existing messages in
database using Message Ids which are coming from e-mail header
References.

In Odoo the message id looks pretty long like

    743570479975566.1584086032.522504091262817-openerp-message-notify@ip-172-31-45-160

As it declared in [RFC2822] long header bodies can be "folded" using
CRLF+WSP. And some mail clients do that very thing. They split
References header body which contains Message Ids by "\n ".  The example
of mail client where it can be reproduced is apps.rackspace.com We
created Sales Order in Odoo, sent this quotation to the client email. He
replied with e-mail, and this email can't be matched with any existing
message id and as result it's not attached to the Sales Order.

RFC2882: https://tools.ietf.org/html/rfc2822#section-2.2.3

closes odoo/odoo#68077

X-original-commit: 559f6cf62711ad45557eddec3af7c66616724eb5
Signed-off-by: Julien Castiaux <Julien00859@users.noreply.github.com>
2021-03-18 12:10:03 +00:00
Aaron Bohy 6418a55fe4 [IMP] web: patch/unpatch: allow to re-apply a patch
In tests, we might want to disable a specific patch for a specific
test (e.g. to remove a monkey patch done when another addon is
installed, to test the behavior of the current addon).

Before this commit, it was possible to unpatch at the beginning of
the test, but we couldn't re-patch when the test was over.

Feature required by task~2392303
2021-03-18 09:59:53 +00:00
Tymoteusz Motylewski 24d9b5990e [CLA] Sign contributor license tmotyl
closes odoo/odoo#67717

Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2021-03-11 18:06:30 +00:00
Aaron Bohy cd367a3967 [FIX] web: FieldMany2Many: link/unlink options
Commit [1] altered the way the FieldMany2Many behaves with respect
to 'create' and 'delete' options. Indeed, for many2many fields,
adding or removing records doesn't mean "creating" or "deleting"
records, as it is only about adding/removing records to/from a
relation. This is completely fine and correct.

Unfortunately, a feature has been lost in the process: it is no
longer possible to state that a many2many field should be editable
but should not allow to add (or remove) record to the relation.

This commit fixes the issue by adding two new options: 'link' and
'unlink' for that purpose.

[1] https://github.com/odoo/odoo/commit/c98579d25af01c14df4baf57fb4652f3e7469096

opw~2466213

closes odoo/odoo#67495

X-original-commit: df44e65bbbba55a7ee2224ad5b4f13248a39423a
Signed-off-by: Lucas Perais (lpe) <lpe@odoo.com>
Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
2021-03-08 16:37:38 +00:00
Aaron Bohy 469dd4cad9 [FIX] web: correctly edit Many2ManyCheckboxes with 100+ values
The Many2ManyCheckboxes widget displays all values that could be
in the many2many relation, with a checkbox indicating whether each
value is in the relation or not. It is designed to be set on fields
where the comodel contains a few records (typically, we don't want
to see dozens of checkboxes in the form view). This widget shouldn't
be used on many2manys with a large comodel, as we have better tools
to handle them (like a tree view).

We deal with extreme cases (when the widget is, by mistake,  set on
a field where the comodel is huge) by using the name_search limit
of 100: at most 100 checkboxes are displayed.

Before this commit, this extreme situation wasn't correctly handled.
If there were in the relation records that weren't displayed
(because they weren't inside the 100 limit), then, editing the value
by (un)selecting a checkbox would automatically remove all non
displayed values from the relation.

This commit ensures that we keep in the relation all values that
aren't displayed.

Issue spotted when working on opw~2439041

closes odoo/odoo#67400

X-original-commit: 9e9d3aa78c42ad4ffca3b56a28382ed84078cde3
Signed-off-by: Géry Debongnie (ged) <ged@openerp.com>
Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
2021-03-05 16:59:25 +00:00
Martin Trigaux cc1780cdbc [ADD] doc: section on Escaping vs Sanitizing
Source https://github.com/odoo/enterprise/pull/15297#issuecomment-768985663

closes odoo/odoo#67381

X-original-commit: d767e01ca02b702dbef22451fc1c72c996192708
Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2021-03-05 14:58:09 +00:00
Carlos Roca 1ff825c012 [CLA] update Tecnativa signature
closes odoo/odoo#67262

X-original-commit: 42291b957ba4f33640c99097be73f16aa9e06d47
Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2021-03-04 15:02:06 +00:00
Ronald Portier 81c3974a01 [CLA] Add Danny de Jong to Therp CLA
closes odoo/odoo#67073

Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2021-03-02 14:43:35 +00:00
Damien Abeloos 67c7460be1 [IMP] web: add an initial_date context key for CalendarView
* This feature will be useful when the user needs to "reschedule" an event.
  It is more convenient to open the CalendarView around the original start date of the
  event instead of "Today"

* Add a test to ensure that the context key is correctly passed to the view as the initialDate

Task ID : 2410217
PR : https://github.com/odoo/odoo/pull/63370
2021-03-03 12:25:06 +00:00
Michael Mattiello (mcm)andged-odoo 7086488064 [REF] web, *: remove patchMixin + imp utils.patch
* hr, hr_holidays, im_livechat, mail, snailmail, website,
  website_livechat

This commit removes `patchMixin` and improve `utils.patch`.
`utils.patch` now supports native classes and has a new parameter
used to patch class members.

`utils.patch` is now used everywhere `patchMixin` was and it must
be used to patch classes.

closes odoo/odoo#65967

Related: odoo/enterprise#16278
Signed-off-by: Géry Debongnie (ged) <ged@openerp.com>
Co-authored-by: ged-odoo <ged@odoo.com>
2021-02-26 10:39:21 +00:00
nikohoseki 6afa6f7203 [CLA] signature for NikoHoseki
closes odoo/odoo#66898

X-original-commit: ac102028a22e70f8a653f8692f4de0357ab8af44
Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2021-02-26 08:45:12 +00:00
Csaba Tóth dc276a569b [CLA] Update Online ERP Hungary Kft. CLA
Add new members

closes odoo/odoo#66871

X-original-commit: 3d7663616c3524354d4bda03609b457b31d0e23c
Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2021-02-25 16:18:52 +00:00
JordiMForgeFlow cf2e73c402 [CLA] Update ForgeFlow
closes odoo/odoo#66535

X-original-commit: 7f8ff150992cd09ad4fe6e1259b3206cb99e2c23
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2021-02-19 13:12:10 +00:00
luz paz c9e29e5917 [FIX] *: correct typos
Various user facing an non-user-facing typos
Found via `codespell`

Closes odoo/odoo#65648

Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2021-02-19 13:20:48 +00:00
luz paz a03af96193 [CLA] signature for luzpaz 2021-02-19 13:20:23 +00:00
Éloi Rivard f8d865499b Added CLA email 2021-01-27 13:54:19 +00:00
huakkai ce2081ccb1 [CLA] huakkai signs Odoo's CLA
closes odoo/odoo#66149

X-original-commit: 4928ea9f7a35d1d2f00cf07300a90bab7bb3fb9a
Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2021-02-15 10:29:45 +00:00
Simon Genin (ges)andFrancois 396fec3929 [ADD] cli: add a command to generate tsconfig
With the new native JS module system, we have a lot of new features for
the developer: autocompletion, docstrings, ...

However, it does not work across modules: if a JS file in
/addons/stock/static/src/some_file.js want to import a file in web, say
/addons/web/static/src/blabla.js, we will need to use a statement like
this:

import { something } from '@web/blabla';

Obviously, there is no automatic way for IDEs to know that '@web' should
map to 'addons/web'.

This is why we propose to use a tsconfig.json that defines the mapping
between modules and their paths.  This is not mandatory, and only
affects those developers that work commonly in JS.

Part of PR 63177

Co-authored-by: Francois (fge) <fge@odoo.com>
2021-02-15 10:18:11 +01:00
Simon Genin (ges)andFrancois 929fec3a54 [IMP] base: add support for native JS modules
Because of the way Odoo works at its core, we do not know before hand
which files will be loaded as an asset in the browser, because it
depends on the installed Odoo addons.  This is why it is historically
difficult to integrate Odoo with standard JS tooling, and this is why
Odoo needs to use a custom javascript module system.

However, there is a way to use native JS modules (and gain all the
benefits from it: IDE autocompletion, ease of refactoring, intellisense,
...): we can write JS as native JS modules, but convert them at runtime
into Odoo custom modules. This is exactly the strategy applied by this
PR.

This has a lot of benefits, but there is a downside: we can no longer
serve statically JS files in debug=assets.  This would be a dealbreaker,
if we did not have sourcemaps (implemented in the next commit).

This commit introduces the python code that will transpile native JS
modules into odoo JS modules.

Task ID: 2414902
PR: 63177

Co-authored-by: Francois (fge) <fge@odoo.com>
2021-02-15 10:18:11 +01:00
Csaba Tóth 4c91e895a9 Sign the Odoo CLA by Online ERP Hungary Kft.
closes odoo/odoo#65816

X-original-commit: 054f3a53c9335bee0a09d4b375e1620292cf0601
Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2021-02-09 13:19:42 +00:00
Iago Alonso ea747950a9 [CLA] signature for os-ia
closes odoo/odoo#65632

X-original-commit: 4a08c12aa04f7131b9c090e71fba6c2b3775932d
Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2021-02-05 14:52:02 +00:00
Anna Janiszewska 224f8d9be7 [CLA] Add Anna Janiszewska to camptocamp CLA
closes odoo/odoo#65299

X-original-commit: 72c5d63eb13b0dcb4284a28962d76a147524f65a
Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2021-01-29 17:52:06 +00:00
msteinfeld 8eb16c7f43 [CLA] Individual signature for Maik Steinfeld
closes odoo/odoo#65289

X-original-commit: d5e503f02f94ea4125010f09b1877040c8fc68b3
Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2021-01-29 16:12:46 +00:00
Dario Bösch 389c8ecdef [CLA] simpit GmbH
closes odoo/odoo#65287

X-original-commit: b7467ce8fa0c497c4b7bf66345577d9846397293
Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2021-01-29 16:11:19 +00:00
Laurent Stukkens (LTU) 218ca8dbf7 [MOV] documentation: move grid view documentation from enterprise
As we were introducing changes in web_grid (enterprise) we realized that no documentation
on the grid view was yet available in the community documentation. This commit moves the
the existing documentation from enterprise to the community doc repository and adds the
new attributes introduced in the realte enterprise PR.

task-2271628
Closes #65081

Related: odoo/enterprise#12127
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2021-01-27 20:55:22 +00:00
Julien Castiaux 552ef0c2a6 [FIX] doc: Missing method docstring of Command
The `:autodoc:` does not work for classmethods in enums with sphinx
v1.7.0, the documentation has been copy/pasted in order to temporary
solve the problem.

See sphinx-doc/sphinx#7586

closes odoo/odoo#64690

Signed-off-by: Julien Castiaux <Julien00859@users.noreply.github.com>
2021-01-25 09:30:26 +00:00
qsm-odoo f7d9d8eaac [REF] doc: update theme & website tutorial + doc
This fixes some details and reorganize the order of the tutorial. It
also introduces a more detailed section for the SCSS customization. A
very detailed and updated version of this tutorial is being made for the
14.0 version and later.

task-2440442

closes odoo/odoo#64700

X-original-commit: 08d44d444490713ca39618a67f441bbd84b8b900
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2021-01-18 15:34:48 +00:00
ioFilippo f7407ab2df [CLA] Signed CLA for Rapsodoo
closes odoo/odoo#64685

X-original-commit: 70fd8f68da90b4b66674c56988c0cd73ed4f769c
Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2021-01-18 12:41:17 +00:00
Jannik Becher bd9c96e188 [CLA] Sign CLA for Jannik Becher
closes odoo/odoo#64662

X-original-commit: ce4335547aa60ddfe74c1e8247b6d07864ac0088
Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2021-01-18 10:18:21 +00:00
Jorge Luis Alfonso 71afa2863e [CLA] signature for jlalfonso21
closes odoo/odoo#64292

Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2021-01-18 09:03:50 +00:00
Temur 52010c6666 [CLA] sign tvibliani
closes odoo/odoo#63969

Manual forward-port of 755bdbeb04a769bf1fcf9157f74d6a5deb4ad48d

closes odoo/odoo#64525

X-original-commit: 60457e78cf4900a9955e8ab9cdf092c83fdb7e38
Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2021-01-14 09:55:11 +00:00
Ibrahima Gueye e95b9c068f [CLA] update optesis CCLA
Remove Abdel Rahaman TOUKOUROU

closes odoo/odoo#64407

X-original-commit: 802ee59a8d458ffb85455c547ceb89c185a5fb64
Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2021-01-12 13:16:18 +00:00
erik-bzcl 90e721d9af [CLA] Corporate signature for Bizi Software SRL
closes odoo/odoo#64374

X-original-commit: f29c6b1ffcbcfdf12d848df8ee427cc11d2df123
Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2021-01-12 08:28:51 +00:00
David James a2cb36e854 [CLA] signed by davejames
closes odoo/odoo#64289

X-original-commit: 30a0a5ced3a90c73fbec322a447e741b4b677ca2
Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2021-01-08 17:36:18 +00:00
张文广 44ca035641 [CLA] Zhang WenGuang signs personal CLA
closes odoo/odoo#64287

X-original-commit: 640610a39b7acc6a2840443e895266e8a64320a6
Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2021-01-08 17:31:11 +00:00