Commit Graph
152817 Commits
Author SHA1 Message Date
Pierre Paridans 333a4e8733 [FIX] purchase_product_matrix: test breaking in newer Chrome (rounding)
Since (at least) Chrome 94+, some element's sizing computation returns a
slightly different value (in the order of a fraction of a pixel). Sadly,
due to rounding, this difference has an impact on exact sizing
assertion.

Specifically in these drag-and-drop tests, it prevents the sorting from
being triggered as the "mouse" doesn't pass beyond the center of the
destination element (aka. next row).

By setting the position to `bottom`, this commit mitigates this issue by
making sure to pass that boundary, just like a real-user would do.

closes odoo/odoo#92292

X-original-commit: ed798b216063caa299800a56c617277aabdfb8fd
Signed-off-by: Adrien Dieudonné (adr) <adr@odoo.com>
Signed-off-by: Pierre Paridans (app) <app@odoo.com>
2022-05-25 18:01:03 +02:00
Brieuc-brd 255510d10d [IMP] mail: NotificationListItem, css cross-browser compatibility
This commit improves cross-browser compatibility for the `user-select`
property by adapting the css statement to Safari's Webkit syntax.

task-2838625

closes odoo/odoo#90476

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2022-05-25 18:00:58 +02:00
Brieuc-brd 105c9dcad6 [IMP] mail: NotificationGroup remove design inconsistencies in mobile
Prior to this commit, there was no mobile layout adaptation on
`NotificationGroup` and this creates some design inconsistencies with
the other components (`ThreadPreview`, `ThreadNeedactionPreview` and
`NotificationRequest`).

This commit fixes these inconsistencies.

task-2838625

Part-of: odoo/odoo#90476
2022-05-25 18:00:58 +02:00
Brieuc-brd 7841e07a57 [IMP] mail: NotificationGroup, ThreadPreview, remove useless css
Prior to this commit, there was still some unnecessary css that was
creating conflicts since the revamp of mixins in `NotificationListItem`
(commit: 7760c54ec09f93488ccb89d2925b6655fdb0092f).

This commit removes this unnecessary css.

task-2838625

Part-of: odoo/odoo#90476
2022-05-25 18:00:58 +02:00
Brieuc-brd b0081b0233 [REF] mail: NotificationListItem, review and simplify mixins
Part of the overall v16 SCSS optimization/restyle, task-2704984

task-2838625

Part-of: odoo/odoo#90476
2022-05-25 18:00:58 +02:00
Brieuc-brd eaefb789e0 [IMP] web: bs5 utility-classes, add font-size
Define "Bootstrap v5 ready" utility-classes to handle font-size.
These classes definitions can be safely removed after migrating to v5.

task-2838625

Part-of: odoo/odoo#90476
2022-05-25 18:00:57 +02:00
Raphael Collet 6cf8db906f [REF] *: adapt code to new flush API
closes odoo/odoo#87527

Related: odoo/upgrade#3497
Related: odoo/enterprise#26939
Signed-off-by: Raphael Collet <rco@odoo.com>
2022-05-25 18:00:47 +02:00
Raphael Collet 60a1452a40 [REF] base: adapt code to new flush API
Part-of: odoo/odoo#87527
2022-05-25 18:00:47 +02:00
Raphael Collet 32bc28aa66 [IMP] core: better API for flush() and invalidate()
This provides a new API for those operations, in order to make the
distinction between the use cases more explicit.  The former API was
using obscure parameter combinations to correspond to various cases.

In the summary below, `fnames` is an iterable of field names.  If the
parameter is not given, it means "all fields" in the given context.
Note that method recompute() is now mostly private, as it should not be
used in business code.

    # process pending computations and updates
    records.env.flush_all()                # all fields of all models
    records.flush_model(fnames)            # the fields of all records of the model
    records.flush_recordset(fnames)        # the fields of the given records

    # process pending computations, became non-public methods
    records.env._recompute_all()           # all fields of all models
    records._recompute_model(fnames)       # the fields of all records of the model
    records._recompute_recordset(fnames)   # the fields of the given records

    # invalidate the cache of fields
    records.env.invalidate_all()           # all fields of all models
    records.invalidate_model(fnames)       # the fields of all records of the model
    records.invalidate_recordset(fnames)   # the fields of the given records

