Commit Graph
157485 Commits
Author SHA1 Message Date
Florian Charlier 24ef92f66f [FIX] survey: fix handleSurveyError
Due to changes in errorService added in dd6f103b, a traceback was shown due to
our (handled) "unhandled" rejected promise that wasn't an "Error" object.

Using the original error works now for our handleSurveyError function. The only
additional requirement was to restore the buttons of the dialog when saving is
blocked due to our validation process.

Task-3128957

closes odoo/odoo#109648

Signed-off-by: Warnon Aurélien (awa) <awa@odoo.com>
2023-01-12 14:34:48 +01:00
Dmytro Lazariev ed99208b6c [CLA] signature for DVLazariev
closes odoo/odoo#109741

X-original-commit: b18a2e7f70683bf0f79709c1284197278a432a5b
Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2023-01-12 12:27:18 +01:00
Abdelouahab (abla) 798b4f76c4 [FIX] mail: reading property from undefined
To Reproduce
============
- add event on calendar
- edit the event and remove the user from participants list and add another one.
- save the record -> traceback

Problem
=======
we try to read `hasReadAccess` from `this.followedThread` that is `null` in this case.

Solution
========
check if `this.followedThread` is `null` or not

opw-3126545

closes odoo/odoo#109721

X-original-commit: f9a23af63bb5fe882f0d42f06ef1406910836115
Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2023-01-12 12:27:15 +01:00
Romain Derie 553703cc02 [FIX] web_editor: fix full link url of the link preview
Since its introduction with [1], there is an issue about the full link
URL which is never set.
The preview has 2 URL elements:
- The main one, for which the text will either be the URL itself for
  external website or the page title for internal pages.
- The "full one", which will simply be the full URL for internal pages.
  It's basically the text of the "main one" which is moved here when
  there is a title to display.

But the "full one"'s url was never set, always being "#", meaning that
when you click on the title you land on the correct page but when you
click on the URL itself you don't go to that page.

[1]: https://github.com/odoo/odoo/commit/8fcf930a6b6b7ffb0965b0a689c7a3117962ce7e

task-3129267

closes odoo/odoo#109716

X-original-commit: 015c9bf111899b2a86c39b24cd1ec2d4e5278204
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
Signed-off-by: Romain Derie (rde) <rde@odoo.com>
2023-01-12 12:27:13 +01:00
Jordan D. (Joda) a57b214c7d [FIX] tools: add SQL comparaison to fix module translation
When installing both documents and fleet and then, add a translation to
the database. Both fleet and document will be translated the same way.
This is due to the fact that both of them share a lot of similar value
inside of the PSQL database.

opw-3120320

closes odoo/odoo#109700

X-original-commit: fff53f845398ee0f8632cf7cb392f108388f3dc4
Signed-off-by: Raphael Collet <rco@odoo.com>
Signed-off-by: Nicolas Lempereur (nle) <nle@odoo.com>
2023-01-12 12:27:10 +01:00
momegahed 936209e4df [FIX] l10n_eg_edi_eta: egyptian address missing city
Steps to reproduce:

- install l10n_eg_edi_eta and website_sale modules
- add any product in cart
- try to add an egyptian address on checkout
- it fails with an internal server error

Bug:

the `address_format` for `egypt` doesn't have a city field while it is
actually important for egypt addresses and it is also required in the
l10n

Fix:

add the city field

OPW-3098006

closes odoo/odoo#109577

X-original-commit: f1e9635ee7e086582c5e0ffbac6c52e2f62937a0
Signed-off-by: Olivier Colson (oco) <oco@odoo.com>
2023-01-12 12:27:04 +01:00
Goffin Simon f864ac9d23 [FIX] hr_attendance: Function write must return True
The function write must return True when it ends.

opw:3121809

closes odoo/odoo#109713

