Commit Graph
144562 Commits
Author SHA1 Message Date
std-odoo 9d13bb4534 [FIX] mail_plugin: fix missing translations
Purpose
=======
Fix missing translations on the Outlook plugin and add them in the
mail plugin module.

Task-2612788

closes odoo/odoo#74399

Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2021-07-29 12:27:45 +00:00
Ivàn Todorovich 606452598e [REM] website_sale: remove dead extra_info code
Since e4a317a the extra info form is not posted on this controller
anymore. It posts to /website_form/shop.sale.order instead.

closes odoo/odoo#75590

Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com>
2021-08-25 14:37:24 +00:00
Achraf (abz) 08cde66c6c [FIX] stock: Don't set DO to ready if a move is empty
A stock move with 0 qty in initial demand is considered as 'ready'. But
those stock moves should be excluded of the picking state computation to
not false the readiness of the picking, especially if the delivery
policy is set to 'direct'.

opw-2611018

closes odoo/odoo#75589

X-original-commit: bc7198961583562243b393bd8cd009c5e7220ad0
Signed-off-by: William Henrotin <Whenrow@users.noreply.github.com>
Signed-off-by: Achraf <abz-odoo@users.noreply.github.com>
2021-08-25 13:55:31 +00:00
Odoo's Mergebot 33116422df Master mail order tde
closes odoo/odoo#75571

Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2021-08-25 17:38:25 +02:00
Andrea Grazioso (agr-odoo) 9bda4c25ef [FIX] sale_stock: fix effective picking date
- Create a sale order that generates picking and confirm it.
- Validate the picking  when the local DATE and the GMT DATE
are different (i.e. GMT-4, between local 20:00:00 and 23:59:59)

Effective Date will be different in the SO and the picking

opw-2559308

closes odoo/odoo#75457

X-original-commit: 99fe3477fecc4948ac621fda82d93bf263933f02
Signed-off-by: agr-odoo <agr-odoo@users.noreply.github.com>
2021-08-25 13:50:20 +00:00
Thibault Delavallée cc109457cc [REM] mail: remove dead controllers
Some controllers are not called anymore. Let us remove them to remove
unnecessary entry points.

Task-2631873
PR odoo/odoo#75571
2021-08-25 13:12:11 +00:00
Thibault Delavallée 18191b9055 [FIX] mail: fix wrong override of write
Somehow a context parameter was still given to write. This should not happen
in new API (Odoo v8).

Task-2631873
PR odoo/odoo#75571
2021-08-25 13:12:11 +00:00
Thibault Delavallée 1b4e0099d4 [MOV][FIX] mail: quickly reorder code parts, remove dead imports, fix code bits
Reorganize code to ease future additions understanding and setting code
at the right place.

Rename some compute methods to have understandable names.

Remove dead imports.

Fix pytz.utc usage.

No functional change comes with this commit. This is only code move.

Task-2631873
PR odoo/odoo#75571
2021-08-25 13:12:11 +00:00
Thibault Delavallée cb67c23888 [MOV] mail: reorder controllers and views
As mail grows and will continue to grow, ordering views and having right
files is important to understand module organization and content.

Split main.py controller file into two files, one for mail related controllers
(redirections) and one for discuss.

Rename files according to guidelines for wizards and views.

No functional change comes with this commit. This is only code move.

Task-2631873
PR odoo/odoo#75571
2021-08-25 13:12:11 +00:00
Thibault Delavallée 5553ad50bf [MOV] mail: reorder model files
As mail grows and will continue to grow, ordering imports and having right
files naming as well as right content in them is important to understand
module organization and content.

Containing

  * reorder init file to give an overview of models;
  * move ResGroups override in its own file, outside of res_users file;
  * split file containing MailActivity model and MailActivityMixin so that
    mixin is contained in its own file, easing followup;
  * split Activity and ActivityType models into two files;

No functional change comes with this commit. This is only code move.

Task-2631873
PR odoo/odoo#75571
2021-08-25 13:12:11 +00:00
Rémy Voet (ryv) bdc2241260 [IMP] barcodes: Avoid extra request
Avoids to do a RPC if the nomenclature is direclty passed through the
arguments while the barcode parser is initiate.

Also, makes the `load` method always returns a promise.

closes odoo/odoo#72685