Part-of: odoo/odoo#87527
2022-05-25 18:00:46 +02:00
mafo-odoo 5ceef05996 [FIX] website_event_questions : set the answers as readonly from attendees list view
The users shouldn't be able to edit the answers from the attendees as they don't know
what questions they are answering to or the type of response expected.

opw-2845524

closes odoo/odoo#92283

X-original-commit: 379f8702a9759cdec533e29f43f15bca74de3b43
Signed-off-by: Nicolas Lempereur (nle) <nle@odoo.com>
Signed-off-by: Fockedey Martin (mafo) <mafo@odoo.com>
2022-05-25 16:59:43 +02:00
Carlos Valverde 5f8a8838f8 [REF] mail: discuss_sidebar_mailbox scss refactoring
Current SCSS is replaced with global Bootstrap classes, in
order to reduce code lines and to increase performance.

Task-2834810

closes odoo/odoo#90174

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2022-05-25 15:53:13 +02:00
Manisha Tulsiyani d2daaf95b4 [FIX] project: fix the traceback when clicking on blocking stat button
Currently, clicking on the blocking stat button throws an error when
there is more the 1 task in blocking stat.

So this commit, fixes the issue by removing the extra comma so that
clicking on blocking stat button doesn't throws an error.

task-2834743

closes odoo/odoo#92257

X-original-commit: cd7b7b02523e0982366f4ca60b6df2448d7e9cb5
Signed-off-by: Laurent Stukkens (ltu) <ltu@odoo.com>
2022-05-25 14:38:11 +02:00
Xavier Morel ddb64e30f1 [FIX] bus: restore _daemonic workaround
In fixing leftover jammy warnings in #92078 I mistakenly updated the
setting of `_daemonic` to the public `daemon`, missing that it was a
dedicated and explicit workaround for Python's checks (cf
d03b4f8675).

closes odoo/odoo#92255

X-original-commit: e35a4d87578a588e33f604638289ca7e7ee02029
Signed-off-by: Xavier Morel (xmo) <xmo@odoo.com>
2022-05-25 14:38:07 +02:00
Sébastien Theys 203ed70789 [IMP] hr_holidays: remove createThreadViewComponent
Use real parent instead (Discuss in this case).

closes odoo/odoo#92253

Related: odoo/enterprise#27757
Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2022-05-25 14:38:00 +02:00
Adrien Widart 4952d150ee [FIX] mrp_subcontracting_dropshipping: use a sub-location
When using a sub-location of "Subcontracing Location" and a dropshipped
component, the purchase order doesn't have any dropship address.

To reproduce the issue:
(Enable debug mode)
1. In Settings, enable "Multi-Step Routes"
2. Create a new location L:
    - Parent: Physical Locations/Subcontracting Location
    - Type: Internal Location
3. In Rules, duplicate the rules of route "Dropship Subcontractor on
Order" and replace "Physical Locations/Subcontracting Location" with L
4. Create two products:
    - P_finished:
        - Type: Storable
        - Vendor: V_subcontractor
    - P_compo:
        - Type: Consumable
        - Vendor: V_compo
        - Routes: Dropship Subcontractor on Order
5. Edit V_subcontractor:
    - Subcontractor Location: L
6. Create a bill of materials:
    - Product: P_finished
    - Type: Subcontracting
    - Subcontractor: V_subcontractor
    - Components: 1 x P_compo
7. Create and confirm a purchase order:
    - Vendor: V_subcontractor
    - Products: 1 x P_finished
8. Open the purchase order linked with P_compo

Error: the Dropship Address is not defined

This address is defined thanks to the value of `partner_id`:
https://github.com/odoo/odoo/blob/aec7fcdb693729f432ae2341c00ef317b65fbcbc/addons/purchase_stock/models/stock_rule.py#L300
However, this key is missing

OPW-2721474

closes odoo/odoo#92249

X-original-commit: 587d8cd0ecb956a5c1b1a32a7abadea3019f848e
Signed-off-by: William Henrotin (whe) <whe@odoo.com>
Signed-off-by: Adrien Widart <awt@odoo.com>
2022-05-25 14:37:56 +02:00
xlu-odoo 37855ec266 [REF] mail: rtcCallParticipantCard, review and simplify scss
Part of the overall v16 SCSS optimization/restyle, task-2704984

task-2842691

