Commit Graph
155721 Commits
Author SHA1 Message Date
Lucas Perais c90aec080b [FIX] web: kanban dropdown without toggler
In a kanban arch, have a dropdown that don't have a toggler, just an
explicit menu.

Before this commit, there was a crash.

After this commit, the kanban and the dropdown are correctly rendered.

closes odoo/odoo#104019

X-original-commit: 01418c474cb02455660156cf47822588f0554376
Signed-off-by: Lucas Perais (lpe) <lpe@odoo.com>
2022-10-25 17:16:13 +02:00
Lucas Perais 084012a29b [FIX] web: kanban correct display of field without widget block mode
Have a kanban arch with a field in display full in the kanban card template
```<field name="fieldName" display="full" />```

Before this commit, the class that should endup in the DOM was wrongly computed.
Technically, it was quoted in the owl template as if we passed it to a Component.

After this commit, a field having display="full" is correctly rendered.

X-original-commit: 526eb4f875ec6736d4b76da1fbdbcc99a8c33a9b
Part-of: odoo/odoo#104019
2022-10-25 17:16:13 +02:00
Lucas Perais cb39355ee8 [FIX] web: kanbanRecord honors useViewCompiler API
Before this commit, the usage that KanbanRecord makes of useViewCompiler was faulty in that
it did not respect the hook's API (the last argument is a dict params, not a string).

After this commit, the usage of useViewCompiler by KanbanRecord is correct.

X-original-commit: 8dbf7c88742e4603543005a1d5a158e5e0db2feb
Part-of: odoo/odoo#104019
2022-10-25 17:16:12 +02:00
Xavier Morel e2b3463b5a [IMP] core: formally deprecate __openerp__.py manifests.
`__manifest__.py` was introduced in Odoo 10 and quickly migrated
to (c758e9043a fixed the last holdouts).

