Commit Graph
148439 Commits
Author SHA1 Message Date
Laurent Stukkens (LTU) 3ed97cb8bb [FIX] project: ensure dissatisfied filter works properly
Before this commit:
* rating_last_value takes non consumed ratings into account, which prevents
  dissatisfied filter to work as expected.

After this commit:
* dissatisfied will be only based on rating_avg.

closes odoo/odoo#84821

X-original-commit: 65c87efd78ad93d76c63575300f5d28cfcb42b29
Signed-off-by: Xavier <xbo@odoo.com>
Signed-off-by: Laurent Stukkens (ltu) <ltu@odoo.com>
2022-02-17 16:42:00 +00:00
Arnaud Joset a67dc7e151 [FIX] google_calendar: chose internal users when portal and internal users share the same email
Before this commit, when two users shared the same mail, they were ordered by alphabetical order.
This commit makes sure that the internal user is preferred.

closes odoo/odoo#84805

X-original-commit: 992b7a00f8eb567aed730420d0d10fa476fb9dd7
Signed-off-by: Thibault Francois <tfr@odoo.com>
Signed-off-by: Arnaud Joset <arj@odoo.com>
2022-02-17 16:41:56 +00:00
Arnaud Joset 968cd5ff33 [FIX] google_calendar: increase debug when all events in a recurrence are deleted.
Before this commit, a lot of events and mail followers would be deleted and recreated.
This PR commit aims to identify the issue and fix it.

X-original-commit: d0adfb0b269d21a2284e9608c75bd6f1afffa9a8
Part-of: odoo/odoo#84805
2022-02-17 16:41:56 +00:00
Martin Trigaux 99901f003e [I18N] l10n_fr_fec: synchronise translations
msgmerge with .pot file

Fixes odoo/odoo#83457

closes odoo/odoo#84802

X-original-commit: 462982d8c3ad4df3ceef8787492ea7737c0d68d1
Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2022-02-17 16:41:51 +00:00
Yannick TivisseandRémy Voet c983ae0fa2 [FIX] core: update cache on parent_path when updated
Purpose
=======

The parent_path is invalidated from cache when computing it from scratch
(with method `_parent_store_compute`) but not when it is recomputed
(method `_parent_store_update`).

The issue is that a computed field depending on 'parent_path'
won't receive the updated value using the cache, and could lead
to inconsistencies if the developer is not aware of that.

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

On `_parent_store_update`, set the new value of 'parent_path' in the
cache before marking the records as modified.

task-2766452

closes odoo/odoo#84795

X-original-commit: 861854a7598f31c0b971560484e3eb576af006b4
Signed-off-by: Raphael Collet <rco@odoo.com>
Signed-off-by: Rémy Voet <ryv@odoo.com>
Co-authored-by: Rémy Voet <ryv@odoo.com>
2022-02-17 16:41:47 +00:00
Vincent Schippefilt a503073b96 [IMP] base: simplify the query that checks the access rights
before this commit, checking access rights took 2 queries: 1 for group specific rules
and one for generic rules.
after this commit, a single query checks both

This change is important especially for the loading of the menu done in /web,
where we check the security for each model that has a menu, we are saving 25% of the queries

closes odoo/odoo#84736

Signed-off-by: Vincent Schippefilt (vsc) <vsc@odoo.com>
2022-02-17 16:41:43 +00:00
Antoine Guenet 5c6b6cb4ae [FIX] mail: test adaptation forward port
We adapted a test in mail in commit be21041f9aa385f2b9ce1b242379bf147c54b158.

Basically, the test only contained mso comments and no regular comment.
While the python code teats them the same, they are not semantically
equivalent as mso comments actually do have side effects in outlook.
The adaptation is to add a regular comment to the test data so that both
comment types are properly covered by the test, even though the result
is technically the same regardless.

This is the only change from this commit that was not yet present in 15.2.

closes odoo/odoo#84786