Related: odoo/upgrade#2713
Related: odoo/enterprise#19226
Signed-off-by: Arnold Moyaux <amoyaux@users.noreply.github.com>
2021-08-24 15:23:51 +00:00
Rémy Voet (ryv) 0e3dcf091c [IMP] base: add warning if Chrome not installed
For test tours.
2021-08-24 14:13:33 +00:00
Rémy Voet (ryv) 6b6a333e71 [IMP] stock: add related use_existing_lots on picking 2021-08-24 14:13:33 +00:00
Benoit Socias 1aa9a7d76d [FIX] website: avoid losing link focus when clicking on popover
Before this commit clicking between the buttons of the link popover
widget did deselect the link. When this happened, if edit was clicked
and the edited link was one within the popover widget instead of the one
on the page.

After this commit clicking on the popover between the buttons has no
effect anymore.

task-2630257

closes odoo/odoo#75544

X-original-commit: 536f72333297ea70cd06c83d92ab0d8f25c0142e
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
Signed-off-by: Benoit Socias (bso) <bso-odoo@users.noreply.github.com>
2021-08-25 12:02:03 +00:00
Benoit Sociasandqsm-odoo f240a42ab5 [FIX] web: avoid freezing the browser when scrolling to undefined
Before this commit the browser did freeze if scrollTo(undefined) was
called. This happened because our "closestScrollable"'s jQuery addition
entered an infinite recursive exploration of .parent() elements starting
from $(undefined).

After this commit such wrong calls to scrollTo() will not freeze the
browser anymore but crash instead. The closestScrollable function was
also made more robust and return an empty element instead of looping.

task-2630257

X-original-commit: d1cda0f3ebb942ad58273db36692f28fa8a3b197
Co-authored-by: qsm-odoo <qsm@odoo.com>
2021-08-25 12:02:03 +00:00
William Braeckman 1285726ff9 [FIX] project_timesheet_holidays: prevent multi-company issue in time
off.

When validating a time off with a company-less time off type, if the
time off type is configured to create timesheet entries in a project, a
multi-company security rule could be triggered by accessing the project.
We now check that the company of the task is valid in the current
context (it would make no sense to have an employee work on a task from
another company anyway) before creating the timesheets.

Closes odoo/odoo#75308

Task ID: 2628148

closes odoo/odoo#75579

X-original-commit: 29662626f7d67480926fbb12986ca644d213151c
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
Signed-off-by: William Braeckman (wbr) <Williambraecky@users.noreply.github.com>
2021-08-25 12:19:18 +00:00
Pierre Paridans 055b1eed65 [FIX] web: backport mobile OS detection support
This commit backports the mobile OS detection support, and specifically
Android & iOS one to allow more specific targeting of edge cases (i.e.
disabling native date picker in the mobile iOS app only).

opw-2613810

closes odoo/odoo#75577

X-original-commit: 7015dcd56566e93418f51e8e3562f384d10b4ffa
Related: odoo/enterprise#20446
Signed-off-by: Adrien Dieudonné (adr) <adr@odoo.com>
Signed-off-by: Pierre Paridans <pparidans@users.noreply.github.com>
2021-08-25 11:37:41 +00:00
Benoit Socias 78e2546006 [FIX] web_editor: make the background image positioning usable again
Since [1], this commit the controls for the background image positioning
were not accepting events anymore and were below margin handles.

After this commit the controls for the background image positioning can
be used again.

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

task-2627710

closes odoo/odoo#75576

X-original-commit: e266669361cde6f799683fa6b082777d0f416c57
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2021-08-25 11:12:23 +00:00
Zelong Lin ab33ea0282 [FIX] website_slides: prevent crash due to incorrect import
task-2510656

closes odoo/odoo#75573

Signed-off-by: Samuel Degueldre <sdegueldre@users.noreply.github.com>
2021-08-25 11:39:04 +00:00
Swapnesh Shah cd709652e3 [FIX] sale_crm: create "customer" partner when converting leads to quotations
When creating a new partner on the fly at lead convert time we should created
a customer-oriented partner. This is done through the use of a specific
``res_partner_search_mode`` context key allowing to handle creation of a
partner flagged as "customer".

closes odoo/odoo#75572

