Commit Graph
147686 Commits
Author SHA1 Message Date
Anh Thao Pham (pta) b2ddb3e917 [FIX] website_sale: fix disabled confirmation button for free order
- Go to website shop
- Add free product or discount to cart to make sure that total amount is 0
- Try to confirm order
It will not be possible because the "Confirm Order" button is disabled by
default and there is no way to enable it.

opw-2577089

closes odoo/odoo#74323

X-original-commit: c61349244ee09577c3e07e7b75da8a3c6134b0cf
Signed-off-by: Anh Thao PHAM <kitan191@users.noreply.github.com>
2021-07-27 14:51:34 +00:00
Pierre Masereel 5a620eded9 [FIX] pos_restaurant: don't mark order as printed
When the final receipt of an order is printed, the order is marked as
printed, as it can be then removed, and nothing can be added to it
anymore.

When the Bill is printed, we should not mark it as printed, as there
can be some modifications made after the bill is printed.

So as the bill receipt is an inherited object from the final receipt, we
have to change the behavior for the bill receipt to not mark the order
as printed.

OPW-2555272

closes odoo/odoo#74338

X-original-commit: 7504dd34557968b0ecfea0d5d2b0025516d1dda5
Signed-off-by: pimodoo <pimodoo@users.noreply.github.com>
2021-07-27 17:26:31 +00:00
Nicolas Bayet 3b6088dede [FIX] website: properly autocomplete url from LinkDialog
task-2586134

closes odoo/odoo#74327

X-original-commit: a6cc59d4efb7d63cdfe08d7bec496d048f1ae43d
Signed-off-by: Romain Derie <rdeodoo@users.noreply.github.com>
2021-07-27 15:45:12 +00:00
Ivan Yelizariev 2da2f5d5dc [FIX] product: speed up _get_possible_combinations
Excluding non-active records decreases number of combinations generated in
_cartesian_product. The excluded combinations have to be rejected anyway [1], so
don't waste time on it.

STEPS:
* activate "Product Configurator"
* create a product with many attributes
* make some `product.template.attribute.value` inactive (ptav_active = False):

  ** create a sale order with that value (e.g. color "Black" in "Customizable Desk (CONFIG)")
  ** delete that value in `product.template` form (tab "Variants")

* add the product to a sale order
* RESULT: `_cartesian_product` doesn't generates combination with archived attribute

[1]

https://github.com/odoo/odoo/blob/f9d26509a714ecd290c42e1d58e416bb01268447/addons/product/models/product_template.py#L839-L841

---

opw-2540675

closes odoo/odoo#74310

X-original-commit: ce487c920c777735e5e7e46ee131cb18dfc5c9fc
Signed-off-by: Ivan Yelizariev // IEL <yelizariev@users.noreply.github.com>
2021-07-27 11:05:17 +00:00
Odoo's Mergebot 375a515815 [IMP] web: redify branch with wrong xpath qwebjs
In case of wrong xpath in qweb js and that xpath applied during test, now branch is red

closes odoo/odoo#74292

Related: odoo/upgrade#2674
Related: odoo/enterprise#19887
Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com>
2021-07-27 18:22:29 +02:00
Jeremy Kersten 040b49bef9 [FIX] account: remove dead css
This class has been removed in commit d201a39357
2021-07-27 07:54:42 +00:00
Jeremy Kersten 7c4a57edf3 [FIX] website_sale_management: remove useless module
This module only exists to xpath a view.
Xpath is broken since 2017 and content already present into website_sale
with the <t t-extend="website.dashboard_header">
2021-07-27 07:54:42 +00:00
Jeremy Kersten 1e325c6970 [IMP] web: redify runbot in case of wrong xpath qweb2 2021-07-27 07:45:57 +00:00
Tiffany Chang (tic) 0b60c863ef [IMP] mrp: don't require consumed widget when multi-location
Before this commit, it was required to always use the widget to edit the
consumed quantity of a component when multi-location or packages setting
is active. This was not user friendly so this commit relaxes the
requirement to only tracked products and gives users the option to still
edit the consumed move lines directly if desired. We also distinguish
between when using the widget is required or not with the widget button
color. Note that if quantity consumed is greater than amount reserved in
different locations, the difference will default to the move's source
location (this is consistent with what happens when the `qty_producing`
is changed in the MO and the consumed quantities are scaled to match.)