X-original-commit: 9275b0119ee6bb2e9a4ee5bef66b00e8c2456d3d
Signed-off-by: David Monjoie (dmo) <dmo@odoo.com>
2022-02-17 15:31:12 +00:00
FrancoisGe 62ebc97bd8 [IMP] web: Command Palette Config Debounce
This commit is intended to make command palette faster. To improve this,
we decided to make the debounce delay configurable by namespace.
We also decided to limit the number of Command displays to 100.

closes odoo/odoo#84227

Signed-off-by: Géry Debongnie <ged@odoo.com>
2022-02-17 12:51:43 +00:00
Kevin Baptiste a8d3ba8a8b [IMP] hr_skills: ensure Progress is positive
It was possible to have negative Progress on a skill, which doesn't make
sense.

Here we ensure it's a valid percentage between 0 and 100 inclusive.

odoo/upgrade#3238

closes odoo/odoo#84442

Taskid: 2762009
Signed-off-by: Kevin Baptiste <kba@odoo.com>
2022-02-17 10:08:53 +00:00
Vincent LarcinandPriyanka Kakadiya 41116c81cd [IMP] project, sale_{project, timesheet}: improve user experience
This commit introduces some user experience improvements:

    - Always display sale_line_id field whether partner_id is set or not.
    - Don't restrict sale orders to the partner_id's one
    - Set partner_id to the one of the SOL if partner_id is False
    - Remove create option for fields 'user_ids'
    - Display the kanban state in the kanban view even in fsm

Task 2585357

closes odoo/odoo#73531

Related: odoo/upgrade#3211
Related: odoo/enterprise#19812
Signed-off-by: Laurent Stukkens (ltu) <ltu@odoo.com>
Co-authored-by: Priyanka Kakadiya <pka@odoo.com>
2022-02-17 10:08:43 +00:00
Antoine Vandevenne (anv) 2d0133b52b [FIX] payment_adyen: unblock the UI when additional details are required
Commit b6ae8a0a introduced the generic behavior of blocking the UI as
soon as a submit button is pressed in a payment form. The 3DS2 flow of
Adyen was not taken into account, resulting in the impossibility to
enter the additional details required by Adyen.

With this commit, the UI is unblocked at the right time to allow the
user to submit the additional details. Moreover, the submit button is
now hidden as soon as we don't want to show it anymore, rather than
after having submitted the additional payment details.

closes odoo/odoo#84757

X-original-commit: 97f206e0b26c83eb8bf66f7777f1ab5f2de41615
Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
2022-02-17 09:07:00 +00:00
aliya 47cf4e8066 [FIX] l10n_ar, l10n_ec, l10n_pe: use fiscal country
Currently all latam localizations except Chile use country_id in _localization_use_documents().
account_fiscal_country_id should be used instead in all modules.

closes odoo/odoo#84756

Task: 2761248
X-original-commit: cf61089d9480d7450d2916911b0859cd5f6efcce
Signed-off-by: Olivier Colson <oco@odoo.com>
Signed-off-by: Tastemirova Aliya (alta) <alta@odoo.com>
2022-02-17 09:06:57 +00:00
Antoine Vandevenne (anv) 850f1317ed [FIX] payment: stop showing the content of HTML fields if they are empty
Before this commit, an empty line would be shown in the payment forms on
the card of each payment acquirer whose `pre_msg` field was not empty.
This is because displaying this HTML field in a form view and saving it
causes the value `<p><br></p>` to be written on the field, even if it
was left empty. The same issue occurred with the `pending_msg`,
`auth_msg`, `done_msg`, and `cancel_msg` fields that are shown on the
portal of some apps (Sales, Accounting...).

With this commit, the value of these fields is tested before displaying
them. If the value is `<p><br></p>`, the field is not displayed, hence
avoiding to display a blank line.

closes odoo/odoo#84755

X-original-commit: 808cc53bb02b0f1851a2a229bd5235a5fb944408
Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
2022-02-17 09:06:53 +00:00
Audric Onockx (auon) 5909a78915 [FIX] base_geolocalize : adapt geocoordinates to partner address
Steps :
Install Field Service and Contacts.
Create a FSM task > Customer : Demo.
Note that the displayed address is his Demo's current one.
Click Navigate To : it points this same address.
Go to Contacts > Demo > change the address and return to task.
Note that the displayed address is his Demo's new one. (Or else refresh)