X-original-commit: 7d4d3d8f6582f23cf890aa2ba4d841702e4f3f89
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2021-08-25 10:27:05 +00:00
Tiffany Chang (tic) 37c01cd2c4 [FIX] mrp: correctly copy cancelled MO
Missed the case of copying a cancelled MO needing its cancelled
move_finished_ids to still be copied during commit:
79efbd0e4707892041ee7c58c81c1d7edd033edd

Steps to reproduce:
Step 1: make a MO and cancel it
Step 2: duplicate the MO and try to mark as done

Expected result: qty is produced
Actual result: Validation Error about quantity to produce must be
               positive (due to no move_finished_ids)

Follow up to task: 2618962

closes odoo/odoo#75569

X-original-commit: 56e7d4acc59a802c7613c1184858bda5bfb26748
Signed-off-by: Arnold Moyaux <amoyaux@users.noreply.github.com>
Signed-off-by: Tiffany Chang <tic@odoo.com>
2021-08-25 10:06:32 +00:00
Yannick Tivisse 24713b76b5 [REV] fleet: Revert multiple fleet mechanism
I don't get why you don't get it...

Partial revert of the taskID: 2415309
Com PR: https://github.com/odoo/odoo/pull/70313
Ent PR: https://github.com/odoo/enterprise/pull/18114
Upg PR: https://github.com/odoo/upgrade/pull/2447

closes odoo/odoo#75475

Related: odoo/enterprise#20406
Related: odoo/upgrade#2765
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2021-08-25 12:20:39 +00:00
alt-odoo b096f2a676 [IMP] lunch: add and order lunch orders by site in confirmation email
In case a vendor needs to deliver to more than one location site, we should
add the location name and address in the email sent to him.

closes odoo/odoo#75423

Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2021-08-25 06:03:39 +00:00
alt-odoo 1aaef7614d [FIX] lunch: use correct timezone when retrieving today's lines order
On the kanban view to order your lunch, we are retrieving today's order lines for
the current user. In _get_current_lines, we are using today's date without taking
into account the timezone of this user, which can prevent him to see/modify his
order of today in case it was ordered very early.
2021-08-25 06:03:39 +00:00
brsy-odoo 281e1a57b3 [IMP] mrp: MO/WO UI Improvements
Improve the UI for the MO and the WO with some new features, better readability and usability

- The forecast for the MO in draft makes the preparation of a MO easier. The behavior of `forecast_availability` depend of the state of the move
- The sum of expected duration and real duration in the MO, make the MO visually clearer
- The field Scheduled Date is rounding up to the next hour for less manipulation
- The automatic reference in a BOM if there is already a BOM for this product allows making less manipulation. I'm using this variable `number_of_bom_of_this_product` with the result of the query inside so I didn't need to do the query twice and the query doesn't take the current bom.
- A rounded value is better for the OEE in WO summary
- Have a tag for a workcenter can be a good idea to add more information to it. I'm using a random value for the color of the tag, we are doing it frequently to have a random color on multiple think.
- Knowing the final product of a WO is clearer
- To notify the user when creating a product with a reference that are already existing is a good idea.
- Change some color in the MO view for better readability
- And more minor tweak (like to align some part in the view)

--- Links ---
The PR: https://github.com/odoo/odoo/pull/74540
The PR on enterprise: https://github.com/odoo/enterprise/pull/20006
Task related: 2442895

closes odoo/odoo#74540

Related: odoo/enterprise#20006
Signed-off-by: Rémy Voet <ryv-odoo@users.noreply.github.com>
2021-08-25 07:50:36 +00:00
Kevin Baptiste fe161c2105 [IMP] resource: improve resources views
Improve the UX of the different resource.resource views.

closes odoo/odoo#73822

Taskid: 2566432
Related: odoo/enterprise#19695
Related: odoo/upgrade#2649
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2021-08-24 10:55:22 +00:00
Touati Djamel (otd)andfmdl c4ccee31c7 [FIX] purchase_stock : prevent wrong destination in PO
Steps to reproduce the bug:
- create 2 warehouses A & B
- create a new product and add a seller
- Create an Automated replenishment order of the created product for warehouse A
- click on “Automate orders”
- open PO
- in “other information” tab > change the picking type to the “warehouse B” picking type
- confirm order
- click on the receipt

Problem:
The destination location is “Warehouse A” instead of “Warehouse B”
The problem also appears after the duplication.

Solution:
Use the parent_path to check if the location that the user wants to use is below the original warehouse.

opw-2588082

closes odoo/odoo#75501

