Commit Graph
137379 Commits
Author SHA1 Message Date
Sébastien Theys 1d7285dc56 [FIX] mail: speed up JS models x2m link/unlink by keeping prev Set
Part of task-2308312

X-original-commit: 1a06077443582f99f58c8c62ab517e7e527f58ed
2020-08-03 15:49:03 +00:00
Sébastien Theys 505f0e9be9 [FIX] mail: batch insert to speed up _setRelationInsertAndReplace
Part of task-2308312

X-original-commit: ceac1e5c3e200c0617ae6b62227079b47a7623d5
2020-08-03 15:49:03 +00:00
Sébastien Theys 470280b663 [FIX] mail: use Map to speed up _toUpdateAfters
Part of task-2308312

X-original-commit: 225c17ea2c761cf8cd15305796e7da7c5b79353c
2020-08-03 15:49:03 +00:00
Sébastien Theys 24fba9fed7 [FIX] mail: speed up insert by using localId instead of find
Part of task-2308312

X-original-commit: 407dc9796543a27b6695c8d4da922c13dece5b38
2020-08-03 15:49:02 +00:00
Nisha patel 7f3a8d9928 [FIX] hr: Hide employee chat button in modals
Currently, the "Chat" button appears in the form view when it is
displayed as a modal and on click sends to the app switcher
because js_class is not loaded on the dialog when employee
form view is opened through the one2many(dialog).
For ex: in online appointment when on click on 'available
emloyee' it will open the employee form view in dialog and there
is a chat icon but it does not work.

So in this commit, we fix this issue by hiding the "chat" button
when the view is displayed as a modal. make a button visible
based on action context and when form view is oped through the
click of one2many then do not display the chat icon on modal
dialog.

closes odoo/odoo#55345

Taskid: 2291340
Closes: #54381
X-original-commit: e2bac64411f80a3fcf2c5d5d60ad3eccf6517e56
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2020-08-03 15:48:34 +00:00
Arnaud Joset 7ebe85f138 [FIX] base: contact widget: address was not properly aligned
Before this commit, the address of the company in the boxed template was not properly aligned with the tag line.

closes odoo/odoo#55344

Taskid: 2287262
X-original-commit: 03cfc283df715247fc33ce78698582788c1d4aa9
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2020-08-03 15:42:10 +00:00
Jinal Patel 950c7d415d [FIX] hr_holidays: Fix the automatic change of duration in allocation
In the commit, https://github.com/odoo/odoo/commit/3bd345597fa932abdaf780f72bacf331690f549b#diff-4b74c5cd47565e7fbe2a526d12a577c4L300
which convert the onchange to compute, there was onchage on
number_of_hours_display and on number_of_days_display which
going to write the value to number_of_days. but it was missed
in above commit so value was no upated in number_of_days.

So due to that when we try to allocate the duration in terms of days
or hours in time off allocarion and save it, it will be automatically
takes the default value.

So in this commit, Fix the issue and update the number of days based on
number_of_days_display and number_of_hours_display also set the default
value for number of days/hours when change allocation type or holiday
status type.

closes odoo/odoo#54715

Taskid: 2275933
Closes: #53014
X-original-commit: 5fe6ae94bb61cc27f8f3326408d749680e4f79e1
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2020-07-20 14:45:44 +00:00
jbm-odoo a9a64ffc0c [FIX] hr_attendance: Kiosk mode
After #56a8c9e4311d24c33b7ad08b8230e4be345a85b8 we check access rights in function fields_view_get,
so a user with only 'Kiosk Attendance' right can't see public
employee profile.

After this commit:
In attendance application, we always show public employee profile
as it not usefull to show more information in this application.

closes odoo/odoo#55341

Taskid: 2298803
X-original-commit: 1fbb8f1ebcb805317b93e0b4ea363aaec8e3e36e
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2020-08-03 15:11:54 +00:00
Thibault Delavallée 01f93f7a4b [FIX] website_event(_track): allow event managers to unlink menus
Followup of 69d2513de21c2e80de605f77912a3687b8a79c6d : fix computation of menu fields values to
be more inlined with base menu option (website_menu) + True by default when
activating menus.

Also force update when writing directly on a menu field to ensure coherency
of website.event.menu.

PR #55325

closes odoo/odoo#55340

