Commit Graph
138616 Commits
Author SHA1 Message Date
Luis González 45dce9ce00 [FIX] sale: Access error when user as accounting access but not sale
If an user that only has access to accounting but not to sale, tries to
validate an invoice created from a sale order, an access error will be
raised. That's because, when the invoice status changes, the invoiced
quantity on the related sale order is recomputed using the current user,
which may not have access to read sale order lines.

This commit fixes the above by ensuring the recomputation is performed
with superuser access rights.

closes odoo/odoo#58304

X-original-commit: 0bf30e1b5907997ae22d27cc420c3533940d634f
Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
2020-09-23 09:39:38 +00:00
Nicolas Martinelli 39d32d8dd2 [FIX] l10n_ar: field renamed
The field `invoice_partner_bank_id` was renamed `partner_bank_id`

closes odoo/odoo#58295

X-original-commit: c58684c07658ef7170f9696cc2fbb033ec46ba96
Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
2020-09-23 08:47:00 +00:00
Priyanka Kakadiya 7b4efe3a76 [FIX] sms: fix sending failures sms wizard
due to breaking changes in https://github.com/odoo/odoo/commit/bf32b22ce247c19fda94ded74e37f7c6120ce2c4
and especially the part:

"NOTE 1.  If the default_get within the onchange returns a value for
a field that is not in the view, we ignore it, and it won't be saved.
Before, that value was kept and sent upon save.  This change in behavior
may prove problematic, although the overall risk is small.  Decision has
been made to keep heavy comments and code snippets if we were to revert
back somehow to the previous situation."

the wizard to sending failures sms was broken as the field notification_id
which is required was not present in the view and was thus ignored by
to web client when calling 'create'.

closes odoo/odoo#58294

Task: 2335273
Closes: https://github.com/odoo/odoo/pull/57912
X-original-commit: 9fed44512074d36f7b4aedf8ed08422304e433ea
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2020-09-23 08:46:38 +00:00
David Beguin eccf8b9f5c [FIX] survey: fix session manager style issues
This commit fixes a bunch of small issues on the session manager.
- Put the progress bar below survey link to optimise available room for title.
- Ensure attendees count is also updated when refreshing the results
and progress bar.
- Ensure the graph is correctly setup when there is no attendee yet.
- Update y axis in chart when new attendee join the survey in the middle of
a session.
- Set padding top to chart to avoid top bar label to disapear from chart if bar
is near 100%.

Task ID: 2343508

closes odoo/odoo#58291

X-original-commit: 018a07dc7bba85f5afdd41f8610098a3c493c82a
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2020-09-23 08:11:09 +00:00
fw-bot dd2ac143f7 [FIX] account: cash basis taxes: set move lines as tax_exigible=False only when some other line has a payable or receivable account in the move.
Before that, making a misc operation with cash basis taxes always set the move lines as tax_exigible=False (or at least, it was supposed to, see below). This was wrong, as if the move did not contain any payable/receivable account, it would result in no cash basis move being ever created, and so the entry would never affect the tax report.

Additionnally, the tax line was wrongly managed for cash basis taxes on misc entries, as vals.get('tax_ids') returned an ORM command, so a non-False value, even when the tax_ids field was empty. this caused the condition to execute and to reassign taxes to an empty list, which then caused tax_exigible not to be set to False, even when it should.

X-original-commit: https://github.com/odoo/odoo/commit/2437eb0691d07f92094152b84c96a2149c8f4fd8

[FIX] account: make tax exigible correct in cases where the move lines are created separetely from the move.

Additional fix on top of https://github.com/odoo/odoo/commit/02fe997932070cc101a96eb869023702c224318b

Also, add tax_exigible to the form view of account.move.line, as it will not be computed automatically anymore when modifying a single line in draft state through its form view. It now needs to be manually changed in case the user wants to change something having an impact on it through this form (note that this is absolutely not a typical use case).

closes odoo/odoo#58260