X-original-commit: 6adeabf6445c72e7ddfd540ceaea8c01473e062d
Signed-off-by: Nicolas Lempereur (nle) <nle@odoo.com>
Signed-off-by: Simon Goffin <sig@odoo.com>
2023-01-12 11:09:40 +01:00
Jason Au Yeung 6a174c8eb1 [FIX] web_editor: only bind cut/copy event to editor
Before this commit, cut/copy operation in non-html fields will trigger the _onClipboardCut/_onClipboardCopy handler as long as there is html field in the same form view.

This will cause cut/copy fail when using chrome or edge.

Only bind cut/copy event to html field as these event handlers are not related to non-html fields.

closes odoo/odoo#109624

X-original-commit: 494f8300f848cf258ba8ba0132af104346083b3e
Signed-off-by: David Monjoie (dmo) <dmo@odoo.com>
2023-01-12 11:09:31 +01:00
oco-odoo c34f124f5a [IMP] account: introduce a second hidden "Report Dates" filter, for audit of monodate reports
This is used together with the audit features defined in account_reports (and fixed in the enterprise counterpart of this branch).

closes odoo/odoo#109521

X-original-commit: 5b8686526e0faeee38cac6e2017a8f840aac041c
Related: odoo/enterprise#35616
Signed-off-by: Laurent Smet <las@odoo.com>
Signed-off-by: Olivier Colson (oco) <oco@odoo.com>
2023-01-12 11:09:29 +01:00
Jigar Vaghela 3b62a4f8ef [IMP] l10n_in*: add .pot files
closes odoo/odoo#109396

Signed-off-by: Quentin De Paoli <qdp@odoo.com>
Signed-off-by: Josse Colpaert <jco@odoo.com>
2023-01-12 11:09:23 +01:00
bat-odoo 7269e6a0c4 [IMP] l10n_in{_edi}: improvements in UX
In this commit, the following points are covered

- updated error messages
- remove renaming the `Customer Invoices` journal name
- updated Fiscal Opening Date and Year End for Indian localization
- updated Indian E-Invoicing report and settings setup

Part-of: odoo/odoo#109396
2023-01-12 11:09:23 +01:00
bat-odoo 3a6cdf5110 [IMP] base_vat: use the company's country vat label instead of 'VAT'
In this commit, set the company's country vat label instead of 'VAT' in the error
message if the vat label is not available in the company's country then the default
value is 'Tax ID'.

Part-of: odoo/odoo#109396
2023-01-12 11:09:23 +01:00
hapa-odoo 429b001cd4 [ADD] l10n_in_tcs_tds: added a new module for Tax report TCS/TDS in India.
In this commit, I have added a new module for TCS/TDS Tax Report in India.
It will load TCS/TDS-related taxes for an Indian Company.
Added a new character field PAN on the partner.
Added post_init_hook to load these taxes in current company.

closes odoo/odoo#109338

X-original-commit: 367c32684e572dbc9413dc4bc2ba30b14f730541
Signed-off-by: Quentin De Paoli <qdp@odoo.com>
Signed-off-by: Josse Colpaert <jco@odoo.com>
2023-01-12 11:09:19 +01:00
Robert Coleman 8887d3273d [CLA] individual - rjocoleman
closes odoo/odoo#109718

X-original-commit: 0f1785dd2a24c630ffa2084a52e9d9a68ece9ba5
Signed-off-by: Josse Colpaert <jco@odoo.com>
2023-01-12 10:05:55 +01:00
Aaron Bohy 509132f46b [FIX] crm,web: no crash when quickly d&d records in pipeline
Before this commit, there was a crash if you quickly dragged&dropped
twice the same record from a column to another (i.e. before the
first write was done). This was because we couldn't find (yet) the
record from the column we were dragging it.

This commit prevent the crash from happening.

closes odoo/odoo#109694