closes odoo/odoo#91298

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2022-05-25 14:37:49 +02:00
xlu-odoo 9b98352f5f [IMP] web: bs5 utility-classes, add border-width
Define "Bootstrap v5 ready" utility-classes to handle border-width.
These classes definitions can be safely removed after migrating to v5.

task-2842691

Part-of: odoo/odoo#91298
2022-05-25 14:37:49 +02:00
roen-odoo f8ea8abf2e [FIX] point_of_sale: prevent pos from crashing with archived product
Current behavior:
If you create an order in a PoS then go in the backend and archive
any of the product in the order. If you try to go back in the PoS
session it will crash

Steps to reproduce:
- Open PoS session and create an order with some products
- Leave the session and archive atleast one of these products
- Go back to the session, the session crash

opw-2854018

closes odoo/odoo#92248

X-original-commit: 0a01e0b97f96754ac2ae84da207584b6b6860b0e
Signed-off-by: Masereel Pierre <pim@odoo.com>
Signed-off-by: Engels Robin (roen) <roen@odoo.com>
2022-05-25 13:40:14 +02:00
qsm-odoo db00365ba8 [FIX] base: properly render ProcessingInstruction nodes of views XML
Before this commit, when a view contained a ProcessingInstruction node
`<?XXX YYY?>`, if this was rendered via qweb, it was leading to very
strange results in the form of
```
<<cyfunction ProcessingInstruction at 0x7f538c4902b0>>YYY</<cyfunction ProcessingInstruction at 0x7f538c4902b0>>
```

After this commit, it will lead to "<?XXX YYY?>" being rendered which
will automatically be parsed into an HTML comment if reaching a browser:
```
<!--?XXX YYY?-->
```

Note: this will be rendered only if preserve_comments is set to true.

This was added following [1] which actually led to an issue where some
ProcessingInstruction nodes were rendered by mistake. That was fixed
with [2]. With this commit, that kind of mistake will silently fail
(which may not be good) but will lead to no harm and allows to better
debug such cases (by actually allowing rendering what was in the view).

[1]: https://github.com/odoo/odoo/commit/f67832a3ae0d9a3b5b53129132762e6bc1aed874
[2]: https://github.com/odoo/odoo/commit/de348b3f818adcf2068deb629e612c246a6a4374

closes odoo/odoo#92213

Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2022-05-25 13:40:04 +02:00
Damien Raquet 745143f2a7 [IMP] timesheet_grid: improve timesheet overtime computation
Allows the timesheet overtime computation to be based on the contract
the employee had on the day of the timesheet instead of his current
contract. The employee creation date of the demo data is set in the past
in order to ensure demo data works properly.

task-2652259

closes odoo/odoo#88742

Related: odoo/enterprise#24910
Signed-off-by: Laurent Stukkens (ltu) <ltu@odoo.com>
2022-05-25 13:39:57 +02:00
Valentin Chevalier 930b6860d7 [IMP] payment_stripe: support refund
Allows users of Stripe to refund their customers directly from Odoo.

task-2678763

closes odoo/odoo#92235

Related: odoo/documentation#2086
Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
2022-05-25 12:46:08 +02:00
Alexandre Kühn b65e6e3e16 [FIX] mail: error when editing record after removing followers
Before this commit:

BasicModel.localdata is not getting updated after follower removed

After this commit:

BasicModel.localdata is getting updated after follower removed

Task-2810734

closes odoo/odoo#91928

X-original-commit: c5da228
Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2022-05-25 12:45:59 +02:00
Nemael 6f90029a12 [MOV] im_livechat: turn legacy livechat into odoo modules
Task-2825098

closes odoo/odoo#90842

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2022-05-25 12:45:55 +02:00
thcl-odoo f1e53538dd [FIX] l10n_de: fix uploaded document signature
Current behavior :
While having DIN 5008 (external_layout_din5008) as document's layout, an error
occurs when you try to validate & send a signed document, which has been uploaded

Steps :
- Install Germany - Accounting (l10n_de) and Sign
- Set Document's Layout to DIN 5008 in the Settings
- Go to Sign, then
  - Upload a pdf
  - Insert a sign field
  - Send it
- Try sending the document after signed it

Reason :
sign.request doesn't have name field which is used in DIN 5008 layout [1]

[1] : https://github.com/odoo/odoo/blob/d5b8c26c46b1daf795a6b286af80bb4dad8072ff/addons/l10n_de/report/din5008_report.xml#L107