X-original-commit: 19d028aa885d5623ae98b26ad135a1b29c89d5ee
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2020-08-03 15:10:14 +00:00
Thibault Delavallée 47677c5f0c [FIX] website_event: tune registration complete page
PURPOSE

Improve registration flow

SPECIFICATIONS

Followup of 2b5c0b41b20c8a73406fb71fa4a653a6867deac2 : better display of registration complete
page, notably event (not a link, simply in muted) and add some anchors to ease
inheriting module.

MIGRATION / UDPATE

Updated template: website_event.registration_complete

LINKS

PR #55325

X-original-commit: 93aacc5d5ea3de380d7979a6d435371b6fc38bdd
2020-08-03 15:10:14 +00:00
Thibault Delavallée ef9b26f064 [IMP] base: support giving tzinfo to QWeb babel datetime format
PURPOSE

Allow to finely tune display of datetimes in front-end by adding support of
tzinfo parameter of babel format_datetime. See babel for more details about
its use.

Also add some missing translations bits due to last QWeb options added.

LINKS

Followup of 69d2513de21c2e80de605f77912a3687b8a79c6d

PR #55325

X-original-commit: c7d6e90c93e505950496eec382c89a9936d243be
2020-08-03 15:10:14 +00:00
Victor Feyens 260383a2e2 [FIX] account: wrongly defined fiscal pos constraint
Wrong usage of self in for loop

closes odoo/odoo#55334

X-original-commit: 5a0b06ab0447f2b09e71934f2cc3209e6ebe9359
Signed-off-by: Victor Feyens (vfe) <vfe@odoo.com>
2020-08-03 14:22:03 +00:00
Arnaud Joset 38ac9eb733 [IMP] base: increase margin_bottom for paper format
Before this commit, footer were too small for "clean" template wieh the company address is displayed on 5 lines.

closes odoo/odoo#54330

Taskid: 2287262
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2020-07-27 08:06:24 +00:00
william 75d4ffc83b [FIX] account: update the sequence when we change the date
The first Journal Entry of a tuple (period, journal) has a name set by
default so that the user can change it before posting.
If we changed the date after the name has been given, it never changed
anymore; meaning the number could not be of the same period as the date
of the Journal Entry.
We now always reset the name to the default one if the name has to be
recomputed (change of date/journal)

closes odoo/odoo#55321

X-original-commit: 0c5d71aab8eefb57116a5b93b4c67222a080ddec
Signed-off-by: Laurent Smet <smetl@users.noreply.github.com>
Signed-off-by: wan <william-andre@users.noreply.github.com>
2020-08-03 12:11:32 +00:00
Odoo's Mergebot 30d1222d11 [MERGE] hr_timesheet: clean durations expressed in hours if encoding unit is in days
Purpose
=======

There are several places where the duration is expressed in hours even though the encoding unit is in Days.

Specifications
===========

The duration should be expressed in days instead of hours in the following places:
 [x]    Timesheet Entries
 [x]    Portal > Tickets
 [x]    Portal > Timesheets
 [x]    Portal > Tasks
 [x]    Portal > Sales Orders
 [x]    Project Overview
 [x]    Project task form view (in this case, the label of the field should be 'Planned Days')
 [x]    Timesheets > HR Timesheet/Attendence Report
 [x]    Project > All Tasks

Hide the following elements if the encoding unit is in days:
 [x]    'Timesheet Timer' feature on the project form view
 [x]    'Timesheet Timer' feature on the Helpdesk team form view
 [x]    the 'Round timesheets' feature in the settings of Timesheets (except if the 'Awesome Timesheet' feature is enabled)

Bonus point:
 [x]    Timesheet form view: 0.00 Days should be displayed in read-only if the duration = 0

 Some labels need to be adapted to explicit the unit of measure (is it carrots? potatoes?): e.g. Duration (Days) or Time Spent (Hours) :
 [x]    Timesheet entries report
 [x]    on the portal
 [x]    Project overview: add 'recorded' next to Hours/Days
 [x]    Project overview: add 'Days/hours Spent' above the total by employee
 [x]    task form view: make sure the 'sub-tasks days spent' button/label stays on one line

 [x]    hide the 'start' button on project tasks and helpdesk tickets if the encoding unit is in days

Task ID : 2152322

closes odoo/odoo#46184

Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2020-08-03 15:32:46 +02:00
Arnaud Joset b5762c00f9 [FIX] stock: do not override execute in res_config_settings
closes odoo/odoo#55317