Issue :
Click Navigate To : it points the OLD address.

Cause :
action_fsm_navigate calls partner.geo_localize
only if partner has no geocoordinates.
Yet he still have the old coordinates.

Fix :
Call when the address changes and not in action_fsm_navigate.

closes odoo/odoo#84753

Opw: 2743926
X-original-commit: 0c01f2a22485328e32ff1741a3ba98446b539318
Related: odoo/enterprise#24456
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
Signed-off-by: Onockx Audric (auon) <auon@odoo.com>
2022-02-17 09:06:49 +00:00
Adrien Widart 5d7a376aab [FIX] mrp: list all kit components in delivery slip
When printing a delivery slip, if the delivered product is a kit
composed with a subkit, the products of this subkit won't be listed

To reproduced the issue:
1. Create 5 consumable products: 'Compo 01', 'Compo 02', 'Compo 03',
'Sub Kit', 'Super Kit'
2. Create two phantom-type boms:
    - Sub kit:
        - 1 x Compo 02
        - 1 x Compo 03
    - Super Kit:
        - 1 x Compo 01
        - 1 x Sub Kit
3. Process a delivery with 1 x Super Kit (the picking must be done)
4. Print the delivery slip

Error: The report only contains two lines, i.e. the name of the kit
('Super Kit') and the name of the 'direct' component ('Compo 01)

The issue comes from the SML used to define `kit_move_lines` (XML side).
It uses `has_kits` which only contains the top level kits' SML:
https://github.com/odoo/odoo/blob/1b1067b0cf2a3de2773915ff8205084492b1bbe3/addons/mrp/report/report_deliveryslip.xml#L6-L9
This is the reason why the SML for Compo 02 and Compo 03 are not listed

OPW-2740247

closes odoo/odoo#84735

X-original-commit: 586f900433eb09ee04d0ed073acfdcfa0fc59d58
Signed-off-by: Tiffany Chang <tic@odoo.com>
Signed-off-by: Adrien Widart <awt@odoo.com>
2022-02-17 09:06:42 +00:00
Thibault Delavallée d44e6a5ab7 [FIX] sale_management: fix wrong domain in search
Followup of odoo/odoo@f448b3314e

closes odoo/odoo#84763

Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2022-02-17 08:10:23 +00:00
sofiagvaladze eee7067a3f [FIX] hr_expense: Fix traceback caused by empty currency_id
When we are setting currency_id, if we delete it altogether,
we get a traceback.

Task - 2704297

closes odoo/odoo#84741

X-original-commit: 870577981e02fce4a3b1b1df200d2a81c814f5e8
Signed-off-by: Kevin Baptiste <kba@odoo.com>
2022-02-17 07:21:43 +00:00
Christophe Monniez 9c578fdff6 [FIX] packaging: fix rpm package and stop using bdist_rpm
The rpm package failed recently on a file name containing a space.
This issue is fixed by protecting file names with double quotes in the
installed files list.

Also, during this fix, it was discovered that the bdist_rpm is
deprecated in setuptools [0].

For that reason, the rpm is now generated from the package.py script.

[0] https://github.com/pypa/setuptools/pull/2780

closes odoo/odoo#84665

Signed-off-by: Christophe Monniez (moc) <moc@odoo.com>
2022-02-16 19:31:02 +00:00
Gorash a9343fae75 [FIX] web_editor: properly show snippet names via t-install directive
Since the refactoring done on ir.qweb at [1], directives are more
autonomous, so `t-att`, `t-options`, etc are no longer evaluated by
other directives. These directives are also ordered.

Before this commit, when directives such as `t-snippet`, `t-install`,
etc were called, the other attributes had already been consumed. Indeed,
at the end of the compilation, tags should no longer have attributes,
`t-att` removes all statics ones. So relying on the `string` attribute
in `t-install` was broken and so the snippet names for the snippets to
install from the editor panel in edit mode were gone.

This commit fixes that by evaluating those specific directives earlier.

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

task-2762377

closes odoo/odoo#84752

X-original-commit: f40b9522f20d5fbfe62c3718566c1d92ccfad75b
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2022-02-16 18:41:23 +00:00
qsm-odoo 0329c0fcab [FIX] website: prevent input and datepicker interaction in edit mode
Before this commit, during edit mode, the user was able to interact with
form elements. In 13.0, it was somehow prevented by some JS code by
losing the focus immediatly but it was not enough: if typing quickly the
user was able to type text. But the real problem was the user seeing the
input focused for half a second then not anymore, making him think a bug
occured. Worse, the datepickers of the form snippet were able to be used
entirely during edit mode, making the user think it is possible to
configure a default value (which was not true in 13.0). In following
versions, the bug is indeed worse as it messes up with the default
values configuration. In 14.0, it is apparently possible to type
normally in all of those inputs... although still ignored on save. In
15.0... the 13.0 behavior of losing the focus immediatly is back though.

This commit fixes that via CSS, still allowing a click on the elements
to be considered as a click on the parent, but preventing to focus our
snippet inputs (this fix is limited to our own snippets as stable fix).
Note: the 13.0/15.0 JS code which prevents the focus right now was not
found (if it even exists...) but it would not be ok to remove it in
stable anyway. More investigation and review will be done once this
reaches master.

task-2523496

closes odoo/odoo#84717

X-original-commit: ab9fbfb43365fcd39cc782f94b74911155e3f73e
Signed-off-by: Romain Derie (rde) <rde@odoo.com>
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2022-02-16 17:50:44 +00:00
jbw ff9adda52e [FIX] account: don't map repartition lines on cash basis reversal
To reproduce the issue:
    - create a cash basis tax, with different account and tags for invoice and refund
    - make an customer invoice using this tax, post it, and register a full payment for it
    - unreconcile the payment

=> Two cash basis moves have been generated: one for the initial reconciliation, and another one reverting it when the reconciliation got cancelled.

=> Bug: the reverse move uses the refund repartition, while the original one is using the invoice's one, so they don't sum up to zero. It's wrong: since the reconciliation got cancelled, we want the impact of the invoice on our tax report to be 0 again, just as if it was brand new.

closes odoo/odoo#84727

X-original-commit: b9e94def7dd84a6a02ddb76959400b8d8fbc5025
Signed-off-by: Laurent Smet <las@odoo.com>
Signed-off-by: Olivier Colson <oco@odoo.com>
2022-02-16 16:57:29 +00:00
jbw df37d3ef91 [REV] account: commit d22cd54
d22cd54 introduced the fact that when doing a full refund of an invoice, the same account was used as on the original invoice, instead of the one on the tax refund repartition lines, though the tags were still the refund ones. This is wrong.

Also, it restored an inconsistent data setup in a test, while the current version was actually correct.

X-original-commit: 031f017a5a696874065cb5873f2fecd5c4b177ed
Part-of: odoo/odoo#84727
2022-02-16 16:57:28 +00:00
sofiagvaladze f6030aeecc [FIX] iap_mail: Remove messageIsHtml from IAP failure notification
Before the fix:
When we don't have enough credits for Bill Digitalization,
try to scan expense from expense app (or upload bill from billing).
Instead of getting 'Not enough credits for Bill Digitalization',
we are getting 'Odoo Client Error'.

That is because messageIsHtml is no more prop to component 'Notification'.

closes odoo/odoo#84701

Signed-off-by: Arnaud Joset <arj@odoo.com>
2022-02-16 16:57:20 +00:00
William Braeckman ee82585b4f [IMP] hr_attendance: enable back linking in report pivot
This commit makes it possible again to click on a pivot cell to check
where the data comes from.

TaskId-2760356

closes odoo/odoo#84252

Signed-off-by: Kevin Baptiste <kba@odoo.com>
2022-02-16 15:59:59 +00:00
Alexandre Kühn 00e9c934cb [IMP] mail: adjust sound effect volume
Sounds were too loud and inconsistent.

closes odoo/odoo#82337

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2022-02-16 15:01:13 +00:00
Thanh Dodeur da9681696b [IMP] mail: add and update sound effects of rtc call interactions
task-2692600

Part-of: odoo/odoo#82337
2022-02-16 15:01:13 +00:00
Adrien Widart 05261f12c2 [FIX] stock: compute the source location of package level
When performing a picking with a package, the source location of the
package level may become incorrect

To reproduce the issue:
(Use demo data)
1. In Settings, enable:
    - Packages
    - Storage Locations
2. In Operations Types, edit "Internal Transfers":
    - Enable "Move Entire Packages"
3. Create a storable product P
4. Create a receipt R with for P
5. Put 10 P in pack and validate R
    - Let be PK the package generated/used
6. Process an internal transfer with PK
    - The destination location of the package level is WH/Stock/Shelf 1

Error: Once the picking is validated, the source location of the package
level is "WH/Stock/Shelf 1". This is not true, it should still be
"WH/Stock"

The compute method is incorrect. It uses the package location to define
the source location of the package level. However, once the picking is
processed, this package has moved so using its location to define the
source location doesn't make sense anymore.

OPW-2754179

closes odoo/odoo#84709

X-original-commit: 239898ed699d98ff185f6a18fc5a8529e126cecb
Signed-off-by: William Henrotin (whe) <whe@odoo.com>
2022-02-16 14:02:14 +00:00
Dhwani Patel b9019878ea [FIX] mrp: Use the float_round method to make quantity with the same
decimal places while we compute stock_quants.

closes odoo/odoo#84708

X-original-commit: fba9c9f32cb3d53841946588a999998f6c936e26
Signed-off-by: William Henrotin (whe) <whe@odoo.com>
2022-02-16 14:02:11 +00:00
Dossogne Bertrand 8d1dc3f9db [IMP] *: better margin in pdf reports
*: account, purchase, sale

Aim of this commit :
Get multiple pdfs reports to be more easily read, such as :
- pro-forma invoice
- quotation/order
- purchase order
- request for quotation
- invoices

After this commit :
Spaces have been added in order to improve readability

closes odoo/odoo#82277

Taskid: 2712478
Signed-off-by: Kevin Baptiste <kba@odoo.com>
2022-02-16 14:01:53 +00:00
Adrien Widart e54ea32283 [FIX] stock: set default value for inventory_quantity_set
When a quant is creating, for instance thanks to an internal transfer,
some of these computed fields will have an incorrect value

To reproduce the issue:
1. In Settings, enable "Storage Locations"
2. Create a storable product P
3. Update P's quantity: 100 P in WH/Stock
4. Process an internal transfer
    - From: WH/Stock
    - To: WH/Stock/Shelf 1
    - Operations: 10 x P
5. Consult the on hand quantities of P

Error: There is a new line with 10 x P in WH/Stock/Shelf 1, which is
correct. However, the Counted Quantity field is defined and equal to 0,
and so does the Difference field with a value of -10. These two fields
should not be shown.

When validating the internal transfer, a new quant is created for the
location "Shelf 1". However, there isn't any value for the field
`inventory_quantity_set`. Therefore, at the end of the transfer
validation process, when the `flush` method is called, since
`inventory_quantity_set` is a computed field, its  `compute` method is
called and define the value to `True`:
https://github.com/odoo/odoo/blob/8b155b695823dfa954464ad0d5dd07445ece2471/addons/stock/models/stock_quant.py#L134-L136
This explains why, on front-end, the Counted Quantity and Difference
fields are displayed.

OPW-2733937

closes odoo/odoo#84679

X-original-commit: c519e26adec85025f40f78c59a05b2385377fb5d
Signed-off-by: Arnold Moyaux <arm@odoo.com>
Signed-off-by: Adrien Widart <awt@odoo.com>
2022-02-16 13:05:02 +00:00
Yannick Tivisse b56b76fe62 [IMP] hr: Add master department field
closes odoo/odoo#84558

Related: odoo/enterprise#24332
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2022-02-16 13:04:50 +00:00
Yannick Tivisse 956044c680 [IMP] hr_holidays: Add links to leave/allocation on time off by type report
Part-of: odoo/odoo#84558
2022-02-16 13:04:49 +00:00
Kevin Baptiste 3ffe2cdb97 [IMP] hr_holidays: add Stress Days
Add "Stress Days", days where employees are *not* allowed to request
a time off. Time Off officers are still allowed to request holidays on
those dates.

closes odoo/odoo#79280

Taskid: 2679873
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2022-02-16 13:04:44 +00:00
Aaron Bohy 290ddb3686 [IMP] web: tests: show dialogs when debugging a test
By default, dialogs are hidden in tests, s.t. we don't see them
flicker when running the test suite. There is a css rule to hide
them, only if there's no "debug" classname on the body.

This commit toggles this classname when a test is run with
QUnit.debug.

closes odoo/odoo#84694

Signed-off-by: Mathieu Duckerts-Antoine <dam@odoo.com>
2022-02-16 11:30:50 +00:00
Pierre Paridans 48134b44d6 [FIX] web: don't show empty burger menu on mobile
When the current app doesn't provides menu-items (or the user doesn't
have the rights to access them), the mobile burger menu should fallback
to the user menu instead of an empty one (like on the App Switcher).