X-original-commit: b57238b577342d9a4c824b90eb7fa2a4b8e00a8e
Signed-off-by: Géry Debongnie <ged@odoo.com>
Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
2023-01-12 10:05:49 +01:00
det c0ea4eb38b [IMP] account_accountant: bank statement smartbutton
When a user imports a bank statement, reconciles some moves,.. later on,
he does  not  have the ability to easely  go  back to the bank statement
and see the others items / continue his work.

This commit enable the user to move from the journal entry to the bank
statement reconciliation widget where he will see all items (if any).

task-id: 3116184
[community](https://github.com/odoo/odoo/pull/109039)
[enterprise](https://github.com/odoo/enterprise/pull/35580)

closes odoo/odoo#109039

Related: odoo/enterprise#35580
Signed-off-by: Brice Bartoletti (bib) <bib@odoo.com>
2023-01-12 10:05:44 +01:00
Demesmaeker f3a3e34150 [FIX] payment: allow other currencies in tests
Following 90af85c2e4, the management of the compatible providers
was modified by their available currency. Some tests weren't adapted to that change.

closes odoo/odoo#109665

Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
2023-01-12 09:00:44 +01:00
Adrien Widart (awt) 09f71c0809 [FIX] stock,mrp: redirect byproducts with capacity constraints
When redirecting the SML of byproducts, the capacity constraints of
the locations are not considered.

To reproduce the issue:
1. In Settings, enable:
   - By-Products
   - Storage Locations
   - Storage Categories
2. Create three storable products P01, P02, P_comp
3. Create a storage category SG:
   - Max Weight: 1000
   - Capacity by Products:
     - 2 x P02
4. Create two locations L01, L02:
   - Parent Location: WH/Stock
   - Storage Category: SG
5. Create a putaway rule:
   - From: WH/Stock
   - Product: P02
   - To: WH/Stock
   - Having Category: SG
6. Create a BoM:
   - Product: P01
   - Components: 1 x P_compo
   - By-products: 1 x P02
7. Update on hand qty of P02:
   - 1 x P02 at L01
8. Create and confirm a MO with 2 x P01
9. Set the producing qty to 2
10. Open the detailed operations of P02

Error: The destination location is L01, this would break the
capacity constraint. The location should be L02

When setting the producing qty, we also set the done quantities of
the finished moves and we redirect them thanks to the putaway rules:
https://github.com/odoo/odoo/blob/cc6e31efe6fdd9dee16de1565afe9e1b502de45d/addons/stock/models/stock_move.py#L1885-L1888
However, the SML created only has the `qty_done` defined and, when
applying the putaway rules, we consider the `product_uom_qty` which
is equal to 0 in such a case.

So, when trying to redirect the SML of P02, we check if the capacity
constraint of L01 would be exceeded with the quantity of the SML.
But, as explained above, that quantity will be 0, so we conclude
that the capacity constraint is ok and we return L01 as best solution.

This is the reason why this commit suggests the use of the maximum
between done quantity and reserved quantity. This logic is already
used in the putaway application process, when we check the forecasted
quantity by location:
https://github.com/odoo/odoo/blob/a217ba27600c64c9104f8c1f003afd74ad06bd05/addons/stock/models/stock_location.py#L297-L301

OPW-3100322

closes odoo/odoo#109669

X-original-commit: 4ee8f974f993d2bbea7d9fc00779ebb1c1fa047d
Signed-off-by: William Henrotin (whe) <whe@odoo.com>
Signed-off-by: Adrien Widart <awt@odoo.com>
2023-01-12 08:02:48 +01:00
William Henrotin 0149a26c62 [FIX] mrp: byproducts follow putaway rules
Before this commit, the byproduct and putaway feature do not work
together. More specifically, changing the quantity to produce on a
manufacturing order will create automatically a byproduct move line (or
update the existing one with the new quantity) but never look for a
putaway rule to apply.

This commit makes use of `_set_quantity_done()` method on `stock.move`
that *do* call the putaway strategy mechanism

X-original-commit: d4a968412e68cc9da3ec2d9725caa90830287c48
Part-of: odoo/odoo#109669
2023-01-12 08:02:48 +01:00
Adrien Widart (awt) 7b4b835465 [FIX] stock: apply putaway on package with one product category
When applying the putaway rules, if we redirect a package (with a
specific type), we don't check the category of the package products.

To reproduce the issue:
1. In Settings, enable
   - Packages
   - Multi-Step Routes
   - Storage Categories
2. Edit the warehouse:
   - Receipt: 2 steps
3. Create three categories C1, C2, C3
   - Parent: All
4. Create three locations L1, L2, L3
   - Parent: WH/Stock
5. For each location Lx, create a putaway rules PRx:
   - From: WH/Stock
   - Category: Cx
   - To: Lx
6. Create a product P
   - Type: Storable
   - Category: C2
7. Create a planned receipt R with 1 x P
8. Mark it as todo, set the done quantity and put it in pack
9. Set a type on the package
10. Mark R as done
11. Open the associated internal transfer

Error: the destination location of the package is not L2 -> an
incorrect putaway rule has been applied

When we try to apply the PR on the SML "input to stock", because
this is a package with a type, we don't provide the list of the
products. Therefore, we have no idea about the product category.
This is a shame in case of a package that contains some products of
the same category. We should be able to apply the putaway rules
related to that category.

Moreover, this commit also fixes two other issues explained in [1]
and [2]. The FW of these commits have been stopped for the current
one because they didn't fix the above use case. Moreover, this commit
simplifies/clarifies the filtering and sorting of all putaway rules

[1] 03e47b165e7f6c59b41509d9229e8e2074aa3f34
[2] e0098eb281d886797a888a6f8fac474bbacb1b09

OPW-3098452

X-original-commit: c99523bc3a4a5a335f1928cf9bb53bb8483b492e
Part-of: odoo/odoo#109669
2023-01-12 08:02:47 +01:00
tsm-odoo cface47e4e [FIX] bus: websocket worker from different origin
Before this commit, the bus service would fail to initialize its worker
when loaded from a different origin than the worker script URL.
Moreover, the websocket URL was assumed to be on the same domain that
the bus service.

This PR fixes both issues:
- When the bus service is loaded from a different origin than the worker
script URL, create a data URL and use "importScripts" inside the worker
since it is not restricted to same origin scripts.
- Pass the websocketURL to the worker during its initialization.

opw-3118394

closes odoo/odoo#109701

X-original-commit: c1a480bb9ec133b9f94a5bb505380216a7f9c4ce
Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2023-01-12 01:27:47 +01:00
Pierre Masereel 75c98684fe [FIX] account_edi: allow to read edi attachment
When you have a journal configure to create add e-fff xml file to
integrate into the invoice, you get an access error when the user that
prints the invoice is not the same as the user that has posted the
invoice.

To avoid this issue, we are calling the '_prepare_invoice_report' with
an edi_document in sudo. The issue comes from that the attachment_id on
the account.edi.document has no res_id and res_model (to be hidden in
the chatter of the invoice). So to get access to such attachment, you
need to have the same 'create_uid' or being a 'Setting' user.

The issue was not present in saas-15.3 because the reports were executed
in sudo, so everything was accessible.

To easily reproduce:

- create a company in belgium
- activate E-FFF edi on the sales journal
- create and post an invoice with the user A
- print it with the user B (that is not an administrator

closes odoo/odoo#109702

X-original-commit: 87716488670b0ba4619d7e8c49e99dfd61ff88d7
Signed-off-by: William André (wan) <wan@odoo.com>
2023-01-11 22:43:27 +01:00
Paolo Gatti b11c274800 [FIX] l10n_it_edi: EDI cron fix
The EDI cron was broken since we applied the batching to the EDI documents processing in this PR: #99227
Now we enable processing multiple invoices at a time.

closes odoo/odoo#109699

X-original-commit: 2e37dfcc22424a61127571254dc09eb615a09eb1
Signed-off-by: Josse Colpaert <jco@odoo.com>
Signed-off-by: Paolo Gatti (pgi) <pgi@odoo.com>
2023-01-11 22:43:24 +01:00
Antoine Vandevenne (anv) 42e90fcf15 [FIX] payment, *: re-use the partner of the document
*: account_payment, sale, website_payment, website_payment

opw-3097856

closes odoo/odoo#109695

X-original-commit: a452221c51f5659c88cb479ded192a2ad395e7d6
Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
2023-01-11 22:43:22 +01:00
MerlinGuillaume 1ec1168605 [FIX] point_of_sale: allow closing control for pos user
The closing control of a POS session doesn't work if the user doesn't
have invoicing rights

Steps to reproduce:
1. Install Point of Sale
2. Go to Settings > Users and open Marc Demo
3. Remove Marc Demo rights on Invoicing
4. Connect as Marc Demo
5. Open a session in any POS
6. Do the opening control and then the closing control of the session
   (with a difference)
7. An error is raised

Solution:
Post the difference during closing control using sudo

Problem:
When posting a difference in the closing control, the user didn't have
enough rights to post the statement

opw-3116907

closes odoo/odoo#109684

X-original-commit: 3225fdcaaf20da0aa54db4161cee4cb9b48506ee
Signed-off-by: Trinh Jacky (trj) <trj@odoo.com>
Signed-off-by: Guillaume Merlin (megu) <megu@odoo.com>
2023-01-11 22:43:19 +01:00
niyasraphy 5a88ed886a [FIX] {}_calendar, google_recaptcha: fix field alignment in settings
before this commit, the field and labels are aligned in different lines in the settings.

closes odoo/odoo#109683

X-original-commit: 5844a0446ef9712027aa08fc239bbb858d164b87
Signed-off-by: Arnaud Joset <arj@odoo.com>
2023-01-11 22:43:14 +01:00
Pierre Paridans 85c6f0b9aa [IMP] web: theme-color matches community theme
This commit sets the theme-color to match the Community brand color
instead of the Enterprise one.

task-3063485

closes odoo/odoo#109181

Related: odoo/enterprise#35322
Signed-off-by: Adrien Dieudonné (adr) <adr@odoo.com>
2023-01-11 22:42:56 +01:00
Pierre Paridans 3664e1c0c6 [IMP] web: remove unused Android icon
This commit removes link to an Android specific icon.

Also this icon has been overriden by the favicon since
odoo/odoo@fa2cc58ef3.

task-3063485

Part-of: odoo/odoo#109181
2023-01-11 22:42:56 +01:00
Pierre Paridans ec4bb75dec [IMP] web: cleanup Apple's web-app related meta tags
Deprecated tags in favor of WebManifest.

Also this icon has been overriden by the favicon since
odoo/odoo@fa2cc58ef3.

task-3063485

Part-of: odoo/odoo#109181
2023-01-11 22:42:56 +01:00
Pierre Paridans dcae6d7afc [IMP] web: remove deprecated msapplication-* meta tags
Windows 8 tiles and superseeded by WebManifest support in Windows
10/Edge 79+ (Chromium based).

Also this icon has been overriden by the favicon since
odoo/odoo@fa2cc58ef3.

task-3063485

Part-of: odoo/odoo#109181
2023-01-11 22:42:56 +01:00
Kamlesh Pathekar a923e720ff [FIX] website_sale: show automatic invoice label
In this commit, we shows the label of automatic invoice field.

task-3110526

closes odoo/odoo#108712

Signed-off-by: William Braeckman (wbr) <wbr@odoo.com>
2023-01-11 20:57:21 +01:00
Pierre Masereel 66f8901143 [FIX] mrp: cannot open product template view
When you don't have any mrp access rights and want to open a product
template form view, you get an access error. This is caused by the field
bom_count that tries to count the number of BOM without having the
access rights.

So we only add this field to the view, and the action that depends on it
when you have mrp access rights.

closes odoo/odoo#109636

X-original-commit: a655276d556f1d2bf92c3f3160a8306cc673a115
Signed-off-by: William Henrotin (whe) <whe@odoo.com>
2023-01-11 19:26:48 +01:00
Jairo LlopisandJulien Castiaux 5f1a77236a [IMP] bus: allow debugging websockets worker
Previous behavior: when debugging the websockets worker, source code is always minified.

Now, if user is in `debug=assets` mode, the asset won't be minified and it will be easier to debug.

@moduon MT-1900

closes odoo/odoo#109583

X-original-commit: 6360bbdbdcc6f2c150ceaa9f7fb5b0760e0f8940
Signed-off-by: Julien Castiaux <juc@odoo.com>
Co-authored-by: Julien Castiaux <Julien.castiaux@gmail.com>
2023-01-11 19:26:43 +01:00
luvi 9e46fbd332 [FIX] web: fix ExportDataDialog issues
Since the rewrite of this dialog, some inconsistent behaviors were
present compared to the legacy implementation. This commit fixes some
of them.

First, many2many fields couldn't be expanded as it was the case before.
Secondly, the export list generated by default was wrong, and it has been
fixed by this commit. The defaultExportList that was computed in the as
expected for the direct export is now also used to display the right
fields from the right pane as it ignores the fields that are explicitly
not exportable.

Finally, minor UI issues have been fixed, like a wrong title.

Tests have been added to assert the correct behavior of the dialog when
selecting records.

closes odoo/odoo#109670

X-original-commit: 86b634a120de0843fbd90079e9e457818fd4acde
Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
Signed-off-by: Luca Vitali <luvi@odoo.com>
2023-01-11 17:58:47 +01:00
Samuel Degueldre b34429b984 [IMP] web, test_lint: forbid private class fields
We don't want private class fields to be used in Odoo because they limit
how classes can be patched from the outside, extensibility is one of
Odoo's biggest strength and we do not want to limit it.

This commit adds the `no-restricted-syntax` rule to eslint configs with
a rule that forbids private class fields.

closes odoo/odoo#109664

Signed-off-by: Simon Genin (ges@odoo) <ges@odoo.com>
2023-01-11 17:58:41 +01:00
Pierre Masereel 4b2692ba2e [FIX] spreadsheet_dashboard: hide sequence for read only users
When a user is not in the 'Setting' group, he sees the cmenu item
configuration and display the dashboard groups, but cannot edit them.

The main issue lies in the sequence field handle, hence we hide this
field for users that cannot configure the dashboard groups or the
dashboards themselves.

closes odoo/odoo#109655

X-original-commit: e9699b7f0deab8ffd0a64d27c7bbedc8f4e2daf7
Signed-off-by: Rémi Rahir (rar) <rar@odoo.com>
Signed-off-by: Masereel Pierre <pim@odoo.com>
2023-01-11 17:58:39 +01:00
Jesús Alan Ramos Rodríguez 325d576fe9 [FIX] base: fix incorrect call of method of dictionary
This PR fixes an issue introduced in commit https://github.com/odoo/odoo/commit/b9feebc25cc8caad97e5c3cb2953643bfd14984f

When this line is executed, the following error is shown:

closes odoo/odoo#109652

Attributeerror: 'dict' object has no attribute 'vals'
X-original-commit: f3b6225e268711e3d9e6f6fda24f398e2f506259
Signed-off-by: Xavier Morel (xmo) <xmo@odoo.com>
2023-01-11 17:58:36 +01:00
Thomas Lefebvre (thle) 8d229f22b3 [FIX] website_sale: remove reward line from cart
Steps to reproduce:
- go to e-commerce;
- add a product to the cart;
- add a gift card;
- remove the gift card form the cart.
(the user must not belong to the group 'base.group_system')

Issue:
A user error appears.

Cause:
The gift card is a product that cannot be added
to the cart like the others.
Therefore, an error is triggered.

Solution:
Make the error trigger only when adding products to the cart.

opw-3114090

closes odoo/odoo#109654

X-original-commit: 9cc699b89688261220aeb39a99fd866c27808d0a
Signed-off-by: William Braeckman (wbr) <wbr@odoo.com>
Signed-off-by: Lefebvre Thomas (thle) <thle@odoo.com>
2023-01-11 15:39:11 +01:00
Bruno Boi 3a814f50ba [FIX] web: back to same action w/ pending changes
Before this commit, when a user was on a form view with pending changes
and would click on the browser back button. If the previous action was
the same action, the user would be redirected to the form view but a
traceback would be raised because the form view was not able to handle
the pending changes "in time".

Here "in time" means before the form view is rendered. The form view
when rendered will try to update its display name through its controller
config, but as the new controller will be in fact the same as the
previous one, its config is currently being changed while the previous
form view is still using it. This leads to a traceback.

This commit fixes this issue by making sure that the changes are
properly commited before changing the config for the new controller.

The same kind of issue has been fixed in the action service for the
restore function, but there are no sensible ways to test this particular
use case.

closes odoo/odoo#109653

X-original-commit: e8a95c37e4e9ee4e4a65a3bfb216d3fa55544933
Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
2023-01-11 15:39:08 +01:00
Kevin Baptiste b3bc6c08a0 [IMP] hr_holidays: show all employee leaves in Off Today
In the timeoff overview, the "Off Today" filter was only showing leaves
that were occuring on the current day, hiding all the other leaves of
the employee occuring that same period.

Now it will display all the leaves for that period for the employees
that are currently off.

task-3098759

closes odoo/odoo#108290

Signed-off-by: Kevin Baptiste <kba@odoo.com>
2023-01-11 15:38:56 +01:00
Rohitkumar (roku) 0e7c7e4c78 [IMP] hr_holidays: improve filters ux in the time off
The purpose of this PR is to improve the filters for time off
In Commit,
    Filters relabelling:
     - Approved Allocations -> Approved
     - Active Time Off  -> Active
     - Archived Time Off  -> Archived
     - Cancelled Time Off -> Cancelled
 - remove the `Current Year`  filter in  hr leave
 - re-sequence filter of the hr leave and and hr leave allocation

task-3090753

closes odoo/odoo#107378

Signed-off-by: Kevin Baptiste <kba@odoo.com>
2023-01-11 15:38:54 +01:00
gawa-odoo 023473d70c [FIX] account: update fiscal position when updating taxes
The fiscal positions for the new taxes should also be
provided, when we create the taxes, so the clients
don't have to manually input them.
Only fiscal positions that exist in the db and with new
taxes are created.

Related: https://github.com/odoo/odoo/pull/108571
task-3116246

closes odoo/odoo#109637

X-original-commit: 362b152cee6252ee6531c15a3e07b5917b36bc45
Signed-off-by: William André (wan) <wan@odoo.com>
2023-01-11 14:31:09 +01:00
Thomas Lefebvre (thle) a77f644fd2 [FIX] sale_loyalty: find sequence of a non-iterable
Steps to reproduce:
- go to e-commerce;
- add a product to the cart;
- add a gift card;
- remove the product from the cart.

Issue:
A traceback appears.

Cause:
We are trying to find the maximum of a non-iterable object.

Introduced by 7004b17ee5433e3b14561358348b42326f549261

opw-3114090

closes odoo/odoo#109635

X-original-commit: ae074117db7e7da1ba36a9151fae12bc16fb15ed
Signed-off-by: William Braeckman (wbr) <wbr@odoo.com>
2023-01-11 14:31:06 +01:00
Ivan Yelizariev 4ca947c092 [FIX] base,web: fix address widgets in reports for RTL
This reverts following commits
1. a63f616c280ff464e331e3ba97265a8c29a86871
2. 5b7c3805a0

Instead of aligning address to left, we use default aligning, i.e. align to the
right for RTL langugages.

Commit n.1 was an attempt to finalize idea of the commit n.2, but it turned out
that left aligning looks just too bad for rtl users. So, this commit reverts
both of them, but keeps span/div changes in commit n.2

opw-3053457

closes odoo/odoo#109634

X-original-commit: 4af9fcf99f118e5dd85fb59d2e63f5b817233f07
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2023-01-11 14:31:03 +01:00
rhe-odoo ad284c0a0b [IMP] point_of_sale: add payment methods image
This commit adds default image to payment methods.
It also let the user set custom images to his payment methods.
Those images will be displayed in the payment screen next to the name.

closes odoo/odoo#109446

Signed-off-by: Trinh Jacky (trj) <trj@odoo.com>
2023-01-11 14:30:52 +01:00
luvi b31daf2f7b [REF] web, *: improve view scale selector style and behavior
*: hr_holidays, hr_work_entry_contract

The commit introduces a new standard view component made to implement
in a consistant way the scale/select the appropriate period to display
in a view. This component is currently used by the Calendar view.

Tests have been added for this new component, as its behavior specs must
remain comprehensive. When there is no options or only one, the button is
removed from the view to keep space available, as its purpose is reduced.

This component gives the opportunity to keep the same style and behaviors
for views implementing it (eg: Calendar, Gantt) and should be used in
other views as well as soon as they are converted to Owl.

Other modules have been adapted to use the component name in xpath instead
of the span with the o_calendar_scale_buttons element. Tests have been
adapted as well.

A scss file has been modified to prevent the arrow to be misplaced on touch
devices due to a higher padding in the dropdown item element.

part of task #2867569

closes odoo/odoo#109090

Related: odoo/enterprise#35435
Signed-off-by: Bruno Boi (boi) <boi@odoo.com>
2023-01-11 14:30:46 +01:00
niyasraphy bf0001ea3d [FIX] sale_loyalty: traceback after removing products from cart
before this commit, when removing a product from cart raising traceback.

add a product to cart, apply a gift card code to this order from backend sale form.

now when trying to remove the original product from cart raises traceback:  max() arg is empty sequence

this is raised to calling max() on empty list, to fix the issue, set a default=10 is passed to max.

closes odoo/odoo#109625

X-original-commit: 526aeb2f3232f32404eb09b68aa2171c97568489
Signed-off-by: William Braeckman (wbr) <wbr@odoo.com>
2023-01-11 13:21:01 +01:00
niyasraphy 346a289ecf [FIX] website_sale: remove upgrade widget from delivery_mondialrelay
before this commit, in the website settings the Mondial Relay field is shown with upgrade_boolean widget. upgrade_boolean widget is the widget that shows the enterprise label and on clicking it, will show end user the wizard to upgrade to enterprise.

actually the module delivery_mondialrelay is part of community edition and thus removing the widget from the field.

closes odoo/odoo#109616

X-original-commit: e08a083ae5a38fb40a2b2e8a47642111f0286805
Signed-off-by: William Braeckman (wbr) <wbr@odoo.com>
2023-01-11 13:20:58 +01:00
Laurent Smet 7a8a712a34 [IMP] web: improve notebook
to allow for easier overriding
related to odoo/enterprise/#35426

task-3111695

closes odoo/odoo#109594

X-original-commit: 2ad805d5a88a510844fc398d089b3e3c46e5cb9d
Related: odoo/enterprise#35641
Signed-off-by: Laurent Smet <las@odoo.com>
Signed-off-by: Ayob Habib (ayh) <ayh@odoo.com>
2023-01-11 13:20:53 +01:00
JF Aubert 0cdf410a44 [IMP] mrp: Remove mrp.immediate.production model
closes odoo/odoo#108446

Task: 3094741
Related: odoo/upgrade#4163
Signed-off-by: William Henrotin (whe) <whe@odoo.com>
2023-01-11 13:20:48 +01:00