Taskid: 2304307
X-original-commit: f659344ceaf71f105e5dbea53160f67f056605fe
Signed-off-by: Arnold Moyaux <amoyaux@users.noreply.github.com>
2020-08-03 11:51:12 +00:00
qsm-odoo 8f82191e9d [FIX] website_blog: remove useless button to edit tags
The button was broken by [1] on top of now being useless anyway. This
commit simply removes it and takes the opportunity to share some
duplicated XML code at the same time.

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

closes odoo/odoo#55320

Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2020-08-03 11:55:27 +00:00
William Henrotin 47e40e7f6a [FIX] mrp: usability fixes
- Default quantity on MO is 1.0
- Default quantity to consume on move is 1.0
- No open on the company_id from BoM form
- Optional=Hide for product, qty on BoM form
- Backorder button renamed to Validate
- Date deadline and origin to Miscellaneous tab
- Be able to remove stock_move when the MO is draft
- Some renaming in the menu and run scheduler under planning item

[FIX] mrp: fail to create stock.move after MO confirmation

Since the product_id on stock.move is readonly once it is set and the
MO is confirmed, it's not send to the server and the create crash
since product_id is NULL.

closes odoo/odoo#55270

Related: odoo/enterprise#12148
Signed-off-by: Arnold Moyaux <amoyaux@users.noreply.github.com>
2020-08-03 09:38:33 +00:00
William Henrotin 55c0d13104 [FIX] mrp: sample on workorder tree view
Decoration has to be adapted since the sample server fill
popover with false and the render fail.
2020-08-03 09:20:34 +00:00
William Henrotin eae0042e27 [FIX] mrp: hide detail operations button on MO draft
Since the user can't input quantity done on stock move without
tracking. He shouldn't be able to do it for tracked products.
2020-08-03 09:18:34 +00:00
William Henrotin b924320a29 [FIX] mrp: hide lot field in state draft 2020-08-03 09:17:44 +00:00
William Henrotin 9c06651bce [FIX] mrp: correct wording 2020-08-03 09:16:38 +00:00
Anh Thao Pham (pta) cae4ac2381 [FIX] web: display 0 for FieldFloatToggle
The field was hidden in UI when its value was not set or equal to 0.

Display the field if its value is set to 0.

[IMP] web: clean code
2020-07-23 13:54:39 +02:00
Anh Thao Pham (pta) 61cbee3703 [IMP] sale_timesheet: clean display of Days for timesheets
Display Days instead of Hours in project overview if encoding unit for timesheets is set to Days

[IMP] sale_timesheet: update some labels in Project Overview

[IMP] sale_timesheet: fix style in Project Overview

[IMP] sale_timesheet: clean code

[IMP] sale_timesheet: add some rounding in project overview
2020-07-23 13:54:11 +02:00
Anh Thao Pham (pta) 6752e43232 [IMP] hr_timesheet_attendance: allow to display Days in timesheets
Display Days instead of Hours in "HR Timesheet/Attendance Report" if encoding unit for timesheets is set to Days
2020-07-23 13:12:36 +02:00
Anh Thao Pham (pta) 7e49130d89 [IMP] hr_timesheet: hide the "Round timesheets" feature in the settings of Timesheets if encoding unit is Days
[IMP] hr_timesheet: hide the "Timesheet Timer" feature in the project form if encoding unit is not Hours

[IMP] hr_timesheet: clean display of Days for timesheets

A computed field has to be added to retrieve the encoding uom of the current company and be used in the views.
FieldTimesheetFactor field has to be registered to "float_factor" widget for the "planned_hours" field to work correctly with Days
(for the conversion from hours to days to be computed and to be able to set a greater value than 1 day)

If encoding unit for timesheets is set to Days:
- Display Days instead of Hours in Portal > Timesheets
- Display Days instead of Hours in Portal > Tasks
- Display Days instead of Hours in Portal > Invoices & Bills
- Display Days instead of Hours in Portal > Tickets

[IMP] hr_timesheet: display clean duration in Timesheet Entries

Display Days instead of Hours in Timesheet Entries (print action) if encoding unit for timesheets is set to Days

[IMP] hr_timesheet: correctly display timesheets in Days if configured to

- correctly display remaining days in project.task kanban and list view
- hide timer start button if timesheet is configured in Days
- update several column names

[IMP] hr_timesheet: clean code