OPW-2763962

closes odoo/odoo#92218

X-original-commit: c6d9988710e4414f787f85ad652674d0d72223fc
Signed-off-by: Claude Thibault (thcl) <thcl@odoo.com>
Signed-off-by: William André (wan) <wan@odoo.com>
2022-05-25 10:42:51 +02:00
Bastien Dosimont ba988f7e6b [ADD] website_sale_autocomplete : Autocomplete the address fields in website using Google Places.
task-id: 2806842
PR : https://github.com/odoo/odoo/pull/87636

- Implement an 'address.provider' structure, designed to be extendable and support multiple providers (not just google)
- Add a module website_sale_autocompletion, that could be relocated without too much hassle
- Add a module autocompletion_google_places thats adds google functionalities on top of the previous module

closes odoo/odoo#88782

Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2022-05-25 10:42:47 +02:00
Bastien Dosimont 5b5150dfa5 [ADD] website_sale_onsite : Asking to pay/ship at physical store
Task-id : 2791237
PR : https://github.com/odoo/odoo/pull/87636

Allows customers to see a list of delivery carriers as shops in the website page;
A delivery carrier may now be an onsite one, which means the client comes to the corresponding store to pickup the products.

Also adds a payment acquirer based on wire transfer, for paying on site.
The customer can only pay on site if he also comes to pick the product on site

Notes :

- If a warehouse is set on a delivery carrier, the sales order will take it's address.

closes odoo/odoo#87636

Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2022-05-25 09:45:07 +02:00
Benoit Socias fa550fbc76 [FIX] web_editor: allow moving gradient color steps for text colors
Since [1] gradient color steps cannot be moved anymore for the text
foreground and background colors.

This was already modified in [2] but it did not address the case of the
color palettes.

This commit makes sure that the mousedown events are not prevented
within the color palettes that are spawned within the toolbar.

Steps to reproduce:
- Drop a "Text - Image" snippet.
- Select the text header line.
- Apply a custom text gradient.
- Add an intermediary color step.
- Try to move the new color step.
=> Color step could not be moved.

[1]: https://github.com/odoo/odoo/commit/57701b2125f7de4fc543bd9c10642a5c11fa32b8
[2]: https://github.com/odoo/odoo/commit/84fd0b0a1bc1d874e7d6d6ff10b4fb6351f5a1af

task-2862233

closes odoo/odoo#92210

X-original-commit: 50342251895d8397788c3f914a2e7abf5439813f
Signed-off-by: David Monjoie (dmo) <dmo@odoo.com>
Signed-off-by: Benoit Socias (bso) <bso@odoo.com>
2022-05-25 08:48:41 +02:00
Xavier Morel 2abc92afe5 [FIX] bus: deprecated threading attribute (and then some)
Python 3.10 formally deprecated the old threading API. This was missed
in #88803.

Also apply a few other fixes and improvements:

- `Thread._daemonic` is a non-public unchecked internal attribute, use
  the corresponding documented property
- remove unused assignment to unused local
- define `Event` attribute in `__init__` where it belongs
- cleanup spawning on thread to do everything in ctor (permissible
  since 3.3)
- fix import to not rely in implicit sub-module imports

closes odoo/odoo#92187

X-original-commit: 87d087ff7d53394dd991099cf7eac37d1ef68423
Signed-off-by: Vincent Schippefilt (vsc) <vsc@odoo.com>
Signed-off-by: Xavier Morel (xmo) <xmo@odoo.com>
2022-05-25 07:33:49 +02:00
Josse Colpaert d34865f590 [IMP] http: avoid traceback when no postgresql server
This commit tries to avoid a traceback when no postgresql connexion is available.

closes odoo/odoo#92195

X-original-commit: 8199daf4bcba76277fed39554863efa3f1585b20
Signed-off-by: Josse Colpaert <jco@odoo.com>
2022-05-24 23:01:54 +02:00
Christophe Monniez 53d00c7ce5 [IMP] packaging: add a new install type for windows
In order to be able to use #86723 Odoo needs to be used as a local
proxy. With this commit, a new install type `Local Proxy Mode` is added
to the windows installer. When chosen, this install type does not
install the PostgreSQL server and it adds the `hw_l10n_eg_eta` as a
server wide module. It also generate and sets a proxy token.