Task: 2518523
Upgrade PR: odoo/upgrade#2655

closes odoo/odoo#73939

Related: odoo/enterprise#19732
Signed-off-by: Arnold Moyaux <amoyaux@users.noreply.github.com>
2021-07-26 12:04:30 +00:00
Tiffany Chang (tic) 1e2c03a47d [FIX] mrp: lock MOs by default
Previous specification of making MOs unlocked by default was confusing
for users and made it too easy to accidentally change the qty to consume
rather than the consumed amount. This fix makes it so MOs are now locked
by default and will be unlocked/locked (including existing draft /
confirmed / in progress MOs) automatically when setting is changed.
Previous setting (Lock Quantities To Consume) has been repurposed for
this. When setting is active, no lock/unlock button will be visible to
match the updated setting description (i.e. non-done MOs can
never be locked).

Task: 2518523
ENT PR (only fixes test): odoo/enterprise#19732
Upgrade PR: odoo/upgrade#2655
2021-07-26 11:57:50 +00:00
jbw d5ba4e032b [IMP] account: improve invoice/bills view
- Group filters into less technical/more functional approach
- Small tree view change

closes odoo/odoo#73723

Task: 2541366
Signed-off-by: Laurent Smet <smetl@users.noreply.github.com>
2021-07-27 08:47:34 +00:00
William Braeckman a83af8780c [IMP] hr,hr_presence: presence report ux improvements
Previously all buttons would be displayed in a single row, this commit
changes it to two rows.
Also the bottom half of the button was unclickable due to an invisible
div, fixed with css.
Another button has been added to undo a manual presence state.

Task ID: 2584198

closes odoo/odoo#72976

Signed-off-by: Kevin Baptiste <kba@odoo.com>
2021-07-12 15:11:44 +00:00
Sébastien Theys 719689cb25 [IMP] mail: replace discuss control panel by new top bar
Part of task-2369636

closes odoo/odoo#71959

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2021-07-27 12:06:58 +00:00
jbw cef3f87321 [IMP] account: Allow batching vendor bills and refunds for same partner
Improve usability of payments. Allow selecting multiple Vendor Bills AND Refunds
and pay them all together in one single payment.

E.g. When running server action “Register Payment” for :
 - one 100€ Vendor Bill
 - one 50€ Vendor Bill
- one 80€ Refund
Previous result = one 150€ outgoing payment + one 80€ incoming payment
New result = one 70€ outgoing payment

closes odoo/odoo#69578

Task: 2475598
Related: odoo/enterprise#19902
Signed-off-by: William André (wan) <wan@odoo.com>
2021-07-27 09:06:18 +00:00
Thibault Delavallée 131239f7c4 [FIX] portal: manually subscribe when inviting
We should avoid autofollow as all recipeints are added as follower. When using
templates this could lead to a lot of unwanted subscription especially in batch
operation like share wizard.

Better subscribe those new people manually.

Task-2612911
PR odoo/odoo#60792

Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2021-07-27 13:35:21 +00:00
Thibault Delavallée d5445c2cc1 [FIX] mail, website_sale: remove unnecessary autofollow
When sending an email on an activity or a recovery email it is not necessary
to automatically include all recipients as follower. If they perform an action
on the record they will be added as follower. Same if they reply.

Task-2612911
PR odoo/odoo#60792
2021-07-27 13:35:06 +00:00
Florent de Labarre a87c89d4ab [FIX] various: respect mail_post_autofollow previous values when adding it
Purpose of this commit is to avoid forcing mail_post_autofollow to True when
it is set to False. It eases inheritance and custom behavior.