[IMP] hr_timesheet: small improvements when displaying timesheets in days

- Rename some labels
- Fixes style
- Prevent fields displayed with widget "timesheet_uom" to change when timer is on
- Display correctly "Initially Planned Days" field in task creation form
2020-07-23 13:12:12 +02:00
Robin Heinz c6d5948c75 [FIX] Delivery: Endless decimal display on list price
When creating a new delivery method with a provider based on rules, if the base list_base_price was equal to x.8, that ended to a float with endless decimal. (eg: 2.8000000000003)
This fix modify the display to show a rounded value.

closes odoo/odoo#54177

Task-id: 2272472
Signed-off-by: pimodoo <pimodoo@users.noreply.github.com>
2020-07-22 12:47:37 +00:00
Simon Lejeune 5adb0463ea [FIX] stock: default quantity to return
The code was wrongly always taking the reserved quantity on the already
returned moves, but if they're done their value is zero.

task-2291973

closes odoo/odoo#54807

X-original-commit: 7b08f0ae0a39e8f575b21e744de16264b6365704
Signed-off-by: Simon Lejeune (sle) <sle@openerp.com>
2020-07-23 08:00:08 +00:00
Benjamin Frantzen (bfr) f81c83153e [FIX] l10n_se_ocr, account : renamed old reference to invoice_payment_ref to payment_reference
closes odoo/odoo#54735

X-original-commit: a44db615d1fa6443810e88cc55471aff110c1393
Signed-off-by: bfr-o <bfr-o@users.noreply.github.com>
Signed-off-by: Laurent Smet <smetl@users.noreply.github.com>
2020-07-22 06:37:26 +00:00
Benjamin Frantzen (bfr) 6827951451 [FIX] l10_ar: fix constrains
- type has been renamed to move_type
- l10n_latam_use_documents is not writeable

X-original-commit: 048248d4c7b0ebd04652cc82652b2e11bfd1780b
2020-07-22 06:37:26 +00:00
Andrea Grazioso (agr-odoo) ff64332424 [FIX] account: No account on invoice lines
Create a product category with no accounts defined
Create a product [DEMO] in such category with no account defined
Create an invoice with the default journal which will have the default
account

Create an invoice line with [DEMO]
Upon selecting the product the default account taken from the journal
get cleared and there will be no replacement.
Since the account field is mandatory the account should be preserved

opw-2299228

closes odoo/odoo#54751

X-original-commit: f4c41997cfd560ded6d387324e5dbcf1b7183a36
Signed-off-by: Laurent Smet <smetl@users.noreply.github.com>
2020-07-22 09:37:07 +00:00
Nicolas Lempereur 3922182c97 [FIX] portal: hide public user avatar in chatter
On a chatter portal, when the user is using access token to display
record and is not connected, the message will be posted as the record
partner_id.

But then the preview of avatar in the composer is wrong: you see a
broken image (because you don't have access to "public user" partner
avatar) and when you post it anyway you see the avatar of the record
partner and not public user.

In this commit, if we are seeing the record with token and are logged
out as public user, we will not show the avatar in composer.

(note: before 13.0, the "public user" partner avatar was working)

opw-2276498
closes #54720

closes odoo/odoo#54782

X-original-commit: 97473f6a25336e8994730e7722cffb6fd0dbc6d7
Signed-off-by: Nicolas Lempereur (nle) <nle@odoo.com>
2020-07-22 13:51:34 +00:00
Robin Heinz 5cb25d43eb [IMP] point_of_sale: add setting for manual discount.
Add an option in the pos config to disallow the use of manual discount per order line.

closes odoo/odoo#51172

Task-id: 2082140
Signed-off-by: pimodoo <pimodoo@users.noreply.github.com>
2020-07-17 13:55:45 +00:00
Odoo's Mergebot 0fd287badd [IMP] web, web_tour: no dropdown for only one CTA
**PURPOSE:**
When there's only one CTA, the Action button is not necessary and add one extra clicks.

**SPECIFICATION:**
When there's only one CTA, do no group in an Action button.

**LINKS:**
Task ID: 2225270

closes odoo/odoo#51265