Steps to reproduce (on mobile):
- on a newly database, install only "notes" app
- connect as 'demo' user
- open the notes app
- open the burger menu
=> as there is no submenus, burger menu is empty.

task-2345001

closes odoo/odoo#84692

X-original-commit: odoo/enterprise@f8e85c39e6
Signed-off-by: Adrien Dieudonné (adr) <adr@odoo.com>
2022-02-16 11:30:43 +00:00
tranngocson1996 b99032c3b4 [FIX] stock: add hook method
I want to customize the value when creating the stock move but with the
old code I can't do it. So, I add you a hook method. Look it will be
more professional and good for developer

closes odoo/odoo#84255

X-original-commit: 682030f10da19e51ab28f8adcfa39de4b872fed3
Signed-off-by: Arnold Moyaux <arm@odoo.com>
2022-02-16 11:30:37 +00:00
JF Aubert a34fed27d5 [IMP] mrp: Add Group by Procurement Group to MO list view
(make it easier to identify related backorders)

closes odoo/odoo#83500

Task: 2683917
Related: odoo/enterprise#23793
Signed-off-by: Tiffany Chang <tic@odoo.com>
2022-02-16 11:30:30 +00:00
JF Aubert f90a227253 [IMP] mrp: Allow canceling multiple Manufacturing Orders at once
Task: 2683917
Part-of: odoo/odoo#83500
2022-02-16 11:30:29 +00:00
JF Aubert 9a68c2ccb4 [IMP] mrp: Allow printing Work Orders
Task: 2683917
Part-of: odoo/odoo#83500
2022-02-16 11:30:29 +00:00
JF Aubert 5163062eca [IMP] mrp: Improve Bill of Material 'structure and cost' report
- remove 'print unfolded' button
- add 'unfold' button to fully expand components/operations tree
- keep unfold state when quantity change