Task-2612911
PR odoo/odoo#60792
2021-07-27 13:34:22 +00:00
Achraf (abz) d3faed9d9f [FIX] account: Add layout to action send and print
When sending the same invoice from Invoices > list view > select an invoice > action > Send and print, the email received by the client does not contain the header and the link to the invoice

This PR adds the custom_layout attribute to the context of "Send & Print" action

opw-2544654

closes odoo/odoo#74311

X-original-commit: 8bb27b88326d6298a03a5fa3978ac99b0e1ee7e0
Signed-off-by: Josse Colpaert <jco@openerp.com>
Signed-off-by: Achraf <abz-odoo@users.noreply.github.com>
2021-07-27 11:48:14 +00:00
Julien Banken dbf81af435 [FIX] website: prevent auto-filling the 'Contact Us' form with 'false'
On the 'Contact us' form of the 'website' module, the client can
auto-fill the fields with the 'false' text string when the logged
partner has some missing values. This happens because the server
set the missing values to 'false' and the client directly uses those
values to update the form fields.

To solve the issue, the client will replace the falsy values set by
the server with an empty string before updating the form fields. That
way, the form fields will no longer be filled with the 'false' text
string.

task-2610948
Fixes 116d55d62fd411d3be5d9f0885dadac530839b99

closes odoo/odoo#74256

Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2021-07-27 09:52:11 +00:00
Nimesh Parmar 629719e53d [FIX] stock: use "or" operator in t-field so traceback is there
replace t-field with t-esc so it's support "or" operation

opw-2589887

closes odoo/odoo#74297

X-original-commit: 193946ff266ee947c7ca976e773849526ed119b1
Signed-off-by: Arnold Moyaux <amoyaux@users.noreply.github.com>
2021-07-27 09:16:43 +00:00
Swapnesh Shah a9f7796d55 [FIX] website: do not allow to create/edit views
Before this commit,
User was allowed to create new records from form view through
Graph view' action. Since we do not have a way to prevent opening
form view from Graph and also we should not Introduce new form view
on stable version.

With this commit,
we are disabling create/edit/copy from action.

closes odoo/odoo#74288

X-original-commit: e8c5302e5cb11f185d1d5b1ef43ab641b2be6f76
Signed-off-by: Romain Derie <rdeodoo@users.noreply.github.com>
2021-07-26 20:49:48 +00:00
Dhruv Patelandqsm-odoo a7d5bb1035 [FIX] website_forum: restore karma guidelines link in notifications
The link was added as text instead of HTML since the notification/t-raw
refactoring.

task-2601633

closes odoo/odoo#74276

X-original-commit: 3b5b460f20295983582946bfd841211884456cc5
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
Co-authored-by: qsm-odoo <qsm@odoo.com>
2021-07-27 08:30:51 +00:00
John (jol) 67dac2ad3a [IMP] account,sale: move tour bubbles on invoice view
The bubble on the invoice view, made the list slightly difficult to read.

It is a little bit better on the right.

closes odoo/odoo#73768

Task: 2476548
Signed-off-by: Laurent Smet <smetl@users.noreply.github.com>
2021-07-27 08:56:53 +00:00
std-odoo 540f7b8cab [IMP] mail_plugin: shorten the error messages
Purpose
=======
Shorten the error message to make them appear on a single line.

Task-2518668
See odoo/mail-client-extensions/pull/12

closes odoo/odoo#71542

Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2021-07-27 06:57:28 +00:00
std-odoo f29500287b [IMP] crm_mail_plugin: store the HTML version of the email on the lead
Purpose
=======
In helpdesk_mail_plugin and project_mail_plugin we store the HTML
version of the email body on the description field.

But in CRM, we store the text version of the email, we want this
behavior to be consistent and we now store the HTML version of the
email on the lead.

Task-2518668
2021-07-27 06:57:28 +00:00
std-odoo b96ff61808 [IMP] project_mail_plugin: add support for the gmail plugin
Purpose
=======
Allow users to connect their tasks to their Gmail mailbox.