Related: odoo/enterprise#10602
Signed-off-by: Adrien Dieudonné (adr) <adr@odoo.com>
2020-07-22 15:57:27 +02:00
Romeo Fragomeli e15b5e16f5 [IMP] web: allow to override statusbar's buttons renderer
Related PR odoo/enterprise#10602
Task ID: 2225270
2020-07-22 12:58:46 +00:00
Siddarth Gajjar d4e3298b8b [IMP] web_tour: adapt statusBar CTA helper function
Now that for a single visible button there is no 'Action' dropdown, the
tour helper function has to be adapted.

Related PR odoo/enterprise#10602
Task ID: 2225270
2020-07-22 12:58:35 +00:00
Nicolas Martinelli 9bc3760af0 [FIX] point_of_sale, pos_hr: move image in appropriate module
Commit 987951a8d4 moved the CSS file from `point_of_sale` to
`pos_hr`. A file was forgotten.

opw-2293465

closes odoo/odoo#54771

X-original-commit: c0fd47d0993cdbf84cf4d13723e172399d119da5
Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
2020-07-22 11:15:18 +00:00
qsm-odoo d8e05bd64d [FIX] web_editor: restore custom snippet delete button
Clicking on the delete button of custom snippets was not working anymore
since [1]. Indeed, that button is placed inside the snippet thumbnail
which is the drag handle for the drag and drop feature. Since we now
start the drag as soon as the mouse is mousedown-ed, then the click on
the delete button cannot be intercepted.

This commit solves the problem by placing the delete button out of the
thumbnail element.

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

closes odoo/odoo#54770

X-original-commit: dac122935ac5c20526e529b09bf019f15a290d59
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2020-07-22 11:29:04 +00:00
Odoo's Mergebot 958c66011f [FW][MERGE] event_*: provide various fixes
RATIONALE

Even will soon gain a major update called Event Online, allowing to better
support full-online events. In order to prepare its merge, preparatory merge
are done to lessen the final diff.

PURPOSE

Prepare Event Online support by providing fixes and preparatory cleaning
commits.

SPECIFICATIONS

event_sale: do not copy SO information when duplicating a registration.
Indeed it makes no sense and leads to incoherent billing information.

website_event: fix ACL issue when updating menus through event fields
while not being website editor.

website_sale: fix visitor tests, make them independent from demo data.

LINKS

Task ID-2300907 (Event Bugprovements 2)
Prepares Task ID-2283796 (Event B2Basics)
Prepares Task ID-2252655 (master Online Event task)

closes odoo/odoo#54769

Forward-port-of: odoo/odoo#54627
Forward-port-of: odoo/odoo#54621
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2020-07-22 14:06:10 +02:00
Thibault Delavallée f7e7a273cc [IMP] website_sale: make visitor test independent from demo
PURPOSE

Prepare Event Online support by providing fixes and preparatory cleaning
commits.

SPECIFICATIONS

Make visitor tests in website_sale independent from existing visitors and
specially about demo data. Adding demo data makes tests crash which is not
the expected assert of visitor tests.

LINKS

Task ID-2300907 (Event Bugprovements 2)
PR #54621

X-original-commit: 971f26a14d5cbafd65f4370eac14f4cd762b5b44
2020-07-22 11:13:18 +00:00
Thibault Delavallée 97c6a79fba [FIX] website_event: allow event users to update menu entries
PURPOSE

Prepare Event Online support by providing fixes and preparatory cleaning
commits.

SPECIFICATIONS

Fix issue when updating menu organization fields on an event. Indeed it implies
some website menu and pages creation or unlink. Currently it crahes as only
website people can do it. Being an event user or manager should be sufficient
to update those menus

LINKS

Task ID-2300907 (Event Bugprovements 2)
PR #54621

X-original-commit: 264ebb6af3e991030a2f803281b90267502a0f84
2020-07-22 11:13:18 +00:00
Xavier Dubuc c43cdd3f19 [IMP] mail: hide message error notifications if not origin thread
task-2282370

closes odoo/odoo#54768

X-original-commit: 4f693105bcaac7546590302cdc25c2b11b0f42cd
Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2020-07-22 11:12:35 +00:00
David Beguin 1c2bc40a95 [FIX] survey: count answer as incorrect only if no correct answer in survey finish page graph
Before this commit, when computing the result graph data in the survey finished
page, a user answer for a question with no correct answer was counted twice,
once as correct, once as incorrect, as :
correct_answer == question_correct_answer == none

After this commit, we count an answer as correct only if question has a correct
answer.

Task ID: 2176630

closes odoo/odoo#54755