Task: 2683917
Part-of: odoo/odoo#83500
2022-02-16 11:30:29 +00:00
Bas Ubbels 191ad7c5c8 [CLA] solutions2use signs Odoo CCLA
closes odoo/odoo#84676

X-original-commit: 5f7e29062f6dcf72dfac9274c2cdd4605e5c71db
Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
Signed-off-by: William Henrotin (whe) <whe@odoo.com>
2022-02-16 10:38:01 +00:00
bve-odoo 76f73a8921 [FIX] mail: modify url redirection to doc (mail servers)
Documentation structure were modified to point out to a new subtree:
    content/applications/general/email_communication/email_server

Related task:2619564
Documentation PR:1092

closes odoo/odoo#84617

X-original-commit: 10e3d3dc861d22938c92a2b4016be4f2862630c2
Signed-off-by: Vergote Baptiste (bve) <bve@odoo.com>
2022-02-16 09:40:15 +00:00
Hubert Van de Walle (huvw) b9d3527c46 [IMP] payment_payulatam: support webhook notifications
task-2701097
opw-2627875

closes odoo/odoo#84581

X-original-commit: b82e6788921fc1f3b1ebeeb13eb79619416932f8
Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
2022-02-16 09:40:11 +00:00
Adrien Minet 90cf777a4d [FIX] mrp: admin rights added to admin/settings group
How to reproduce the bug:

- Install the mrp app
- Enable debug mode
- Go to Settings -> Groups
- Add Marc Demo to Administration/Settings group
- Log in to Marc Demo
- Click on the Settings App

Bug:

If, as a basic user, you are added to the Administration/Settings group,
you won't be able to open the Settings module. If you look closer at this group,
you will see that the MRP administration group is not inherited when you install the
module.

closes odoo/odoo#83118

Opw: 2697030
Signed-off-by: William Henrotin (whe) <whe@odoo.com>
2022-02-16 09:40:07 +00:00
std-odoo 7931a54688 [IMP] mass_mailing: add a mailing contact import wizard
Purpose
=======
Allows the user to easily import mailing contacts.

Specification
=============
Add a button "import" on the top of the mailing contact list view. This
button open the wizard <mailing.contact.import>.

So the user can select the mailing list and import his contacts with a
text field, one line for each contact.

Task-2703521

closes odoo/odoo#82333

Related: odoo/enterprise#23263
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2022-02-16 09:39:59 +00:00
std-odoo 4498ec3f7d [FIX] mass_mailing: ignore default_list_ids when list_ids is given
Bug
===
Since 576556d846 we merged the list
coming from the context key default_list_ids and the list given by the
user in subscription_list_ids. It worked well because the 2 fields
"list_ids" and "subscription_list_ids" were not in the same view at the
same time.