Deprecate old manifests. People who need the compatibility can just
add a symlink (or duplicate the file if they're working on FAT or an
old os where core.symlinks can't be set to `true`).

closes odoo/odoo#103952

Signed-off-by: Raphael Collet <rco@odoo.com>
2022-10-25 17:16:09 +02:00
Nicolas (vin) 678c769706 [IMP] l10n_nz: accounts improvement
Improve the NZ localization by enabling the anglo saxon accounting by
default, and adding a new default stock output account.

task id #2993527

closes odoo/odoo#104081

X-original-commit: b1f4b19fa1fd27892430ede363358cf0f17fc796
Signed-off-by: Florian Gilbert (flg) <flg@odoo.com>
Signed-off-by: Nicolas Viseur (vin) <vin@odoo.com>
2022-10-25 16:12:15 +02:00
qsm-odoo d5d138e833 [FIX] web_editor, website: restore control over image gallery height
This commit restores the possibility to control the height of the
image gallery snippet. This was indeed possible in <= 11.0 for all
snippets but it was removed in 12.0 as controlling the height via inner
paddings seemed enough and better (as responsive). For the image gallery
snippet however, this was a big regression as the height is forced to
70% of the current screen height on drop and the images inside are
displayed depending on that forced height. Trying to control via
paddings was not leading to the wanted effect.

This restores the possibility in 14.0 as 12.0 and 13.0 are now
deprecated. This is following a customer issue where not having the
ability to control the height is actually confusing as the user edits
its website across different screens and the height is forced to 70%
height of the screen used at the time of edition. With an height input
in the panel, the confusion is gone.

Note: this also introduces a `forceStyle` parameter for the
`selectStyle` option to be able to force the inline style a widget
controls. Indeed, without it, the system is "smart" and tries not to
force inline style when it is not needed (if you try to force red on
something that is naturally red (thanks to a CSS rule for example), it
won't be forced). Here, this was leading to an issue when trying to set
the height:

- Current height is 700px
- There is some code that forces a min-height on all carousel items so
  that they are the same height. As the gallery image dimensions depend
  on the block forced height (this is how the snippet work), the forced
  min-height are related to that forced height (something like 680px).
- You focus the height input and type 800px
- The same code forces new min-height on all carousel item (something
  like 780px).
- You un-focus the height input, the system tries to re-set 800px (which
  is already set)... it ends up removing it as it thinks that setting
  that height is not needed as the snippet is now "naturally" 800px tall
  thanks to the carousel items' min-heights.

opw-2838774

closes odoo/odoo#104068

X-original-commit: d4d0da320d42093e720c7d440cf6611249c0295a
Signed-off-by: Romain Derie (rde) <rde@odoo.com>
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2022-10-25 16:12:12 +02:00
Tiffany Chang (tic) 7958080940 [FIX] delivery: more UX form view grid fixes
- Get Shipping Weight/Computed weight back onto 1 line (package)
- Unsquish delivery.price.rule table (Shipping Method)

closes odoo/odoo#104067

X-original-commit: 6e8cebfa7659140392621fff710115c0709dae13
Related: odoo/enterprise#33173
Signed-off-by: Steve Van Essche <svs@odoo.com>
Signed-off-by: Tiffany Chang <tic@odoo.com>
2022-10-25 16:12:05 +02:00
Tiffany Chang (tic) ec63d36a77 [FIX] repair: include mandatory group dependent uom field
The group unification done by https://github.com/odoo/odoo/pull/95729
missed adding the often mandatory `product_uom` into some views when
`uom.group_uom` is False. This is the case for repair and blocks the
user from saving its form view in this case.

X-original-commit: 72dff43a4da277b002966f5fd4045b7f9a3855ad
Part-of: odoo/odoo#104067
2022-10-25 16:12:04 +02:00
Damien Bouvy 5a79a2857f [FIX] (various): adapt to grid form views
closes odoo/odoo#102993

X-original-commit: c5a9d95ee13d0ed1d261e803d15d1f17cedfaab6
Signed-off-by: Bouvy Damien (dbo) <dbo@odoo.com>
2022-10-25 16:11:59 +02:00
Maruan Aguerdouh (magm) 31d19afdc8 [FIX] sale_project: clicking on materials button projects updates working
Steps to rerpoduce:

- Create a sales order with a subscription that has also materials, we
need that the service product creates a project when a quotation is made

- Inside this project, we go to Project Updates, click on Materials.

Issue:

Materials is throwing an error, so we cannot check the materials in the
project.

Solution:

After the project changes to OWL we need to change the way we pass the
parameters to the 'action_profitability_items', so it matches the new
changes.

opw-3024598

closes odoo/odoo#104069

X-original-commit: 67731daf264fb17dbde1d360ba5e285cd193b446
Signed-off-by: Xavier <xbo@odoo.com>
2022-10-25 15:03:46 +02:00
william-andre 24adcfe43e [FIX] account: add index on company_id on account.move{,.line}
The company is very often used in the queries because of the record
rules (i.e. `account.account_move_comp_rule`).
Adding the index can help improve queries coming from multiple places.

closes odoo/odoo#104066

X-original-commit: b2f620c59861e76443364f5bab6cade7c8eeca93
Signed-off-by: Nicolas Viseur (vin) <vin@odoo.com>
2022-10-25 15:03:43 +02:00
dhba-odoo f7356f6a19 [FIX] web_editor: mailto url link tools
Before this commit:

When trying to edit a link with mailto, there is an "https://"
added and preventing the link to work successfully

After this commit:

The mailto part of the link is correctly kept as is and the link works.

Task-2961012
Task-2977682

closes odoo/odoo#104064

X-original-commit: a22d6d1859a8f97c3cccdba755392cd13d7eb866
Signed-off-by: David Monjoie (dmo) <dmo@odoo.com>
2022-10-25 15:03:41 +02:00
Andro Gvivradze cea5ee91ca [FIX] website_slides: apply correct domain when viewing ratings
when you open course ratings view, it may show also
some project ratings, if project id is same as course id.
This commit solves the mentioned problem.

Task-2997847

closes odoo/odoo#104057

X-original-commit: 73be65459550470f9839fb4f7c4bb2db65cb37ec
Signed-off-by: Warnon Aurélien (awa) <awa@odoo.com>
2022-10-25 15:03:38 +02:00
ArnaudVerlaine 97d132933f [FIX] l10n_nz: fix the tax report
closes odoo/odoo#103685

X-original-commit: 26d498a638ce78beec7e3d776dd4e76cb1d0ad3f
Signed-off-by: Josse Colpaert <jco@odoo.com>
2022-10-25 15:03:32 +02:00
Brieuc-brd 35e4e913e8 [FIX] web_editor: o_table, fix and adapt border for dark mode
Prior to this commit, the table border color was only applied to the
columns (left and right borders).

This commit applies the border color to all borders and adapt the color
to be consistent with the dark mode.

task-2710677

closes odoo/odoo#103162

X-original-commit: fc8a0653c2e98cbda9c1ff60f3a5ea7347aadd48
Related: odoo/enterprise#32786
Signed-off-by: Adrien Dieudonné (adr) <adr@odoo.com>
Signed-off-by: Pierre Paridans (app) <app@odoo.com>
2022-10-25 15:03:29 +02:00
Brieuc-brd fa2b182dc4 [FIX] mail: MessagingMenuTab, adapt for dark mode
This commit adapts the color of `MessagingMenuTab` for dark mode.

task-2710677

X-original-commit: 2b641f3140b784c2f4c03fd3a76c8fda2e0ed79e
Part-of: odoo/odoo#103162
2022-10-25 15:03:29 +02:00
Brieuc-brd 6c2a50769e [FIX] survey: adapt section rows for dark mode
This commit adapts the colors of section rows for dark mode.

task-2710677

X-original-commit: 9302f920b3d6f31bc2cf24a7ac47a49343cca7c4
Part-of: odoo/odoo#103162
2022-10-25 15:03:29 +02:00
Brieuc-brd 8b1e5a8708 [FIX] website_livechat: adapt visitor banner for dark mode
This commit adapts the `o_VisitorBanner` background for dark mode

task-2710677

X-original-commit: f3c6f50ed17d7fdf3f1286830d5feeb6bc9b0b57
Part-of: odoo/odoo#103162
2022-10-25 15:03:28 +02:00
Brieuc-brd a831ea4301 [FIX] crm_livechat, im_livechat: remove Odoobot avatar transparency
Since the introduction of dark mode, Odoobot's avatar must have a white
background, otherwise it's not visible enough.

This commit fixes this issue.

task-2710677

X-original-commit: 36707e4cf64db231ed796c0244a62309e8eee529
Part-of: odoo/odoo#103162
2022-10-25 15:03:28 +02:00
Brieuc-brd 0df55c3709 [FIX] survey: survey_question_views, adapt color for dark mode
This commit adapts color of `survey_question_views` for the dark mode.

task-2710677

X-original-commit: 08b3e78fab239f914301e8d67e0a1f1bf91bf5bb
Part-of: odoo/odoo#103162
2022-10-25 15:03:28 +02:00
Brieuc-brd 6461020f4c [FIX] hr_holidays: adapt type icons color for dark mode
This commit adapts the color of icons in the Time Off Type section for
the dark mode.

task-2710677

X-original-commit: a5f108c5b9ea1008e2c5b519902bbf6398b02233
Part-of: odoo/odoo#103162
2022-10-25 15:03:27 +02:00
MerlinGuillaume 074bcf779f [FIX] stock: print company in warehouse address in delivery slip
The delivery slip of a receipt picking with a vendor uses the vendor
details as the delivery address

Steps to reproduce:
1. Install Inventory
2. Go to Inventory > Operations > Transfers and create a new transfer
   with:
   - Contact: Azure Interior
   - Operation Type: San Francisco: Receipts
   - Product: Large Cabinet
3. Save the transfer and print the Delivery Slip
4. The delivery address is wrong: it is the partner's address

Solution:
Change the conditions used to print the delivery address and the
warehouse address to print the warehouse address when the delivery
address is the same as the partner address

opw-2992693

closes odoo/odoo#104051

X-original-commit: 99d04c20896dd06b4d083fe6c079a90e840e3ca2
Signed-off-by: William Henrotin (whe) <whe@odoo.com>
Signed-off-by: Guillaume Merlin (megu) <megu@odoo.com>
2022-10-25 14:03:24 +02:00
Tiffany Chang (tic) 85dfd22b49 [IMP] mrp_subcontracting: convert portal to OWL
The subcontracting portal was already mainly written in OWL, but a
couple of small tweaks are needed to match the latest implementation.

Used for reference:
https://github.com/odoo/odoo/blob/b8ef0cc4f22827f684cf3361ee9fd526d27cb72a/addons/project/static/src/project_sharing/project_sharing.js
i.e. the OWL changes to the code that this portal was originally
"inspired" by

closes odoo/odoo#104024

Signed-off-by: Arnold Moyaux (arm) <arm@odoo.com>
2022-10-25 14:03:21 +02:00
Kevin Baptiste 85ee52b71b [IMP] website_hr_recruitment: add JobPosting metadata
Adds the JobPosting[1] metadata on job pages to increase their
discoverability.

[1]: https://schema.org/JobPosting

task-2908478

closes odoo/odoo#103334

Related: odoo/upgrade#3967
Signed-off-by: Kevin Baptiste <kba@odoo.com>
2022-10-25 14:03:08 +02:00
Dylan Kiss (dyki) 9fbbab30b3 [FIX] account: right currency on balance error message
closes odoo/odoo#104018

X-original-commit: 0455207c1b0980131da7001af9561f62e4669295
Signed-off-by: John Laterre (jol) <jol@odoo.com>
2022-10-25 13:03:51 +02:00
william-andre 14699225ff [FIX] account: sync invoice values currency rounding
When syncing the values of the invoice, the balance might need to be
recomputed if some business fields changed.
The detection of the changed fields was flawed because of a missing
rounding, leading to a false positive detection.

Reproduce:
* Using demo data
* Create an invoice in EUR (company USD)
* Add a line for `[E-COM07] Large Cabinet` (price 209.30)
* Select the partner
* Validate the invoice

task-pad

X-original-commit: 9e2b32523ac3975a68796ce534b4f9ee367cbf9e
Part-of: odoo/odoo#104018
2022-10-25 13:03:50 +02:00
niyasraphy 6337efef05 [FIX] stock: correct picking operation report title alignment
closes odoo/odoo#104017

X-original-commit: 43c4d1efb57f62b72bdf15c034d2500a20708ee1
Signed-off-by: Tiffany Chang <tic@odoo.com>
2022-10-25 13:03:46 +02:00
niyasraphy dad4ef4325 [FIX] website_forum: properly make the description field full width
In the forum form view, the description field is not aligned well and
is too compact. This is because of [1] (and related commits of that big
rework), which changed the way form view groups are rendered (using grid
display).

- eLearning -> Forum -> Forums
- Open any record
- In the "Options" tab, there is a description field at the bottom of
  the view

=> The description field is too compact (hard to view and edit the value
   from the field).

In master, this should in fact be changed to not use any group.

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

closes odoo/odoo#103994

X-original-commit: 3dc42aafffc3c41db732a6e52af7956ea1d0da0e
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2022-10-25 13:03:44 +02:00
Victor Feyens ba5678b441 [FIX] base: resurrect lost test coverage
Since #98551, groups have been moved from views fields to xml content
to harmonize the behavior of xml and view groups.

Nevertheless, this reduced the coverage of the test verifying settings user
are always able to open the settings view.

This commit brings back part of that coverage, checking for each application manager
group that the settings view can be opened and saved correctly.

closes odoo/odoo#103989

X-original-commit: bb067f894a5e5511370990b98981e739565d2f2a
Signed-off-by: Victor Feyens (vfe) <vfe@odoo.com>
2022-10-25 13:03:41 +02:00
Achraf (abz) e885885d74 [FIX] web: Allow user to "search more" when adding o2m field
Steps:
  - Open studio in any list view
  - Try to add o2m to the list view
  - Select a related field
  - Click Search more
  - traceback "ViewClass is not defined"

Since https://github.com/odoo/odoo/commit/186a8b31161fc8c75b346ff97f9403dca1ae677e#diff-5e3a43184a718068d966f2ea2eb972fb54b9795a8efa5c8e8cd99ab07a4e2cdfL19
the form, kanban and list view have been removed from the registry.

opw-3020871

closes odoo/odoo#103980

X-original-commit: 19f98f7eb316a49a754eb68ea1352834a1e2a2e6
Signed-off-by: Nicolas Lempereur (nle) <nle@odoo.com>
Signed-off-by: Achraf <abz@odoo.com>
2022-10-25 13:03:39 +02:00
Jose Lopez e408d6e969 [REF] account: allow pass multiple line taxes at once
closes odoo/odoo#98613

closes odoo/odoo#103964

X-original-commit: 2a953ce7e478766175b8fcc069c58edb52737732
Signed-off-by: Laurent Smet <las@odoo.com>
Signed-off-by: William André (wan) <wan@odoo.com>
2022-10-25 13:03:33 +02:00
Laurent Smet 836cde498d [FIX] account: Don't handle the Mexican reconciliation case on not receivable/payable accounts
The "Mexican case" is the following:
When reconciling a journal item having a foreign currency with another one expressed using the company currency, the reconciliation is made on the foreign currency.
This is needed for Mexico since you are free to pay an MXN invoice with an USD payment.
So, you are free to pay an invoice of 120 MXN at a rate at which 120 MXN = 40USD with either a payment of 120 MXN, either a payment of 60 USD at a date in which 120 MXN = 60 USD.

Otherwise, some reconciliations should ignore this behavior. For example, making a cut-off on an invoice using "current assets" accounts. In that case, the invoice has a foreign currency on the product line but not on the cut-off journal entry.
With the current reconciliation, the lines are no longer fully reconciled even they have the same balance.
To handle this case, this commit is restricting the "Mexican case" to the receivable/payable accounts.

closes odoo/odoo#103769

Issue: 3009187
X-original-commit: dd7c473af20499f179cd4661402a0eb209cf1db2
Signed-off-by: Olivier Colson (oco) <oco@odoo.com>
Signed-off-by: Laurent Smet <las@odoo.com>
Signed-off-by: William André (wan) <wan@odoo.com>
2022-10-25 13:03:31 +02:00
Davan CHIEM DAOandJohn Laterre a70157d6ab [ADD] l10n_rs: add serbian accounting
Add Chart of Accounts, Taxes, Tax report,
Balance Sheet and Profit & Loss.

This module provides basic funtionalities
for Serbian accounting.

task-2697970

Doc:
Attached files to task 2352412
https://www.apr.gov.rs/registers/financial-statements/financial-statements-forms/legal-entities-that-apply-ifrs-or-ifrs-for-smes.1707.html
https://www.wtsserbia.com/wp-content/uploads/2019/01/NEW-Chart-of-accounts-Kontni-okvir-FINAL-Srpski-English-Deutsch.xlsx
https://www.paragraf.rs/obrasci/PPPDV.pdf
https://www.paragraf.rs/dokumenti/korisnicko-uputstvo-za-obrazac-popdv.html

closes odoo/odoo#103768

X-original-commit: 3c790e00aad89d9c2581df3729937f69a9cab139
Related: odoo/enterprise#33056
Signed-off-by: Quentin De Paoli <qdp@odoo.com>
Signed-off-by: Olivier Colson (oco) <oco@odoo.com>
Signed-off-by: William André (wan) <wan@odoo.com>
Co-authored-by: John Laterre (jol) <jol@odoo.com>
2022-10-25 13:03:28 +02:00
ArnaudVerlaine dec649721b [IMP] l10n_nz: made GST taxes more user friendly
closes odoo/odoo#103648

Signed-off-by: Florian Gilbert (flg) <flg@odoo.com>
2022-10-25 13:03:23 +02:00
Benoit Socias 63def9c873 [FIX] website: make dynamic snippet compatible with visible on mobile
Both dynamic snippets and visible on mobile use the `d-none` class:
- dynamic snippets activate it by default and only remove it when the
content is ready to be displayed
- visible on mobile makes the section `d-none` when it must be hidden on
mobile and the class is contradicted by another class which is only
taken into account non-mobile

This commit introduces a dedicated class to temporarily hide the dynamic
snippets.

task-2930503

closes odoo/odoo#103637

X-original-commit: 7b3be2f183f53bfcb5f365a2c26127da0702dc15
Related: odoo/upgrade#3980
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2022-10-25 13:03:18 +02:00
Benoit Socias 51a006673c [FIX] website_sale: restore visibility on products snippet
Since [1] the visibility options were removed from the products snippet.

This commit restores the visibility options.

Steps to reproduce:
- Drop a products snippet.
- Select it.
=> The visibility options were not shown.

[1]: https://github.com/odoo/odoo/commit/57a1776c3695b1fec6ffa0b6ec3de59518b8a0a9

task-2930503

X-original-commit: 47172c76f8020abdab2a7bd7bdfece6760b8316f
Part-of: odoo/odoo#103637
2022-10-25 13:03:18 +02:00
Thomas Lefebvre (thle) 6104af8881 [FIX] project: activities clock filter
Steps to reproduce:
    - go to Project app;
    - select a project and create an activity and make it late;
    - edit another project and create an activity for today;
    - edit yet another project and create a future activity;
    - click on the activity clock in the main menu bar (there are one late activity, one today and one in the future);
    - click on "late".

Issue:
    All three projects with activities are shown.

Cause:
    There is no filter provided for this purpose.

Solution:
    Add a filter on activities according to the deadline.

opw-3002778

closes odoo/odoo#103526

Signed-off-by: Laurent Stukkens (ltu) <ltu@odoo.com>
2022-10-25 13:03:15 +02:00
Rémy Voet (ryv) 9ec19fd59f [FIX] barcodes_gs1_nomenclature: fix QUnit test
'Barcode GS1 Parser' test sent RPC to the server (moreover
it was wrong rpc). Fix it.

closes odoo/odoo#102239

Signed-off-by: Steve Van Essche <svs@odoo.com>
2022-10-25 13:03:07 +02:00
miad-odoo 5a65465dde [IMP] crm: add prorated recurring revenue in forecast view
Purpose:
In the Forecast view of the CRM module, when recurring revenues are activated,
they are not shown in the progress bar of each stage of the kanban view. Only
the prorated expected revenue (non-recurring) are shown. In the regular
kanban view, they are shown.

To display them, we extended the CrmKanban view, which already possesses this
behavior, since behaviors relevant to the CrmKanban view are also relevant
to the ForecastKanban view.

As for the forecast kanban cards, when recurring revenues are activated,
they show "regular" recurring revenues instead of "prorated" recurring
revenues. Expected revenues are prorated. This is misleading for users.
The goal is to show prorated recurring revenues instead of just
recurring revenues.

Task-2994146
Task-3006404

closes odoo/odoo#102037

Signed-off-by: Warnon Aurélien (awa) <awa@odoo.com>
2022-10-25 13:03:04 +02:00
Renaud Thiry 0db9c830a9 [FIX] mail: remove suggested recipient
When creating a recipient from composer_suggested_recipient the user
is free to modify the partner form however they want.

This can lead to them inputing data which will create a partner
that does not match the suggested partner data.
In that case the box acts as if the partner was not created.

This aims to remove the partner in such cases and warn the user.

task #3016112

closes odoo/odoo#104005

X-original-commit: 51dd925d3660609b03349c42377e15064461eb3e
Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2022-10-25 12:05:18 +02:00
Pratik Awasthi 26c0641c09 [FIX] project: fix alignment issue project sharing
Before this commit, project sharing form view: the name field was long.

After this commit, name field will be aligned.

task-3010685

closes odoo/odoo#103978

X-original-commit: 74a069226294044fa8901aed6b02bc25c4e11b21
Signed-off-by: Xavier <xbo@odoo.com>
2022-10-25 11:07:15 +02:00
Pratik Awasthi 88c004171e [FIX] hr_timesheet: fix alignment issue in task timesheet
Before this commit, Task form view > timesheets notebook > the remaining hours
field is not correctly aligned due to extra span inside the view.

So in this commit, extra span will be only added if `allow_subtask` is enabled
and `subtask_effective_hours` is greater than 0.

task-3010685

X-original-commit: 6f697a0930bd780da772d2c69abe3e3c4428c5c5
Part-of: odoo/odoo#103978
2022-10-25 11:07:15 +02:00
Pratik Awasthi 382aef698e [FIX] project: translate measure label in burndown chart graph view
Before this commit, Project >  '# of tasks' from the burndown chart was not
translatable to any language

So in this commit, Project >  '# of tasks' from the burndown chart will be
translatable to any language

task-3010685

X-original-commit: 1593436ac4ebbb121d3dc0a9725c74f3d7f0ad39
Part-of: odoo/odoo#103978
2022-10-25 11:07:15 +02:00
Lucas Perais ec86454778 [FIX] web: legacy kanbanRecord kinda supports luxon
The new WOWL Kanban view supports that luxon be used in the archs.
Legacy kanban had a similar support but for moment.js

Obviously, new archs can't work with legacy implementation because of this.
This commit aims at providing some sort of hackish support, only valid in
the transition phase.
At least one use case has popped up, that is, when editing such kanban view with Studio.
In that case, there was a crash, which is fixed with this commit.

closes odoo/odoo#103821

X-original-commit: 14f56b324d241f35b742781424535cecf26a218e
Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
Signed-off-by: Lucas Perais (lpe) <lpe@odoo.com>
2022-10-25 11:07:11 +02:00
lejeune quentin 2ea245d11e [FIX] pos_six: Declare variable into minified timapi.js
In the new version of Odoo you have to declare the
variables in the minified files

closes odoo/odoo#103789

X-original-commit: e08858e5ed02fe74160dabd6a91e1de88640956f
Signed-off-by: Quentin Lejeune (qle) <qle@odoo.com>
2022-10-25 11:07:08 +02:00
Adrien Widart (awt) ef775df746 [FIX] delivery: add a carrier on a delivery
It is not possible for a user to add a carrier directly on a picking if
the invoicing policy of that carrier is set to "Real Cost"

To reproduce the issue:
1. Enable a carrier C
2. Setup a shipping method SM:
    - Carrier: C
    - Invoicing Policy: Real Cost
3. Create and confirm a SO with a product
4. Edit the related picking P:
    - Carrier: SM
5. Validate P

Error: a Validation error is raised "The operation cannot be completed
[...] Model: Sales Order Line (sale.order.line), Field: Description
(name)"

When validating the delivery, we try to create a new SOL with the
shipping cost. We then update its description with the carrier name.
However, since the carrier has been directly added on the picking, the
sale order does not have that information. We should rather get this
information from the delivery.

OPW-2862306

closes odoo/odoo#103986

X-original-commit: 611bd008075f5b8f8080281ae877ada3076a9e7a
Signed-off-by: Adrien Widart <awt@odoo.com>
Signed-off-by: Tiffany Chang <tic@odoo.com>
2022-10-25 09:26:00 +02:00
Pratik Awasthi b2d7580cef [FIX] sale_project: fix selection description for product
Before this commit, while selecting the project and task and project only while
creating a product the description was interchanged

After this commit, the description is perfect

task-2969228

closes odoo/odoo#103985

X-original-commit: 6668d5e5e1111d105f549ae1264eaf34c965caa9
Signed-off-by: Xavier <xbo@odoo.com>
2022-10-25 08:29:48 +02:00
Alexandre Kühn ed6f8c2d57 [IMP] mail: move code from components to models (step 4)
This commit moves some code from components to models,
so that eventually all business code will be in the models.

[IMP] mail: Move code from components to models (DiscussMobileMailboxSelectionItem)
Task-3004221

[IMP] mail: Move code from components to models (ActivityMarkDonePopoverContent)
Task-3004282

[IMP] mail: move code to models (MessageComponent)
Task-3000365

closes odoo/odoo#104003

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2022-10-25 04:05:58 +02:00
Sarika Shekhada 25496bbe21 [FIX] sale_timesheet: fix traceback on project sharing
Before this commit, When we share project in read only access
at that time access error raised when we try to open the task
by shared link due to invalid access on account.move.

So in this commit, check the read access for the account.move and
if the public user has right to read the invoice then allow
to search on move.

task-2889455

closes odoo/odoo#104001

X-original-commit: 1d6474f58056be3515e5023c26dcef56b8dddc91
Signed-off-by: Laurent Stukkens (ltu) <ltu@odoo.com>
2022-10-24 21:52:06 +02:00
FrancoisGe 7870375962 [FIX] web: wrong style for many2one_avatar external button
Before this commit, fields using Many2OneField in their template (for
example, the many2one_avatar field) had a wrong style for the external
button (the arrow on the right to open the record in form view).

closes odoo/odoo#103981

X-original-commit: c63493ab7b19a238304b2d7791c28bf1a52c0d2f
Signed-off-by: Luca Vitali <luvi@odoo.com>
2022-10-24 18:59:33 +02:00