Specifications
==============
Show the tasks related to the current partner (the sender of the opened
email) and allow to open them in Odoo.

Allow the users to create a task from the current email. He could
search the projects in which he want to create the task or even create
a new project.

Return the new of the newly created task.

Return the customer and his image when searching a project.

Task-2518668
See odoo/mail-client-extensions/pull/12
2021-07-27 06:57:27 +00:00
Jeremy Kersten 3c5167733f [FIX] website: fix anchor display + remove useless query
Before this commit, anchor select on link dialig was never shown
-> xpath done on attribute class but t-attf-class is used

Now we show the anchor input.

This commit also avoid useless anchor detection for empty url and external url.
Or in case of the selected url is the same than the last one loaded.

E.g. type /contactus -> load anchor -> choose one identicalfrom list
     before -> reload anchor
     now -> we don't refresh anchor screen

X-original-commit: 8e11a0b

closes odoo#74164

closes odoo/odoo#74272

X-original-commit: 6c930e72b7d00f7beb4c43024c52a3e6c44a35f4
Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com>
2021-07-26 16:57:01 +00:00
Nicolas (vin) ae7a0c3b9b [IMP] account: account account form view improvement
The account name field may be a bit too small when
having accounts with a longer name.
Change it to take more of the available space for
this field.

Task id #2608446

closes odoo/odoo#74006

Signed-off-by: Laurent Smet <smetl@users.noreply.github.com>
2021-07-27 08:20:21 +00:00
Mohammed Shekha 7fbe05cdd6 [FIX] web: prevent no content helper on delete/archive list records
before this commit: when deleting or archiving or unarchive all records of last
page in listview user is displayed with NoContentHelper while we still have
other records in previous page, user should be moved to previous page if all
records of last page are deleted.

after this commit: if user deletes or archives or unarchives all records of
last page in list view then user is moved to previous page.

task-2446911

closes odoo/odoo#74091

X-original-commit: cead08fe6876239d1260b40948fcd74069496a2c
Signed-off-by: Simon Genin (ges@odoo) <ges@odoo.com>
2021-07-27 05:16:38 +00:00
dasa-odoo 90d23eb3e2 [IMP] account: only generate email and pdf once on send&print invoice
action_invoice_sent() triggers two onchanges which normally don't happen at the same time. Added a check to one of them (onchange_is_email()), so that on action_invoice_sent(), only one of them calls the computationally expensive onchange_template_id_wrapper(), effectively halving the time taken.

Time for executing the action for one invoice dropped from over 3 seconds to a bit over 1.

closes odoo/odoo#74160

Signed-off-by: Laurent Smet <smetl@users.noreply.github.com>
2021-07-23 11:22:19 +00:00
Adrien Widart b97d360ade [FIX] fleet: always include current month in costs report
When consulting the costs reports, if the beginning of the dates range
has a day greater than the day of today (e.g., start date: 2021/02/25,
today: 2021/07/10 => 25 > 10), the costs of the current month won't be
include in the report.

To reproduce the issue:
(DB without any demo data. Let X be the day of the month for today)
1. Create a vehicle V
2. Add a service S1 for V
    - The category of the service type does not matter
    - Cost: 500
    - Date: today
3. Add a second service S2 for V
    - Same service type
    - Cost: 250
    - Date: Last month with a day > X (so if today is 2021/07/26, date
could be 2021/06/27)
4. Fleet > Reporting > Costs

Error: The report does not include S1

When generating the dates range, the current date is used as the end of
the interval. Since the interval step is '1 month', it will lead to an
issue in the above case:
Suppose today is 2021/07/26, the interval starts on 2021/06/27. Then, if
we add one month to this date, we have 2021/07/27, which is after the
end of the interval (2021/07/26), so the date is ignored. As a result,
current month won't be included in the report.

Note: A similar issue can happen with the contracts

OPW-2477004