But if we want to create from the backend <mailing.contact> by giving
a value in "list_ids", the context key "default_list_ids" must be
ignored (like standard Odoo fields).

Task-2703521

Part-of: odoo/odoo#82333
2022-02-16 09:39:59 +00:00
diagnoza f53ba2950c [FIX] mass_mailing: consider ab_testing_schedule_datetime may be false
Prevent calling strftime('%b %d, %Y') on ab_testing_schedule_datetime if it's False.
Task-2709922

closes odoo/odoo#84687

X-original-commit: 9116706bcbf16fcade228aa555b383b7185cf4a8
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2022-02-16 08:47:01 +00:00
Florian Damhaut d142e4dcb3 [FIX] hr_attendance: report time not in decimal
Current behaviour:
- Time in pivot view of report in attendance is in decimal hours
(e.g. 90 minutes is noted as 1.5 instead of 1:30)

Behaviour after PR:
- Time is noted in proper time manner

opw-2752651

closes odoo/odoo#84682

X-original-commit: 6f6a4b1a04a3ab83056f3cb58417eae53acebab5
Signed-off-by: Kevin Baptiste <kba@odoo.com>
2022-02-16 07:53:43 +00:00
Benoit Socias 30ec3870dd [FIX] website_sale: match product's internal note in search
Since [1] the product search from website did not match the content of
the product internal note anymore.

After this commit the product search from website also matches products
if the terms appear in the product's internal note.

[1]: https://github.com/odoo/odoo/commit/7559626c54e34b41e1549e28276a650accec6986

opw-2715647

closes odoo/odoo#84675

X-original-commit: 0f40c3754bfa9dc14e1e15a137b7c2bdf6230a9c
Signed-off-by: Romain Derie (rde) <rde@odoo.com>
Signed-off-by: Benoit Socias (bso) <bso@odoo.com>
2022-02-16 07:53:40 +00:00
Julien Van Roy b94bfa039c [FIX] l10n_fr_fec: fix the translations files
Based on the po/pot files generated from odoo,
reorder the translations + remove the unused one.

closes odoo/odoo#84677

X-original-commit: 08c7503c7a0d25e00f26ec1fc0b6eede23fe71dd
Signed-off-by: William André (wan) <wan@odoo.com>
2022-02-15 19:21:48 +00:00