X-original-commit: bed546486aa667d735df015de8153d42a9af9a41
Signed-off-by: William Henrotin <Whenrow@users.noreply.github.com>
Signed-off-by: Djamel Touati <DjamelTouati@users.noreply.github.com>
Co-authored-by: fmdl <florent.mirieu@gmail.com>
2021-08-25 08:03:03 +00:00
oco-odoo aa308e7fe7 [FIX] account: don't only check the country of base tax when validating the country in multivat context
When creating from python or toying around with the onchange in the UI, it is possible that the user tries adding values in tax_tags_ids or tax_line_id that are not consistent with the tax_country of the move. The constraint didn't check that, and it should, as those cases are not legit at all and lead to incorrect amounts in the tax report.

closes odoo/odoo#75407

X-original-commit: a63bd4a033dbb8874c07ce0b30984d04a24e7215
Signed-off-by: Laurent Smet <smetl@users.noreply.github.com>
Signed-off-by: oco-odoo <oco-odoo@users.noreply.github.com>
2021-08-20 16:01:29 +00:00
Benjamin Frantzen (bfr) 4313ff667d [FIX] l10n_cl_edi, l10n_in_edi, l10n_it_edi: hide localization fields on tax and move form views when the record is from a different country
closes odoo/odoo#75537

X-original-commit: 8be5a4ab80671bdc4b94cc50e3982cf50e8d616f
Signed-off-by: bfr-o <bfr-o@users.noreply.github.com>
Signed-off-by: Laurent Smet <smetl@users.noreply.github.com>
2021-08-24 15:48:43 +00:00
Didier (did) 0385199a56 [IMP] mail: move chatter handlers inside the chatter model
Part of task-2579306

closes odoo/odoo#75297

Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2021-08-24 19:27:24 +00:00
Simon Genin (ges) 8ff923fec6 [IMP] mail: Make the channel name / description editable
Before:
Only the channel name was updatable and needed refactoring.
After:
The description can be updated as well and both edition have the same
code flow.

task id 2620687

closes odoo/odoo#74962

Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2021-08-24 18:54:36 +00:00
Zelong Lin 51ff8b09db [REF] *: convert JS files to ES6 modules
* = hr, hr_holidays, sms, snailmail, website_livechat, account_invoice_extract,
approvals, documents, mail_enterprise, calendar, crm, mrp, note, website_slides,
crm_enterprise, sign, social, voip

task-2510656

closes odoo/odoo#72712

Related: odoo/enterprise#19241
Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2021-08-24 14:31:55 +00:00
Benoit Socias 843507a35b [FIX] web_editor: keep each style when editing link
Before this commit editing a link that was saved with fill styles
did reset it to a different value and even changed the 'type' to 'link'.

After this commit re-editing the link works for each style.

task-2629461

closes odoo/odoo#75512

X-original-commit: 4f6cc912260c5b5689b0e87644ad119ef5a1389c
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
Signed-off-by: Benoit Socias (bso) <bso-odoo@users.noreply.github.com>
2021-08-24 14:14:28 +00:00
Francois (fge) d7dd853a82 [REM] mail: remove "Message a user" command
The "Message a user" command has been removed because a search with
the @ namespace in the command palette does the same thing.

closes odoo/odoo#75526

Task-id: 2622240
Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2021-08-24 13:33:27 +00:00
Hubert Van de Walle (huvw) 72b949b0e5 [REV] account: revert b324ba12b4af2d00c696bc5c42896c7c431d863c
It was preventing custom reports from being printed

opw-2625480

closes odoo/odoo#75522

X-original-commit: c9f5a502ab9b7436700c603c3330b715a3179ea1
Signed-off-by: Florian Gilbert <FlorianGilbert@users.noreply.github.com>
Signed-off-by: Hubert Van De Walle <hubvd@users.noreply.github.com>
2021-08-24 12:56:28 +00:00
Florent de Labarre 3d6ebbb55e [FIX] stock: impossible to set procurement group on order point
The field is not present in the view.

closes odoo/odoo#75502