X-original-commit: 867797e4983b704599be7943490fc6f071d8c0b7
Signed-off-by: Laurent Smet <smetl@users.noreply.github.com>
Signed-off-by: oco-odoo <oco-odoo@users.noreply.github.com>
2020-09-22 16:00:14 +00:00
Julien CastiauxandThong Le 33bd1a951a [FIX] account,mail: default purchase mail alias non-ascii
* Change the `addons/account/i18n/vi.po` PO file to replace the
translation of `Vendor Bill` like msgids from `Công nợ nhà cung cấp`
to ` by `Hóa đơn Nhà cung cấp`, there should be 3. What's matter is
the `đ` character.
* Create a brand new Vietnamese database (using `-l vi_VN` and
`--load-language=vi_VN`)
* Install Invoicing (`account`), an email alias constraint is raised.

> You cannot use anything else than unaccented latin characters in the
> alias address.

During the installation of the invoicing module, an email alias is
created for every journal account of purchase type. The alias is created
using the current journal name. Here the journal name is `Hóa đơn Nhà
cung cấp`, as mail aliases should only contain ascii characters, we
attempt to remove the accents. The `tools.misc.remove_accents`
successfully remove most of them but the `đ` character is left as-is,
the final alias is `hoa-đon-nha-cung-cap` which is invalid as it
contains some non-ascii characters.

The `remove_accents` function uses the [NFKD] Unicode Compatibility
Decomposition Normalization Form. This normalization process unify all
abstract equivalent characters, i.e. characters only different by font
or rotation. While this normalization process helps to transcript a lot
of characters to their ascii compatibility equivalent, some 118,230
other non-ascii characters (mainly from the Chinese and Japanese scripts)
are left as-is as they lack an ascii compatibility equivalent.

The solution has been to not use the journal name but rather the journal
code or journal type as email alias when the name is unsafe. The journal
code is a short version of the name, the journal type is not
translatable so is always ascii.

One additional watchdog has been added to the sanitization function of
email aliases so non-ascii characters are replaced with a '?' which is
an authorized character in emails local-part.

[NFKD] https://unicode.org/reports/tr15/

Closes #55492
Closes #55493

closes odoo/odoo#58279

X-original-commit: 8dc85be3821cf26226cd0bf4ce2b6739e68fc66f
Signed-off-by: Simon Goffin (sig) <sig@openerp.com>
Signed-off-by: Julien Castiaux <Julien00859@users.noreply.github.com>
Co-authored-by: Thong Le <thongthele@users.no-reply.github.com>
2020-09-22 19:21:08 +00:00
Christophe Monniez 103d8f012e [IMP] tests: use concat demuxer to encode frames
When the sceencast argument is used to produce a video file of failing
tests, the framerate is computed with a KISS average.
This results in a misleading video flow. For example, if a tour step is
stuck, the average could show a smooth transition instead of the reality.

With this commit, the real duration of frames are used to produce the
video. The result is a more realistic video flow.

The configuration text file used by the ffmpeg concat demuxer is kept
alongside with the video file so that it can be used for other purposes
(e.g.: parse the durations to be used by a video player on runbot).

closes odoo/odoo#58280

X-original-commit: 58eb6a4565c024077557fa2de83fdf831e5ef026
Signed-off-by: Xavier Dollé (xdo) <xdo@odoo.com>
Signed-off-by: Christophe Monniez (moc) <moc@odoo.com>
2020-09-22 19:41:09 +00:00
stefanorigano (SRI) e89a960ec6 [FIX] website: remove console.log
Commit [1] introduced the console.log by mistake.

[1]: https://github.com/odoo/odoo/commit/eb34a7841978aea5c3f2d04121fd0e6adda94e3b#diff-24b0433302053618c5b742f3eded1d67R2153

task-2335267

closes odoo/odoo#58274

Part-of: #57942
X-original-commit: ae0f068e45fc2731862ee3ebfd28fa9e49f06102
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2020-09-22 18:51:18 +00:00
stefanorigano (SRI) 7bd5489d50 [FIX] web_editor: handle text selection
task-2335267

Part-of: #57942
X-original-commit: cbcedb463d96f01823b2bdab6c6cf465cb34c096
2020-09-22 18:51:18 +00:00
stefanorigano (SRI) 8bcb9af43e [FIX] web_editor: collapsible component, adjust design
task-2335267

Part-of: #57942
X-original-commit: 349fee8755b1919ef410d196a8e3f36e21f325e4
2020-09-22 18:51:18 +00:00
stefanorigano (SRI) e1707be5c3 [FIX] web_editor, website: reword theme options, highlight <we-title>
Reword some theme options, highlight <we-title> components when used as
a "sub-section" titles.

task-2335267

Part-of: #57942
X-original-commit: d6acbfee1834ab32460300b9d7f5dd9188f68014
2020-09-22 18:51:17 +00:00
stefanorigano (SRI) 5a6dc7b596 [FIX] web_editor, website: scroll effect dropdown
Fix the design. Trig animations hovering any part of the button rather
than its inner image only.

task-2335267

Part-of: #57942
X-original-commit: 55424d41b355ae1303f040bdd953e357365289f3
2020-09-22 18:51:17 +00:00
stefanorigano (SRI) e1b15e3768 [FIX] website: reorder/reword header's options
task-2335267

Part-of: #57942
X-original-commit: fb8fbc879cdd27ba751f64f205d97e53c1a03559
2020-09-22 18:51:16 +00:00
stefanorigano (SRI) 017ab2a3b9 [FIX] website: keep 'save/discard' btns consistent using themes
task-2335267

Part-of: #57942
X-original-commit: e6f01eeb2e127a6bbe0675050358910618f1b2ad
2020-09-22 18:51:16 +00:00
stefanorigano (SRI) d69636b5da [FIX] web_editor: dropdown pager, use default colors
task-2335267

Part-of: #57942
X-original-commit: a7fc666eff6d323492133c996dbfbebfe319f1d8
2020-09-22 18:51:16 +00:00
stefanorigano (SRI) e739bcf227 [FIX] web_editor: color-combination preview items alignment
task-2335267

Part-of: #57942
X-original-commit: e30f555770f22f91743c33b74615cea8ecdf983c
2020-09-22 18:51:15 +00:00
stefanorigano (SRI) 5ab7c51b2b [FIX] web_editor, website: color-combination preview misleading design
Adjust shadows/borders in order to make the color-combination box
stand-up.

task-2335267

Part-of: #57942
X-original-commit: 38ce0c20c6a82b75d77406419b25d90259b50293
2020-09-22 18:51:15 +00:00
stefanorigano (SRI) 8e460d0672 [FIX] web_editor: snippets library search bar, design adaptations
task-2335267

Part-of: #57942
X-original-commit: 1df8f70dd5e1de92ddebdd9033e3d72737bea9b9
2020-09-22 18:51:15 +00:00
qsm-odoo 3232744b3b [FIX] website: use correct z-index for right panel top actions buttons
Since [1], the editor panel is now on the right. The top actions z-index
was not adapted and was now too high and going above modals. It worked
before because the zindex was confined into the topbar stacking context,
which does not exist anymore.

[1]: https://github.com/odoo/odoo/pull/57975

closes odoo/odoo#58257

X-original-commit: 1d74680fe195a2ece367ad7251f4cc3a52dc132f
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2020-09-22 15:52:55 +00:00
Samuel Degueldre fe388460d8 [IMP] web_editor: perf; skip mutually-cancelling actions in editor
Previously, when the user quickly hovered over many options (eg when
trying to click on the last item of a select menu), all of the options
that were briefly hovered would be previewed in succession. While this
is not a problem for options that are fast to change, some option take
some time (eg, image filters), but all of the intermediary previews
would still show one after another, which is both very slow and
completely useless.

This commit adds a per-widget action queue. When a widget is called, it
will immediately add an action item to this queue, but when the
snippet_edition mutex becomes available to execute this action, it will
first check that this action will not be immediately reverted, and if it
will, the action is skipped entirely.

task-2337344

closes odoo/odoo#58256

X-original-commit: 4d1e47213627304329fa438cae6d6c58484dbb32
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2020-09-22 15:52:26 +00:00
tafaRU cb85e4baf5 [FIX] sale_project: batch confirmation of sales orders
The override of `_action_confirm` in sale_project will crash when orders from multiple companies
are confirmed together.
This commit adapts the method to handle multiple records correctly.

closes odoo/odoo#58269

X-original-commit: ab14083b0ddfb73da167938c43f35a992fbbe93c
Signed-off-by: Victor Feyens (vfe) <vfe@odoo.com>
2020-09-22 16:47:14 +00:00
Didier (did) eb1ddf99cb [FIX] mail: align the chatter topbar height and form view statusbar
task-2341787

closes odoo/odoo#58262

X-original-commit: 37a0203c1cfb2567c418016424cd04dea27e2557
Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2020-09-22 16:01:37 +00:00
Didier (did) c8b1353841 [FIX] mail: do not show "load more" on temporary thread
task-2341690

closes odoo/odoo#58251

X-original-commit: 9b56c82d3a4b07730490816a67911cbf60900158
Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2020-09-22 15:14:33 +00:00
Benjamin Vray 44ac5e7c22 [IMP] website: add spacing in team snippet
Add spacing between picture and text on mobile. Before this commit
there was no space between photos and team names on mobile devices

task-2312878

closes odoo/odoo#58249

X-original-commit: 35269de724816366be95063f9db3e0c936276043
Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com>
2020-09-22 15:05:28 +00:00
qsm-odoo 45604d255c [FIX] web_editor, website: fix fullscreen mode with right panel
Since [1], the editor panel is now on the right. The fullscreen mode
was not adapted correctly.

[1]: https://github.com/odoo/odoo/pull/57975

closes odoo/odoo#58242

X-original-commit: 8359ae12d8049ecf6f6de810ae74f096769038e2
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2020-09-22 14:17:01 +00:00
Nicolas Lempereur 56f04a273f [FIX] partner_autocomplete: show other errors
When IAP reply when an error for partner_autocomplete, show the error
instead of thinking `error` and `error_message` are res.partner data
which leads to subsequent errors.

opw-2337763
opw-2341473
closes #58024

closes odoo/odoo#58241

X-original-commit: 0c71cc51adf92582c89ae7c78141278bae341f22
Signed-off-by: Nicolas Lempereur (nle) <nle@odoo.com>
2020-09-22 14:16:37 +00:00
Harald Panten f05ae697dc [FIX] l10n_es Created new IVA Exento No Sujeto tax
According to the Spanish VAT reporting (mod 303), this commit has been created to fix some inconsistencies in section number 60.
Exempt taxes comming from training, for example, wouldn't be taken in consideration anymore.
closes https://github.com/OCA/l10n-spain/issues/1300

closes odoo/odoo#58223

X-original-commit: 75d0974eeb823a03bd194838ed213d2468903155
Signed-off-by: oco-odoo <oco-odoo@users.noreply.github.com>
2020-09-22 12:52:08 +00:00
Benjamin Vray d580408f59 [FIX] website: fix redirect message in the countdown snippet
Before this commit the redirect message was not added at the end of
the countdown if the content-with option of the snippet was not Regular

It was because we did an append on the '.container' class to add this
message and that class is replaced when we change the content-with.

task-2312878

closes odoo/odoo#58201

X-original-commit: f4e3cc6edda13d76368a38f3807be6ea5a279141
Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com>
2020-09-22 10:11:21 +00:00
Dharmraj Jhala 7e750ac639 [FIX] website_{slides,forum}: enable slide content and forum creation
Since a recent refactoring[1] is merged, few compute methods are being
called at record creation, and throws traceback because of newID.

This commit fixes the traceback by improving the compute methods and
thus enable users to create records of slide contents and forums.
Note - compute fields should be assigned a value, and so we update
the recordset with default values while creation. See below PR for
more information.

[1] - https://github.com/odoo/odoo/pull/55995

Task - 2325605

closes odoo/odoo#58196

X-original-commit: a677859a03c86bf6ac791c31f52ce8609bcba594
Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com>
2020-09-22 10:07:46 +00:00
qsm-odoo c0f1269280 [FIX] website: restore vertical alignement for half/full height snippets
Commit [1] broke the vertical alignement for half/full height snippets
while trying to improve it. Mentioned commit's goal is kept: not
messing up the alignement when enabling the scroll button and allowing
those height and scroll options for the big boxes snippets, but now
the content is still vertically centered (with or without scroll button
now). If the user do not want it centered, he still has the possibility
to increase the bottom padding.

[1]: https://github.com/odoo/odoo/commit/9d5cd2c1747488524c107e6165d7c55d74b80606

Part of https://github.com/odoo/odoo/pull/58192

closes odoo/odoo#58214

X-original-commit: 08154fb956b4983187eebc3116975772da7b95c4
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2020-09-22 11:44:05 +00:00
qsm-odoo ae1b838ab4 [FIX] website, *: properly stack the bg layers for big boxes snippet
*: web_editor

The big boxes snippet's content was appearing below the background
layers (filters, shape, video, etc).

Part of https://github.com/odoo/odoo/pull/58192

X-original-commit: f1bd8bc7ef8b084168816bc22d821acdffe2aaf6
2020-09-22 11:44:05 +00:00
Raf Geens cfe2d22999 [ADD] doc: port the searchbar from user to dev docs
The developer documentation already has a search functionality via Sphinx if
you use the right URL, but it was not exposed in the frontend. This commit ports
 the search bar from the user documentation.

Original commits: 17fc4219bd24e8993fc5ab3c00d9979f87a45e84 (rim) and
52e49eda472963e929ec7b004eae20c514364403 (kts) from
https://github.com/odoo/documentation-user/

closes odoo/odoo#58213

X-original-commit: b38059caf59a3fbd67989d89317cfdc9f3be35a3
Signed-off-by: Richard Mathot (rim) <rim@openerp.com>
2020-09-22 11:42:36 +00:00
qsm-odoo 46c3a9670d [IMP] web_editor, website, *: move text tools in snippets panel
*: website_event, test_website

This commit is a series of hacks. The goal is to move the summernote
text tools to the editor panel for the website editor. All the code
to use the text tools in a top bar is kept (mass mailing, etc) and the
text tools are placed at the right place for website in an ugly way.

This is obviously temporary, until we can implement those text tools
more generically and in a better way thanks to the new editor.

Part of https://github.com/odoo/odoo/pull/57975
task-2344227

closes odoo/odoo#58199

X-original-commit: ff81fa4798e232a03daf0eeff7d85ad35a52b25c
Related: odoo/design-themes#365
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2020-09-22 10:09:36 +00:00
qsm-odoo 48b12387d5 [IMP] web_editor, *: move the left panel to the right
*: website, mass_mailing

See parent commit for information about the scrollbar moved to the
'#wrapwrap' element, which was necessary to achieve this right panel
design. Note: in the future, having the scroll on the #wrapwrap may
not be necessary anymore as the edition might be done in an iframe.

Part of https://github.com/odoo/odoo/pull/57975
task-2344227

X-original-commit: 2abe8517063b2696cc89e9a453dcc3921fb3b8c7
2020-09-22 10:09:36 +00:00
qsm-odoo 9f048625e1 [IMP] website, *: move page scrollbar to #wrapwrap
*: web, web_editor, portal, account, website_blog, website_forum

This is probably not ideal to move the scrolling behavior out of the
html element but this will be needed for the editor to not have a double
scrollbar on the right. This is actually also useful for the scrollbar
to appear under the purple odoo menu instead of its right.

This commit, if to be reverted in the future, however contains many
improvements to make the transition easier that should be kept: jQuery
and Odoo functions to be able to scrollTo a specific element, get the
top scrollable element, check if an element is scrollable, etc. Also,
some magic was done: if some code tries to scroll to a specific scroll
position via jQuery's scrollTop or animate functions on the html/body
element, those will still work as intended (obviously, using the new
utils to do that is however recommended).

This commit also reviews our scroll behaviors to make them more robust
and share the code.

Part of https://github.com/odoo/odoo/pull/57975
task-2344227

X-original-commit: 4e7be69825163c0a0ff41c882a196fc7f3158fb3
2020-09-22 10:09:36 +00:00
qsm-odoo e3c23b50ee [FIX] website, *: make scroll to anchor consider the fixed header
*: website_blog

This was fixed and rebroken quite a few times. Hopefully, with this
commit and the next ones, the feature will be more robust: when clicking
on a link anchor, the animation now considers the fixed header height if
any *even if the header becomes fixed during the animation*.

Part of https://github.com/odoo/odoo/pull/57975
task-2344227

X-original-commit: 416b125803d043badef8e4b022c100e33d1dba04
2020-09-22 10:09:35 +00:00
qsm-odoo 80d35e420e [FIX] website: correctly add o_top_fixed_element class on header
The class is supposed to be placed on elements which are absolutely
positioned over the main scrolling element at the top of the page. It
was wrongly placed on headers as soon as they become fixed while they
should have been placed on headers as soon as they become fixed *and*
over the main scrolling element.

Part of https://github.com/odoo/odoo/pull/57975
task-2344227

X-original-commit: ee47bd9ce0da526ea5b3387a354ab8fbd06cc55f
2020-09-22 10:09:35 +00:00
qsm-odoo 08f054199e [FIX] web_editor, *: wait for drag & drop ending before saving
*: website

This is not the cleanest of fixes because the original code have to
be refactored first but this solves the problem we had *sometimes*
when drag and dropping a snippet then immediately saving (only saw the
bug in automatic tests): same as all snippet options, the operation had
to be mutexed so that saving is done after its full execution.

Part of https://github.com/odoo/odoo/pull/57975
task-2344227

X-original-commit: 277f39904e7218bef2dd23b1c5b719ce8660008f
2020-09-22 10:09:35 +00:00
qsm-odoo c9cb4a65fc [IMP] portal, website_blog: lint some files before fixing them
Part of https://github.com/odoo/odoo/pull/57975
task-2344227

X-original-commit: 392456d686370937700a1f42f879ab6fe5ef4e68
2020-09-22 10:09:34 +00:00
jbm-odoo 5f4ef0000a [FIX] sale_timesheet: Billable project
taskId 2338803

closes odoo/odoo#58198

X-original-commit: 81b6e13cc6d2065c9274a50719acfeebe0d7cf99
Related: odoo/enterprise#13405
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
Signed-off-by: jbm-odoo <jbm-odoo@users.noreply.github.com>
2020-09-22 10:08:51 +00:00
jbm-odoo edee29613d [FIX] microsoft_calendar: Badge when sync is active
Add a cron to sync events in Microsoft calendar
In Google and Microsoft calendar: remove 'sync with ...' button
when the synchronization is already activated, and replace it by a
badge.

closes odoo/odoo#58197

Taskid: 2329313
X-original-commit: 255eb91dd5e9fb39a7625064d1ba8e0b492bfb85
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
Signed-off-by: jbm-odoo <jbm-odoo@users.noreply.github.com>
2020-09-22 10:08:27 +00:00
Anh Thao Pham (pta) 9ac156b777 [FIX] l10n_it_edi: fix vat code when customer has no VAT and is not from Italy
For foreign customers (out of Italy) who do not have a VAT number,
"0000000" should be used as VAT code.

opw-2325991

closes odoo/odoo#58204

X-original-commit: c5589bf8880e109990d902bb905c7de967910524
Signed-off-by: Anh Thao PHAM <kitan191@users.noreply.github.com>
2020-09-22 10:48:46 +00:00
Rémy Voet (ryv) 5962bc05c5 [FIX] stock: change icon of replenishment
Use fa-area-chart instead of fa-info-circle

closes odoo/odoo#58117

X-original-commit: 1c83b63ed549cfa7251b86380725a3379abf76a9
Signed-off-by: William Henrotin <Whenrow@users.noreply.github.com>
Signed-off-by: Rémy Voet <ryv-odoo@users.noreply.github.com>
2020-09-21 10:36:28 +00:00
Rémy Voet (ryv) 01e1ca3468 [FIX] stock: fix empty forecasted report.
When there was no data, the graph overlaps
the empty table. Remove force height in css.

X-original-commit: 8a73dc7776b08a32c70c2492f0044a87f52342dc
2020-09-21 10:36:27 +00:00
Benjamin Vray 1b2ac52969 [FIX] website_form: layout issue on multi checkboxes options
Before this commit, buttons to remove checkboxes and buttons to
re-order checkboxes were styled like button.

After this commit, buttons are just icons. We also improve a little
bit the design of the checkbox list (add space between elements and a
light border between items in the checkbox list).

task-2312878

closes odoo/odoo#58181

X-original-commit: 0253b01632a30adfe071aa090a875fb3915e1962
Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com>
2020-09-22 09:19:05 +00:00
Samuel Degueldre 469bacb91f [FIX] web_editor: fix color comparison and store normalized colors
Previously, shape colors were stored in non-normalized form (eg, would
use the color's name if it was a palette color), this caused some issues
if you chose a palette color for a shape, then changed the palette: the
wrong color would appear in the color picker because it would look use
the color of the current palette instead of the color that was actually
chosen.

This commit also normalizes the case of color strings before comparing
them, as this was causing some colors to be considered non-default
because of different capitalization.

closes odoo/odoo#58180

X-original-commit: cc8589f74d69816357cb614933358000166fa161
Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com>
2020-09-22 09:18:38 +00:00
David Beguin b9b65d7962 [FIX] crm: fix pls field config parameter and force depends recompute
The method _compute_probability has a dynamic depends, that depends on the
crm.pls_fields config parameter. When installing the DB, the depends is
evaluated. If the config parameter is modified afterwards, the depends is not
re-evaluated as the registry is not rebuilt.

The result is that when modifying the config parameter, if an optional
pls_field's value is modified on a record, the compute won't be triggered, as
that pls_field is not in the compute's depends.

This commit force to re-setup the registry after a modification (or the
creation) of the crm.pls_fields config parameter, in order to force the
depends of the _compute_probability method to be updated.

Task ID: 2341829

closes odoo/odoo#58165

X-original-commit: e95afbedc18d198454c7f66b523c4cafb19a4066
Signed-off-by: Raphael Collet (rco) <rco@openerp.com>
Signed-off-by: David Beguin <dbeguin@users.noreply.github.com>
2020-09-21 17:58:03 +00:00
Bruno Zanotti (ADHOC) 644234f7a5 [FIX] l10n_ar: number validation of no official document types
If a document type don't have AFIP code, like "FACTURAS Y COMPROBANTES
DEL EXTERIOR" or "NOTAS DE CREDITO Y REEMBOLSOS DEL EXTERIOR",
we don't have to validate the document number

closes odoo/odoo#58043

X-original-commit: 33cf9fdc0bf90a7246f3f67ada274e7a5519ee6b
Signed-off-by: Josse Colpaert <jco@openerp.com>
2020-09-18 14:20:24 +00:00
Xavier Morel 2da6bc2730 [FIX] base: virtual group fields on users with new default/onchange
* override `onchange` in res.users in order to properly generate and
  send the reified group fields alongside the rest: while default_get
  sets them up, those fields then get stripped by the onchange
  machinery as they don't actually exist on the model
* add a test to check for it
* fix SSF in relation with the new default/onchange system
  - because fields may not actually exist on the record,
    `record_to_values` needs to `read` the record data rather than
    directly access the recordset: the recordset likely will not
    know about fake fields
  - after the initial onchange has run the form must be filled with
    falsy values in case the onchange has not sent defaults for
    everything
  - on creation, all fields in the form should be considered modified

Task 2341153

closes odoo/odoo#58152

X-original-commit: f8658f229180a595d69cd6daefeded082c7f64ea
Signed-off-by: Xavier Morel (xmo) <xmo@odoo.com>
2020-09-21 14:53:29 +00:00
Julien Giannone 9fc3fe1dba [IMP] mail: reintroduce channel mentions, canned responses, commands
task-2280308

closes odoo/odoo#58167

X-original-commit: b63d0d2ee5f3bff24a5e1e1cd962d59bebef082d
Related: odoo/enterprise#13393
Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2020-09-21 21:12:22 +00:00