closes odoo/odoo#74273

X-original-commit: 7ea6300f951bd426c94d721bb56e6ad85a58bd30
Signed-off-by: Kevin Baptiste <kba@odoo.com>
2021-07-26 17:03:06 +00:00
Adrien Widart 5c10ffe284 [FIX] fleet: use services dates in report start date computation
When adding some services to a vehicle that does not have any
immatriculation date, the costs report does not consider these services.

To reproduce the error:
(DB without any demo data)
1. Create a vehicle V
    - Remove the Immatriculation Date
2. Add a service for V
    - The category of the service type does not matter
    - Cost > 0
    - Date: today
3. Fleet > Reporting > Costs

Error: Costs Analysis is empty, the service is not considered

In the SQL view, the date used as start point is the oldest
immatriculation date. Therefore, if the vehicle doesn't have this date,
the report lines won't be generated.

OPW-2477004

X-original-commit: 8d362af654c1905535d78fbf8d73677633b65d63
2021-07-26 17:03:04 +00:00
Hardik Prajapati 6b90c0004d [FIX] web: resize list in form view overflows
Currently, When the One2many list contains a large amount of fields and the
user clicks or resizes the header, list takes table width as its initial width
and because of this list to overflows outside of the form view.
Issue raised after commit: d58edef12a

after this commit, clicking or resizing the list header does not impact the
width of the list.

TaskID-2388582

closes odoo/odoo#74277

X-original-commit: a145e1242118d3e539790327221486e1bd94e59a
Signed-off-by: Simon Genin (ges@odoo) <ges@odoo.com>
2021-07-26 17:44:29 +00:00
Anh Thao Pham (pta) f466b893a7 [FIX] hr_timesheet: fix incorrect company on timesheet report
- Create 2 companies (i.e. Company A & Company B)
- Create user with access to both companies and default company set to Company B
- Log with created user
- Switch to Company A
- Go to Project and create a new Project (i.e. Project X)
- Go to Timesheets and add a line for Project X
- Display all timesheets in list view
- Select created timesheet and print "Timesheet Entries"
Logo and address printed on timesheet report are from Company B.

Company used for timesheet report is default company of current user.

This fix will use company linked to the project if it is unique.
Otherwise, it will use current company.

opw-2502182
opw-2509463

closes odoo/odoo#74281

X-original-commit: 0812641544d49746d111ca4bb88a2091bf0dd6c8
Signed-off-by: LTU-Odoo <IT-Ideas@users.noreply.github.com>
2021-07-26 18:28:22 +00:00
Jeremy Kersten 268f9ee15a [FIX] website_sale_coupon: fix typo in test
closes odoo/odoo#74270

Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com>
2021-07-26 16:53:19 +00:00
Xavier-Do 288595f558 [FIX] *: add explicit license to all manifest
The license is missing in most enterprise manifest so
the decision was taken to make it explicit in all cases.
When not defined, a warning will be triggered starting from
14.0 when falling back on the default LGPL-3.

closes odoo/odoo#74245

Related: odoo/design-themes#48
Related: odoo/enterprise#19862
Signed-off-by: Xavier Dollé (xdo) <xdo@odoo.com>
2021-07-26 13:09:57 +00:00
Romain Derie 26dee545aa [FIX] website: unset menu/page m2o if menu url is a controller
Setting a controller URL to a menu which is linked to a page should unset the
m2o relationship to preserve the page URL.

Step to reproduce:
  - Create a page (with a menu) and save, eg: "My Page" (url will be /my-page)
  - Edit that new menu and change the URL to /shop (or any controller)

Issue:
  - The page URL is now /shop, which doesn't have a lot sense if there is a
    controller for that URL.
  - Unpublishing the website.page will unpublish the menu, as a menu needs its
    page to be published in order to be visible.

Note: The flow introduced here is the same as if you choose an URL of an
      already existing page, the menu's page will be unlinked from the menu and
      left with its original URL.

task-2575974