X-original-commit: a392674a302b984b3a1e01a000717b4913403c38
Signed-off-by: Arnold Moyaux <amoyaux@users.noreply.github.com>
2021-08-24 09:46:06 +00:00
Victor Feyens 4b9ac88f1f [IMP] sale: stored compute fields are compute_sudo by default
closes odoo/odoo#72520

Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2021-06-22 10:02:16 +00:00
Victor Feyens 36fc80777e [IMP] sale: rename compute methods according to guidelines
Rename old computed methods to match guidelines, easing code
maintainability.
2021-06-21 17:47:26 +00:00
Victor Feyens 62f6dc8af3 [IMP] sale: clean product sale warning onchange part
Simplify the code, and do not instantiate useless variables when not 
needed.
2021-06-21 16:52:31 +00:00
Victor Feyens 4ddf8f279f [IMP] sale: pass placeholders content to translation call.
Use improved API from #52155 to fallback on the source string when the 
translated string is invalid.
2021-06-21 16:43:19 +00:00
Victor Feyens 80388c3b85 [IMP] sale: computed/related fields are readonly by default
Simplify field definitions by removing useless readonly=True specs.
2021-06-21 16:35:24 +00:00
Victor Feyens 73f09b73c7 [FIX] sale: do not allow modification of partner on So lines 2021-06-21 16:31:01 +00:00
Victor Feyens 1f14da4480 [FIX] sale: conflicting method names
Two methods on sale.order model had the same signature, i.e. _onchange_commitment_date.
This commit renames one of the two methods to make sure both methods are correctly
called.
2021-06-21 16:26:06 +00:00
Victor Feyens d8369685f8 [FIX] sale: translate customer warning title
* Also clean the onchange content and rename it accordingly to guidelines.
2021-06-21 16:24:51 +00:00
Xavier-Do 157651f7b0 [FIX] profiling: add profile entry manually before calling libsass
This commit proposes a mechanism to manually add a frame before a
blocking c-call and triggers it before calling libsaas.compile.

closes odoo/odoo#75519

X-original-commit: f836ff3a67d446cd8b3ab2cf573fab649153e6da
Signed-off-by: Raphael Collet (rco) <rco@openerp.com>
2021-08-24 12:31:44 +00:00
Xavier-Do f4d0c72816 [FIX] profiling: manage long calls with the GIL
Sometimes the profiler provides confusing information.  This happens
when calling a C library without releasing the GIL (Python's global
interpreter lock).  The time spent in the call will be attributed by the
profiler to the former stack trace, because the collector cannot run
during the call.

This commit adds information on the frame when a given stack frame has
lasted for too long.

X-original-commit: 5e193c5dbcdfbdbab38309ed292131ae1f5d3026
2021-08-24 12:31:43 +00:00
Jacky (trj) f11eb1dcca [ADD] pos_sale_product_configurator: add optional products in the product info popup
With the module sale_product_configurator, you can add optionnal
products on your product to suggest them during the sale process.

We are now displaying them of the info popup of a product to easily find
them in the POS, and we also allow to automatically open this popup for
products having such optionnal products.

closes odoo/odoo#71203

Task-id: 2518884
Signed-off-by: pimodoo <pimodoo@users.noreply.github.com>
2021-08-24 11:57:40 +00:00
Jacky (trj) 6e7450ac6a [IMP] point_of_sale: added product info popup in UI
When you are in the backend, you can't easily retreive the infos related
to your products. You have to go back to the backend to check your
stock, get the cost of your products, ...

So we've add a popup that display all those relevent infos of the
choosen product. This popup can be triggered through the small button on
the product or the button info for the selected order line.

TASK-ID: 2518884
2021-08-24 11:54:18 +00:00
Jacky (trj) 4b1a9f04e5 [FIX] point_of_sale: ChromeAdapter's extension removal
Before this commit, the willStart hook was called twice each time a
popup component was opened.

TThe 'PopupControllerMixin' is a mixin that set the listener to the
'show-popup' event and display the required popup when catching it.
Before only the Chrome widget was extending this mixin, and now it is
extended twice, leading to having two listener.

By avoiding to extend the ChromeAdapter with the popup mixin, there
still only one listener, and it is not triggered two times
2021-08-24 11:48:16 +00:00
Habib (ayh) 3ceb6737be [FIX] l10n_ar, l10n_ch: multicurrency tests
since odoo/odoo@4402949 all currencies are inactive by default - activate currencies required for l10n tests

closes odoo/odoo#75278

Related: odoo/enterprise#20341
Signed-off-by: Josse Colpaert <jco@openerp.com>
2021-08-19 06:48:34 +00:00