X-original-commit: 74a00111908556bce10ea3a5e748f5a5c81f6a40
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2020-07-22 10:06:28 +00:00
Mohammed Shekha e5ef19b730 [IMP] web: improve explanatory comment in owl_compatibility
after this commit, to update legacy widget from owl component,
one need to override renderWidget and updateWidget instead of
render and update method, this has been changed from commit
https://github.com/odoo/odoo/commit/f2de55322e4d417815e6757517163dd0cff544cc

but comment were still has render and update method to override,
so with this commit update comments as well.

task-2238551

closes odoo/odoo#54763

X-original-commit: 16713aaacbd4f4a25bed435bfa9045fab29a8c53
Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2020-07-22 10:40:14 +00:00
Hiral Bhavsar d8284d84bc [FIX] mail: update and re-render the activity view
Before this commit: when props change, the internal state of the widget not
updated for the activity view. So it creating many issues:
    - The count of the progress bar doesn't go to update while scheduling
      the activity of the same type.
    - Date displayed on cell not getting updated while changing the
      due date by clicking on the cell.

This commit will update legacy widget from owl component, one need to override
renderWidget and updateWidget instead of render and update method as this has
been changed from commit https://github.com/odoo/odoo/commit/f2de55322e4d417815e6757517163dd0cff544cc

After this commit: the acivity view will be updated based on activity changes

Task-2238551
PR https://github.com/odoo/odoo/pull/54734

X-original-commit: 02c7d121935ab1b26d896e31eb0c90bf2b7abff8
2020-07-22 10:40:13 +00:00
yhu-odoo b3c8287dc5 [IMP] mrp,stock(_picking_batch): improve empty screen
1. Batch transfers: set demo data backgroud for Kanban & Tree
2. Packages: set demo data backgroud for Kanban & Tree, update the
helper message.
3. Lot/SN: improve helper message.
4. Stock inventory: use a scanner instead of the smilling face in the
helper.
5. Replenishment: Enable sample data and use new helper image.
6. mrp: Enable sample date and use new helper image for workorder.

Task 2253588
PR #54415

closes odoo/odoo#54741

X-original-commit: 7c75ec9951f6d55121d6dc8cb4942e96641b4a66
Related: odoo/enterprise#11957
Signed-off-by: Simon Lejeune (sle) <sle@openerp.com>
2020-07-22 08:53:36 +00:00
yhu-odoo d976eb072a [IMP] mrp: Add empty screen sample to work center overview
Enable empty screen sample for work center overview, and improve the
helper message of work center and work order. We also removed create
button in the list view of work orders, and no create in calendar.

Task 2253588
PR #54415

X-original-commit: 26c7802f64b37fdb3159bef9b23741ec3fca4f01
2020-07-22 08:53:36 +00:00
yhu-odoo b9ffee84e4 [IMP] product: Add helper to vendor pricelist
How can we don't have the smiling face before?

Task 2253588
PR #54415

X-original-commit: ce7a16e649908a88f962a6b4c6c05e113457428b
2020-07-22 08:53:35 +00:00
qsm-odoo 85531edd1b [FIX] web_editor, *: restore editor UI for selected CSS variables
*: website

Commit [1] broke the UI for some options related to CSS variables when
using Chrome. The commit made sure the string-value CSS variables are
printed with quotes, so that the JS representation of the CSS values can
distinguish them (strings = strings with surrounding quotes, others like
colors, numbers, etc = strings without surrounding quotes). With chrome,
the printed surrounding single quotes are read as double quotes for
strange reasons though... so the value "a" was not considered equal to
the value 'a'.

This commit makes sure surrounding quotes are normalized. This is done
through a new utility function to read CSS variables. This also makes
sure the values are trimmed, and colors normalized.

[1]: https://github.com/odoo/odoo/commit/3a34e39caa8544059dfb1888edc29c62c3efde31

closes odoo/odoo#54757

Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2020-07-22 10:31:28 +00:00
Ivan Yelizariev 6d96111196 [FIX] doc: fix typo in guidelines
You can see on example below the updated line that it's module_name and not model_name

<!-- security -->
<record id="module_name_group_user" model="res.groups">
    ...
</record>

closes odoo/odoo#54756

X-original-commit: 56de03befa16eeaaec211b5fc08116ce778b52b7
Signed-off-by: Victor Feyens (vfe) <vfe@odoo.com>
2020-07-22 10:15:12 +00:00