closes odoo/odoo#74163

X-original-commit: b52a01f76d89ebb7bdd75577e60a09f048c83000
Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com>
Signed-off-by: Romain Derie <rdeodoo@users.noreply.github.com>
2021-07-26 17:34:19 +00:00
Antoine Vandevenne (anv) 9dcaa4cc70 [FIX] payment: show tokens in the manage form even without any acquirer
This commit fixes the /my/payment_method page which wouldn't show
available tokens if not suitable acquirer was found.

task-2494916

closes odoo/odoo#74039

Related: odoo/enterprise#19769
Signed-off-by: Antoine Vandevenne (anv) <AntoineVDV@users.noreply.github.com>
2021-07-26 13:41:15 +00:00
Antoine Vandevenne (anv) a5bdad89f2 [REM] payment_ogone: remove the FlexCheckout API
Before this commit, the FlexCheckout API was used to process validation
operations only. It proved itself to be:
- unusable without making small payments with immediate refunds
- badly suited to PSD2 due to its Merchant Initiated Transactions (MIT)
- not worth the maintenance cost tied to its complexity given the simple
  flow that it implements
- inconvenient to integrate to standard payment flows
- poorly customizable in regard to the hosted tokenization page

This commit thus removes it entirely and drops Ogone's support for
validation operations with it.

task-2494916
2021-07-26 13:40:59 +00:00
Antoine Vandevenne (anv) 6df3cdaaa7 [IMP] payment: make the distinction between tokenization and validation
Before this commit, it was not possible for an acquirer to support
tokenization while not supporting validation because the acquirer would
be thought to be compatible with either flow based on the
`support_tokenization` field. This was a false assumption because some
acquirers, such as Ogone, can offer to tokenize a payment method in
payment with redirection flow while not allowing tokenizing a payment
method for future usage, without payment.

Note that this was not an issue for acquirers supporting the direct
payment flow because they could either support validation natively, or
seamlessly charge a small amount and refund it immediately to tokenize a
payment method.

This commit makes it possible for a module implementing the validation
operation to filter acquirers based on whether they support it,
regardless of their support for tokenization.

task-2494916
2021-07-26 13:38:49 +00:00
Mohammed Shekha 2e818e7af9 [IMP] web: display issue with fixed table layout list in group
Before this commit: When o2m inside inner group and it has record then
sometime group is not displayed side by side instead second group comes
below first group.

After this commit: If o2m inside inner group and it has record, it will
always displayed beside first group, the issue was occuring due to
o2m list table layout which is fixed and due to which group width
increased and second group comes below first group, here we are setting
max-width to listview so that it never increase width than max-width.

task-2571376

closes odoo/odoo#72700

Signed-off-by: Simon Genin (ges@odoo) <ges@odoo.com>
2021-06-24 12:07:23 +00:00
Julien Banken a03b57a1c5 [FW][FIX] slides: Do not show a traceback when the user provides an invalid video link
PURPOSE:

When the user creates a new content for a course and specify an invalid
video link, the system will display a traceback when the 'onchange' hook
of the field is triggered (i.e: when the user unfocus the field).

Instead of displaying a traceback with the 'Warning' function, we will
rather use the 'UserError' function which is more user-friendly and does
not provide any debugging information.

SPECS:

- Replace the 'Warning' function call with 'UserError'.

LINKS

Task id: 2607238

closes odoo/odoo#74237

X-original-commit: 7e9949b9c1e2e98a4d5059de695dbed95751b8b5
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2021-07-26 12:15:54 +00:00
lejeune quentin 6565a037d2 [IMP] pos_*: Use the POS in http under specific conditions
Because there are some restrictions with the HTTPS and trusted certificates
We forward, in some cases,  the POS and the POS RESTAURANT to a specific url.

HTTPS: /pos/ui
HTTP: /pos/web

To allow rules for webserver

We make this change when we check 'Direct Devices'
And when we use a 'Order Printer' type 'epson_epos'