While at it, the windows packaging is a bit improved:
* the VM now uses the virtio drivers
* the installer size and speed is improved

X-original-commit: 8586f78af36616d8014caf7ec9e44d8f6549d10d
Part-of: odoo/odoo#92195
2022-05-24 23:01:54 +02:00
Christophe Monniez bd3c681b99 [IMP] cli: add a command to generate a proxy token
This commit adds a `genproxytoken` command to generate and set an access
token for the proxy mode in the config file.

X-original-commit: 41a7224b46b3b163789257efd4583ef2d74479ba
Part-of: odoo/odoo#92195
2022-05-24 23:01:54 +02:00
baa d1ab5f549c [ADD] hw_l10n_eg_eta: add proxy-server to electronically sign binaries
For the egyptian localization, it is necessary to electronically sign invoices before sending them to the egyptian tax authority (ETA). This module is a proxy server located on the user's pc which will interact with a secure thumb drive provided by the governement which contains the private key used for signing.

X-original-commit: 71c3f46ead217ac89718aa34d94914452c75e699
Part-of: odoo/odoo#92195
2022-05-24 23:01:53 +02:00
akr 18b2ba6d10 [ADD] l10n_eg_edi_eta: add e-invoicing for egypt localization
X-original-commit: 6fc28ee7807409c90da806475dfed567cc9ccbae
Part-of: odoo/odoo#92195
2022-05-24 23:01:53 +02:00
akr 7b9774b946 [IMP] base: tools: Added json_round to round into json suitable representation
X-original-commit: 415c06362c7ecea9472acf8da2ff75615eedb392
Part-of: odoo/odoo#92195
2022-05-24 23:01:53 +02:00
Alexandre Kühn 3a844d8132 [FIX] mail: proper hover feedback of message action list buttons
Follow-up of https://github.com/odoo/odoo/pull/90893

Improvements of message action list introduced a gap of clickable
part of button between button and the container of buttons.

This commit fixes the issue by removing this gap.

Also fixes an issue where the icon buttons were too small in mobile.

Task-2862366

closes odoo/odoo#92196

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2022-05-24 19:11:10 +02:00
Sébastien Theys f2877f711a [IMP] mail: introduce and clean follower views
Part of task-2810734

closes odoo/odoo#92193

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2022-05-24 19:11:06 +02:00
Sébastien Theys 677eee90a9 [FIX] mail: fix potential issues with notification request
This patch was previously defined globally, but it has been removed at some
point. This absence prevents from running some tests that relied on it when the
current browser value does not match what the test is expecting.

Part of task-2810734

Part-of: odoo/odoo#92193
2022-05-24 19:11:06 +02:00
Demesmaeker 86ff8c6e8f [REF] payment(_*): compute feature fields
Computing the fields instead of storing them allows to implement the
feature for each provider more easily, without needing a migration
script.

task-2841744

closes odoo/odoo#91961

Related: odoo/enterprise#27618
Related: odoo/upgrade#3535
Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
2022-05-24 19:10:55 +02:00
Ipsita Borisagar 70f844e7a1 [IMP] mail: appropriate padding around chatbox search bar
Set appropriate padding around the chatbox search bar and aligned it with the
header content.

Task-2844934

closes odoo/odoo#91900

Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2022-05-24 19:10:48 +02:00
Carlos Valverde f429502d92 [IMP] mail: discuss_sidebar design revamp
This commit improves the design of the `_quickSearch` component, by
adapting its design to the logic of Bootstrap's `form-control` class.

Task-2823729

closes odoo/odoo#88710

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2022-05-24 19:10:44 +02:00
Carlos Valverde 661f303e7c [REF] mail: discuss_sidebar scss refactoring
Current SCSS is replaced with global Bootstrap classes, in
order to reduce code lines and to increase performance.

Task-2823729

Part-of: odoo/odoo#88710
2022-05-24 19:10:44 +02:00
Pierre Paridans f7f07ef6e5 [FIX] web: test breaking in newer Chrome due to rounding issue
Since (at least) Chrome 94+, some element's sizing computation returns a
slightly different value (in the order of a fraction of a pixel). Sadly,
due to rounding, this difference has an impact on exact sizing assertion
(specifically in the list view column sizing tests).

As the difference is *really* small, introducing a margin of error (i.e.
<= 1px) looks reasonnable ; as implemented in this commit.