closes odoo/odoo#74239

Tasks: 2597021
Signed-off-by: pimodoo <pimodoo@users.noreply.github.com>
2021-07-26 12:05:16 +00:00
Florent de Labarre bd9be9f061 [FW][FIX] survey: avoid retrospective computation
- Create a survey with passing score at 80 point
- Some user complete the quizz with 85 point, the quizz is "passed"
- If you update the passing score at 90, the quizz completed by user are now "unpassed".

This PR avoid to recompute quizz_passed.

closes odoo/odoo#74238

X-original-commit: d5355037545fb8366675b792f8cc5ed30ecca1bf
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2021-07-26 12:16:20 +00:00
Susana a7e3d8755a [FIX] l10n_cl: Fix cannot post invoice with a contact as a partner
closes odoo/odoo#73801

X-original-commit: b375317140ffdeb9afd8d587806de7a5dd6da72a
Signed-off-by: Josse Colpaert <jco@openerp.com>
2021-07-15 17:45:17 +00:00
Goffin Simon 2d4e01bb36 [FIX] purchase: RFQ showing product price on vendor link
Steps to reproduce the bug:

When sharing the RFQ link to a vendor, the price unit was displayed.
The price shouldn't be displayed if the PO is not confirmed.

opw:2547660

closes odoo/odoo#73681

X-original-commit: 4e2fd7552d5fd7fb1daeb65abffe11d42add09fb
Signed-off-by: Arnold Moyaux <amoyaux@users.noreply.github.com>
Signed-off-by: Simon Goffin (sig) <sig@openerp.com>
Signed-off-by: William Henrotin <Whenrow@users.noreply.github.com>
2021-07-14 09:19:25 +00:00
Florent de Labarre 37a344582e [FIX] mail: prevent useless write
In database with frontend and live chat there are lot of bad query error.
bad query: UPDATE "mail_channel_partner" SET "write_uid"=5,"write_date"=(now() at time zone 'UTC') WHERE id IN (328111)

closes odoo/odoo#74193

Error: Could not serialize access due to concurrent update
X-original-commit: f10e04e0a3352acd3af80cb78b192eae17b98280
Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2021-07-23 17:17:13 +00:00
prro-odoo e865961df6 [FIX] sale_timesheet: visibility attrs on Sale Order button
This is a fix of this fix: https://github.com/odoo/odoo/pull/73239

As the button has been moved to another module, the attrs were less coherent with the current (sale_timesheet) module.
An inheritance was made to add the correct attrs when this module is installed.

opw-2530161

closes odoo/odoo#74192

X-original-commit: 4ea0cddb57608eb7fc75066d2c4ff385c838e10c
Signed-off-by: LTU-Odoo <IT-Ideas@users.noreply.github.com>
Signed-off-by: prro-odoo <proose@users.noreply.github.com>
2021-07-26 07:14:14 +00:00
Samuel Degueldre 1eeab1e418 [REF] web: remove legacy rainbowman
The frontend code was still using the legacy RainbowMan, with the wowl
webclient, we rewrote this RainbowMan and started using that one
instead, but because the frontend code had no access to the wowl
environment, the legacy version was still used in the frontend. Since
the frontend now has access to the wowl environment, the old code can be
removed and the calls can go through the new effect service.

closes odoo/odoo#74148

Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
2021-07-23 12:14:10 +00:00
Guillaume (guva) b2f24c3ea0 [FIX] web : dark purple color doesn't work
Step to reproduce

- go to planning app
- configuration > roles
- set the color of a role to dark purple
- schedule > by role

The dark purple is not set, instead of that, #3daec3 is displayed.

opw-2601898

closes odoo/odoo#74185

X-original-commit: ee38f8e393e937c5694e6b75cd05b8a35d4f1624
Signed-off-by: Nicolas Lempereur (nle) <nle@odoo.com>
Signed-off-by: guva-odoo <guva-odoo@users.noreply.github.com>
2021-07-23 16:23:29 +00:00