closes odoo/odoo#92203

Forward-port-of: odoo/odoo#92066
X-original-commit: 5f0353814fc314b75a34a38e700bd7f0797dd18d
Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
Signed-off-by: Pierre Paridans (app) <app@odoo.com>
2022-05-24 18:10:31 +02:00
xlu-odoo e5e997ea96 [REF] mail: rtcCallViewer, review and simplify scss
Part of the overall v16 SCSS optimization/restyle, task-2704984

task-2835842

closes odoo/odoo#90407

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2022-05-24 18:10:26 +02:00
Abdelouahab (abla) 533cf7a984 [FIX] base : add unlink access to partner manager
To reproduce
============

- make sure to have two contacts with same email (duplicate Mitchell for example)
- in 'Contacts', switch to 'list view', selected any two contacts with the checkboxes, go the the 'Action' menu and select 'Merge'
- Click on 'Skip these contacts', then click on 'Deduplicate the other contacts', then check the 'Email' checkbox and click on 'Merge with manual check'.
- click on 'Skip these contacts'

an Access Error is raised

Purpose
=======

Partner Manager doesn't have the unlink access to `partner.merge.line` model, this access wasn't given because it's often unecessary,
but here it's good example where it's needed.

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

to solve the issue we give the unlink access to partner manager.

opw-2851507

closes odoo/odoo#92188

X-original-commit: a6754f3524401c325ae6926ed6984dc1add24f79
Signed-off-by: Nicolas Lempereur (nle) <nle@odoo.com>
Signed-off-by: abla001 <abla@odoo.com>
2022-05-24 17:09:04 +02:00
abd-msyukyu-odoo 5186aeb867 [FIX] mass_mailing: keep body of invalid saved mailing
There was an issue when a mailing save failed: the edited body of the mailing
was lost.

Impacted versions:

  - 15.0 and higher

Steps to reproduce:

  1. Create a mailing "Start from scratch" and add some elements
  2. Do not fill in the subject (or at least one required field)
  3. Save (it should fail because of the empty required field)

Current behavior:

  - The edited template is lost

Expected behavior:

  - Keep the edited template even if the save failed

This commit fixes the problem by properly awaiting the promise _doAction so that
the field's value will be set correctly.

The testing tour `mass_mailing_editor_tour` is updated to check that the
body_arch is kept after a failed save.

This issue was introduced in 15.0 with:
95754eb6a4

Task-2856742

closes odoo/odoo#92186

X-original-commit: bc81178d541587f757d76932449d35ed426699aa
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2022-05-24 17:08:59 +02:00
FrancoisGe 321d687a2f [FIX] web: tests: patchDate use the offset fixed in luxon
Before this commit, patchDate used the machine offset and not the offset
fixed in luxon.

For example:
    Date to Patch = 01-01-2000 10:30:00
    Machine offset = -120 (UTC-2)
    Luxon offset = 360 (UTC+6)

Before:
    Patched Date = 01-01-2000 10:30:00 UTC-2

After:
    Patched Date = 01-01-2000 02:30:00 UTC-2

closes odoo/odoo#91591

Signed-off-by: Bruno Boi <boi@odoo.com>
2022-05-24 17:08:53 +02:00
FrancoisGe 646371b705 [IMP] web: tests: add patchTimeZone in test utils
This commit adds a testing utility function that applies a fixed time
zone to luxon based on an offset to the UTC time zone.

Part-of: odoo/odoo#91591
2022-05-24 17:08:53 +02:00
xlu-odoo e427dad102 [REF] mail: rtcInvitationCard, review and simplify scss
Part of the overall v16 SCSS optimization/restyle, task-2704984

task-2853300

closes odoo/odoo#91537

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2022-05-24 17:08:47 +02:00
Carlos Valverde a5cd14ec3a [REF] mail: discuss_sidebar_category_item scss refactoring
Current SCSS is replaced with global Bootstrap classes, in
order to reduce code lines and to increase performance.

Task-2833744

closes odoo/odoo#88925

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2022-05-24 17:08:44 +02:00
Carlos Valverde 9b7ac5980b [IMP] mail: user-select cross-browser compatibility
This commit improves cross-browser compatibility by adapting the css
statement to Safari's Webkit syntax.

Task-2825261

Part-of: odoo/odoo#88925
2022-05-24 17:08:43 +02:00