Commit Graph
140847 Commits
Author SHA1 Message Date
David Beguinandedi-odoo 171b83bad2 [FIX] website_event_track_online: fix agenda design to work cross browser
Before this commit, the design of the agenda was broken on Firefox, as the
'height: 0' property on td was ignored in Chrome and not in Firefox.
Probably a remnant that was not removed.

After this commit, both browser are displaying the same design.

Task ID: 2337855

closes odoo/odoo#57671

X-original-commit: c6c2dc41f818ebc30dca1682e5e2a8305dda2c67
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
Signed-off-by: David Beguin <dbeguin@users.noreply.github.com>
Co-authored-by: edi-odoo <edi@odoo.com>
2020-09-14 15:00:37 +00:00
David Beguin 09328468f0 [IMP] crm: add test for PLS live increment.
Setting a lead to won or lost should not impact others leads' probability
until they are modified.
Tests have been added to ensure that.

Task ID: 2254543

closes odoo/odoo#57681

X-original-commit: 7edc12e366659d226d56197e09bd65d17c80bd2f
Signed-off-by: Toufik Benjaa (tbe) <tbe@odoo.com>
Signed-off-by: David Beguin <dbeguin@users.noreply.github.com>
2020-09-14 15:54:27 +00:00
David Beguin 1938552782 [IMP] crm: Disable pls cron and autoincrement frequencies when won/lost
Purpose
=======

Get rid of the cron.
Always have an up to date frequency table to compute lead probability.
Clean PLS code and ensure to remove unnecessary code

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

Disable the cron:
- Increment won and lost count for lead PLS params from frequency table at
  each won/lost
- The complete set of leads won't be recomputed anymore every day
- A lead probability will only be recomputed if one of the PLS parameter will
  be modified (stage_id, team_id + the ones checked in settings)
- No more onboarding phase : as frequency table is always up to date and only
  the modified leads are recomputed, we can drop this. (So even on onboarding,
  winning or losing a lead won't impact other leads, except the ones we modify
  manually afterwards)
- Add an button to force the recompute of all the lead probabilities
  (kind of reset) in the settings.

The cron has been disabled by default.
Users can know choose to reactivate it if they want to continue updating their
lead probabilities on a daily basis.

Code have been reorganised for better structure and understanding.
Some code parts have been factorised to be usable in both Live Increment and
Full Rebuild mode.

In this commit, we also update probabilities using only computes

Before this commit, _update_probability was called during write and create,
to ensure both probability and automated_probability were correct. That was
necessary because of onchanges and readonly field (automated_probability
was not given to the write method while saving after a change on the lead).

After this commit, we use the force_save tag on the readonly field
automated_probability. So we ensure that write always receives the new
automated_probability value and everything can be handled directly by the
compute. Also, we force the lead to start in automated probability mode.
So when creating a new lead, both probability and automated probability are
computed and aligned.
Finally, when winning a lead, we ensure that both probabilities are aligned
(=100), so that if user take the lead back to a previous stage, the
probabilities are correctly recomputed, and the lead will not be stuck to
100%.

Also, this commit applies some fix and minor changes listed here under:
- Ensure to have always positive frequencies
- Fix lost counts for team not set in pls computation
- optimise set_won : write only once per values

Finally, include tag in frequency table even if less than 50 occurences:

Due to refactoring in which we increment frequency table at each won/lost
instead of rebuilding the frequency table each day, the tags are never added
in frequency table.
This is due to the 50 occurence conditions that avoid to create the frequency
if we have less than 50 won or lost for a tag.

After this commit, we include the tag_ids in the frequency table, no matter
the number of occurences. But, during the PLS computation, we skip the tag
frequencies if the number of occurences for this tag is under 50.
This allows to have a complete vision on the tag frequencies, even for
small number of occurences.

Task ID : 2254543

X-original-commit: cd291b79eb2d2df80899867263ec71438ab8fe87
2020-09-14 15:54:27 +00:00
Moisés López 9857b34fcc [FIX] base_import: mitigate concurrent update errors
Column mappings are updated in-place, if multiple users are importing records
of the same model at the same time, this will trigger concurrency errors.

This is made worse by the error only being reported on commit (after having
processed the entire import) and being retried automatically, so it slows down
the user and the entire system, the more concurrent imports the slower.

Log except:

    INFO dbname odoo.addons.base_import.models.base_import: done
    ERROR dbname odoo.sql_db: bad query: UPDATE "base_import_mapping" SET "field_name"='name',"write_uid"=%s,"write_date"=(now() at time zone 'UTC') WHERE id IN (%s)
    ERROR: could not serialize access due to concurrent update
    INFO dbname odoo.service.model: SERIALIZATION_FAILURE, retry 1/5 in 0.8720 sec...

closes odoo/odoo#57655

X-original-commit: 3f5e9ca625b53021c100245f5786bda4069974ad
Signed-off-by: Xavier Morel (xmo) <xmo@odoo.com>
2020-09-14 13:40:19 +00:00
Umar 1a32547682 [CLA] signature for emyu01
closes odoo/odoo#57692

X-original-commit: 581848eda89ddc697d35234634d5c430727b32b9
Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2020-09-14 17:47:11 +00:00
Thanh Dodeur dacd69c549 [FIX] website: fix google map snippet traceback
before this commit, when selectioning the snippet with an invalid API
key, a traceback was triggered and the snippet was destroyed.

task-2338730

closes odoo/odoo#57689

X-original-commit: 2c5b0c6b915546ccdac2ed4248f24a4e691fadd1
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com>
2020-09-14 17:22:18 +00:00
Atchuthan Ubendran 30f5c32372 [CLA] update Sodexis CCLA
Add dvdhinesh
Remove amkarthik

closes odoo/odoo#57684

X-original-commit: 9cb093aecc7e50e2addf321e2d003680b6f31384
Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2020-09-14 16:05:17 +00:00
Nisha patel 563d919186 [FIX] hr_holidays: Fix wrong button shows in the footer
Currently, In the time off module when we try to open time off
activity from systray view it will open the wrong form view
so it shows the "Save" and "discard" button in the footer.

So in this commit, Fix it by changing the priority of primary
view which is only used for creating new timeoff from dashboard.

closes odoo/odoo#57578

Task-id: 2329080
X-original-commit: 2154e742418b6a2ff87f120d0338bc30b3d4b4dd
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2020-09-11 17:14:15 +00:00
hku-odoo 799619182b [FIX] web: fix picture glitch
currently, whenever the view is change the picture zoomed in
and still displayed, only disappears after having refreshed the page

so, in this commit the employee picture should no longer to be
zoomed in whenever change the view

closes odoo/odoo#57576

Taskid: 2311308
X-original-commit: 8214332ccd86e52c4f18de8d5428a1a22f2ad21c
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2020-09-11 16:57:02 +00:00
Laurent Stukkens (LTU) b5e611ba3d [IMP] website: add image widget support for urls char fields
* Prior to this commit, images were only managed when being an image
  field. No widget were used either.

* After this commit, image stored in model as url (as res.country.image_url)
  can be used when specifying ':image' after the field name. The fields are
  now rendered using their corresponding default widget. If there is a need
  to force another widget and if the developer is sure that it is compatible,
  he/she can specify it using the notation: 'field_name:widget_name'.

closes odoo/odoo#57645

X-original-commit: 18d4e3327c7152b4c3a86ba377e3357f213b703c
Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com>
2020-09-14 12:17:27 +00:00
Anh Thao Pham (pta) 0e6bb2cecf [FIX] crm: fix res.partner creation from Leads
- Go to CRM > Settings and activate Leads
- Go to CRM > Leads and create 2 Leads with a different phone number
- Select the 2 created Leads and in Action menu, select Send email
- Make sure that "Lead/Opportunity: Mass Mail" is selected as template
- Send it
- Go to Contacts
2 Contacts have been created from the Leads, but both have the same phone number.

The issue comes from the override `default_get` of `res.partner` in crm module.
It is using `active_id` from context to fetch the Lead to populate Partner data.
This cannot work when several Leads are selected as the same `active_id` is used
for all of them.

opw-2333819

closes odoo/odoo#57638

X-original-commit: a84dcfb9475051082c6103f81bfa231ea50ed157
Signed-off-by: Anh Thao PHAM <kitan191@users.noreply.github.com>
2020-09-14 11:38:02 +00:00
Xavier Morel 5d25d0e927 [FIX] portal: don't eagerly load security template
There's absolutely no need to load it on every page of the website. It
probably doesn't even need to be cached on the JS side given it's used
in all of 3 actions of the portal user's security page.

Reported by jke.

Also remove leftover console.log call while at it.

closes odoo/odoo#57636

X-original-commit: 00c1c9a7258cf53f1a40938e3a928151b188de64
Signed-off-by: Xavier Morel (xmo) <xmo@odoo.com>
2020-09-14 11:33:55 +00:00
Francois (fge) ab59d0bf09 [FIX] mail: no longer display unlinked attachments in chatter
Task-2337952

closes odoo/odoo#57631

X-original-commit: 55cb4a82ce2b59bc73ea05afa5971c96989b6159
Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2020-09-14 11:01:15 +00:00
Mathieu Duckerts-Antoine e56a095f16 [FIX] *: disable linking on some graph views
For the graph views based on reporting models (e.g sale.report), click
on a group in the chart redirects the user to an "empty" list view. Here
we use the attribute disable_linking to avoid that redirection for those
views.

Task ID: 2336960

closes odoo/odoo#57622

X-original-commit: 0b0ae92b6bdac25843ba24d767dbcab3b75703e5
Related: odoo/enterprise#13192
Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
2020-09-14 10:01:49 +00:00
wan 6feb841a7c [IMP] l10n_fi: add demo company + load CoA
closes odoo/odoo#54447

Signed-off-by: Quentin De Paoli (qdp) <qdp@openerp.com>
2020-09-10 12:26:01 +00:00
william 1493a01b5d [IMP] account: get default payment ref format with country
Task 2297165

Set the payment reference standard to the one of the country of the
company by default.
The module l10n_be_invoice_bba has been merged into l10n_be as it was
auto_installed, it will not be problematic not being able to uninstall
it, and the order of installation of modules made it so that the
journals were created before l10n_be_invoice_bba was installed. This
caused the value to be set to 'odoo' on a fresh database instead of 'be'
2020-09-10 11:50:53 +00:00
Xavier Dubuc 06aef5e05f [FIX] mail: allow temporary attachment to be canceled
task-2324065

closes odoo/odoo#57623

X-original-commit: 9f774d4fb512017ab5f99981255afc8d2c35113c
Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2020-09-14 10:08:50 +00:00
Kenneth Hansen 059faa7f1f [CLA] Corporate signature for VK DATA ApS
closes odoo/odoo#57614

X-original-commit: 2527debe02aa7bdc65d0f572f7ddead6bb89d67b
Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2020-09-14 09:21:13 +00:00
Jose Lopez 0502f5f526 [I18N] l10n_latam_invoice_document: add es_DO translation
For terms different than es

closes odoo/odoo#57550

X-original-commit: cb8e12aeda19373764fd01971aa9f7b24aef866c
Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2020-09-11 14:18:08 +00:00
Antoine Prieels 74d8c9649b [FIX] pos_six: 0.01€ difference in Six transactions
Some payments were 0.01€ lower on the payment terminal compared to the
amount showing in the POS.

closes odoo/odoo#57547

X-original-commit: 3fd0822f42c1a9dbe5b786a3a767da969431ddaa
Signed-off-by: Quentin Lejeune (qle) <qle@odoo.com>
Signed-off-by: Antoine Prieëls <aprieels@users.noreply.github.com>
2020-09-11 13:57:11 +00:00
Laurent Stukkens (LTU) 4ad779b07f [IMP] web, website: prevent auto scroll from left panel
* Prior to this commit, when starting to drag a new snippet from
  the left panel, the auto scroll feature was triggered if the
  snippet was one of the top or bottom ones.

* After this commit, the auto scroll feature will be disabled from
  the left panel.

task-2307404

closes odoo/odoo#57449

X-original-commit: f1f48cdaab3dd7847e8546ad9887f24a9e2ed4c1
Related: odoo/enterprise#13139
Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com>
2020-09-10 15:04:00 +00:00
lejeune quentin efa43fb618 [FIX] hw_drivers: Fix requests to iot-proxy
We make request to iot-proxy.odoo.com every 10 secondes
while 5 minutes.

But we have a traceback if we don't have a internet connection.
So we put a 'try except' to catch error

Related 841c016913a8

closes odoo/odoo#57567

X-original-commit: 3227490e270a1f5b98ef7811edca59e9aa1b6b55
Signed-off-by: Quentin Lejeune (qle) <qle@odoo.com>
2020-09-11 15:46:35 +00:00
Aurélien Warnon d6f9904b1f [FIX] sale: fix product configurator variants description
When purchasing a product through the e-commerce using product configurator
features such as custom attribute values, the computed product description
containing the selected values could be broken when using special values.

This commit fixes the description building by using proper DOM manipulation.

Task 2337859

closes odoo/odoo#57583

X-original-commit: c9c260553b991d97dedeed5e7027a4fca78afcea
Signed-off-by: awa-odoo <awa-odoo@users.noreply.github.com>
2020-09-11 18:22:09 +00:00
Didier (did) 6c54a5c6d2 [FIX] mail: avoid star flicker when hovering a message
task-2278441

closes odoo/odoo#57575

X-original-commit: 35e1a675803e64eda0fdae402cbddb56d5c0b1d8
Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2020-09-11 16:55:29 +00:00
Benjamin Vray bdcb960de2 [FIX] web_tour: fix position of the tips
When tips show something outside of the screen (bottom), the hover will flicker
 the tooltip.

Now the tooltip come on top of the tips, exactly like for the top.

https://drive.google.com/file/d/1p3IGEAy2QekrykIqOzTzyJhmzjxbk5N7/view

closes odoo/odoo#57572

X-original-commit: fd5b43336a11ade92b954c281e27a40d043df34f
Related: odoo/design-themes#356
Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com>
2020-09-11 16:31:53 +00:00
Jeremy Kersten ee8333e582 [IMP] website: add helpers for theme tour
This commit makes it easy to generate a tour depending on a theme.
As each theme will have different tour which will recreate
the theme preview, this feature is able to create all of them.

task-2172208

X-original-commit: 6de336990d8eb1667eefcc93701dd519cec7e16c
2020-09-11 16:31:53 +00:00
Jeremy Kersten 301f002ff0 [IMP] web_tour: allow theme to override a tour
Each theme now will earase the homepage tour with his own tour

X-original-commit: 60c4cb82c40e2823daafe8709417e2b8997cef91
2020-09-11 16:31:53 +00:00
Benjamin Vray 4afa019dec [FIX] website: image gallery do not open the media dialog if not empty
Do not auto open the media dialog after the drop if there are images in
snippets images wall and images gallery.

task-2312878

X-original-commit: ab2dacbb844b36793df891a844e89482cf12f14e
2020-09-11 16:31:52 +00:00
Benjamin Vray c38e241601 [IMP] web_editor: scroll to the last snippet dropped
After dropping a snippet. Scroll to this snippet if it is not an inner
snippet and if it is not dropped in a modal.

task-2332641

X-original-commit: 3385cad238a4e242e7d58827066498f07b8c626f
2020-09-11 16:31:52 +00:00
Cocographique 1b674669b4 [ADD] website: add animation on theme screenshots
task-2256659

X-original-commit: bdb5b724fc5fff03719171beafbcd7211cd3fbcb
2020-09-11 16:31:52 +00:00
Jeremy Kersten 6c5a39ee78 [IMP] website: add data-option-name att to define class
OptionId was previously based on data-js name. But if an option has no js
the classname was snippet-option-undefined, now we fallback on data-option-name
to have a right name, and be easily selectable by theme tour.

X-original-commit: 7b0a147cd43e8e890ebe5a882292a69a5c8c90ac
2020-09-11 16:31:51 +00:00
Cocographique 932b81cb3c [FIX] web_editor: make 'Save' tooltip visible
X-original-commit: 24bd2e805e730b6b8d62c4698686588183d4cdaf
2020-09-11 16:31:51 +00:00
Jeremy Kersten 662c1fa987 [IMP] website: remove welcome tips on homepage
Now we only support tour in edit mode already.
We win a click on onboarding., and after the install of a theme

It avoid to have 2 tips on the same page that can be confusing

X-original-commit: 347b5ab3cfb5ebcef7c074f4a65223df0e349f2a
2020-09-11 16:31:51 +00:00
Jeremy Kersten d3ca0c51e9 [FIX] website: add scroll animation icons and label
X-original-commit: 20f8e8a954fe23f1ce454ff431acee606b76b7e7
2020-09-11 16:31:50 +00:00
Jeremy Kersten 5c0d64cb17 [IMP] website: redirect in edit mode after theme selection
This commit redirect the user to the website in the edit mode once a theme has
been selected.

task-2172208

X-original-commit: f474eac4543712ae5b1c7d614f9eff9367445107
2020-09-11 16:31:50 +00:00
Jeremy Kersten e6145d550a [IMP] web_tour: consume button in step content
This commit add a button in a step to be able to consume it.
It allows to have optional steps that the user can skip.

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

task-2172208

X-original-commit: 27158a0f612897e41601bf9e9d20861e9b87279f
2020-09-11 16:31:50 +00:00
Jeremy Kersten 72753073da [IMP] website: remove extra step of banner tour
Now that we will write tour by theme, this part is useless.
We just keep the old steps that will be not covered by future theme tour.

task-2172208

X-original-commit: 02e1b1f659d5f588cc4e52f48217f8e2c7771ad4
2020-09-11 16:31:49 +00:00
Samuel Degueldre 9733bdfdc0 [FIX] web_editor: do not display quality options on SVGs/GIFs
When the width and quality option for images was moved from the
optimize-dialog to the left-panel, it was made available on all image
types. However, width and quality options don't make sense on SVGs and
would break animated gifs. This commit makes it so that quality options
are only available on JPEG and PNG images.

closes odoo/odoo#57564

X-original-commit: 315be6f4765268eada4b39a637136c86a30720eb
Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com>
2020-09-11 15:30:49 +00:00
Victor Feyens a92b44dbd6 [FIX] doc: transient models now require access rights.
Since #43306, transient models now requires access rights.

Also fixes a little error: transient models can also refer to regular
records through m2m fields

closes odoo/odoo#57559

X-original-commit: 9106ff0e8c63accf54db2dd6ddfaf62479ded784
Signed-off-by: Victor Feyens (vfe) <vfe@odoo.com>
2020-09-11 15:01:53 +00:00
Hardik Prajapati 0cb280598a [FIX] hr_expense: Remove duplicate 'Reset to Draft' button from report
Currently, the 'Reset to Draft' button displayed twice in expense report
The duplicate button was added form commit: https://github.com/odoo/odoo/commit/b25e53a0b9f950b8f9367c1bf304753c87ee2a63#diff-1db56050134b0962604e0407b7d23d39R505

So in this commit, removed duplicate 'Reset to Draft' button.

closes odoo/odoo#57558

Taskid: 2335550
X-original-commit: 99035806cf3e637dddc62dbbbcde07d619257fa5
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2020-09-11 15:01:14 +00:00
Florian Gilbert 272bc40d2c [FIX] account: fix traceback happened in accounting dashboard
For Odoo Fin purpose:
When you click on Synchronize Now, you get a traceback.
This traceback comes from the "_get_journal_bank_account_balance"
method which performs a "self._cr.execute(...)" and a "self._cr.fetchone()".
However, it is possible that the orm may invalidate the whole
thing in the meantime because other calls are made.
This fix corrects this by grouping the "execute" of the "fetchone".

closes odoo/odoo#57555

X-original-commit: 7ab664bd8be72add3591895ef058afe7a1a9147e
Signed-off-by: Laurent Smet <smetl@users.noreply.github.com>
2020-09-11 14:45:20 +00:00
jbm-odoo 90b46ce3b2 [FIX] hr_timesheet: Widget for planned hours
Before this commit:
The field `planned_hours` and `subtask_planned_hours` are present
twice. This causes problems with widget: different widgets are put
on different fields, but only the last on was put on all of them.
Code to edit label with hours/days is not flexible, we need to
write each possibilities.

After this commit:
All fields are present only once in the view. A new widget is
created to manage days with a factor. In this new widget, instead
of having a toggle button, we can insert a float.
When the widget timesheet_uom is set on a field, we modify his string
with hours/days.

closes odoo/odoo#57557

Taskid: 2326216
X-original-commit: 5b3804402b3ebee5abe7004b8f8caccadaabfe1e
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2020-09-11 15:00:33 +00:00
Elisabeth Dickinson ef8806da0d [FIX] website_event_track_exhibitor: fix design issues with exhibitors logos
This commit fixes 2 design issues regarding the Exhibitors logo in

- Rounded-circle on logos crops and can hide some part of the partner's logo:
    - Remove rounded-circle property
- Bg-light behind non-transparent bg logos:
    - Remove to have all logos on white background.

Task ID: 2337738

closes odoo/odoo#57542

X-original-commit: b56a4f27bc35108bbf4240714f994f670e91ae69
Signed-off-by: awa-odoo <awa-odoo@users.noreply.github.com>
Signed-off-by: David Beguin <dbeguin@users.noreply.github.com>
2020-09-11 13:27:01 +00:00
Arnold Moyaux 19a7e81530 [FIX] procurement_jit: Trigger scheduler at SO confirmation
Usecase to reproduce:
- Create a Product A with a supplier.
- Put 10 in stock
- Create a RR with min 5 and max 10
- Create a SO for 7 products and confirm it

The RFQ is not created.

It happens because the trigger scheduler is set on picking
action_confirm. Not on move _action_confirm to avoid performance issue.
However a SO will launch procurement rules that will create moves
and confirm them. But it will never call action_confirm on the picking
itself and thus never trigger the scheduler.

closes odoo/odoo#57540

X-original-commit: 08af6a3f663abb49d2e77c706e85118a7199ef89
Signed-off-by: Arnold Moyaux <amoyaux@users.noreply.github.com>
2020-09-11 13:20:05 +00:00
Antoine Prieels f33c79f830 [FIX] point_of_sale: Customer display without order
The customer display could not be loaded when no order was set.
(e.g. While showing the floor plan in pos_restaurant)

closes odoo/odoo#57531

Signed-off-by: Quentin Lejeune (qle) <qle@odoo.com>
2020-09-11 12:56:40 +00:00
Antoine Prieels 7b3a56c050 [FIX] point_of_sale: IoT box module manifest
As modules present on the IoT Box might change between versions of
Odoo, we want to load all of the modules present on the box as
server-wide modules (see odoo/odoo#57176).

This means that the point_of_sale module might also be loaded, even if
it's empty. To make sure that it doesn't crash when the IoT Box starts,
we need to have an empty `{}` in the `__manifest__.py`.

closes odoo/odoo#57527

X-original-commit: 154a99129e77c0220f6720318834787369c4f573
Signed-off-by: Quentin Lejeune (qle) <qle@odoo.com>
Signed-off-by: Antoine Prieëls <aprieels@users.noreply.github.com>
2020-09-11 12:34:06 +00:00
Xavier Morel e56d4cc6dd [FIX] core: remove callbacks from queue before invocation
The callbacks system is not re-entrant: because we were only clearing
the callbacks after having executed them all, if one of the
post-commit callbacks commits then all the callbacks will get
re-executed (including the one which commits). Which at best can lead
to odd effects & data corruption and at worst crashing the software
because we're overflowing the stack (or maybe the other way around,
hard-crashing might be a better idea than unexpectedly calling the
same functions multiple times).

By popping the callbacks before executing them, we ensure that each
one will only get called once (unless it's explicitely re-pushed on
the stack).

closes odoo/odoo#57516

X-original-commit: 4257be4d771605ecd972bd5b04cb9c0f1163b455
Signed-off-by: Xavier Morel (xmo) <xmo@odoo.com>
2020-09-11 11:23:22 +00:00
Pierre Paridans d2d08f71f5 [FIX] account: discount field shown in form view
Before this commit, when discounts were enabled (through Sales >
Settings), they appeared on the Sale Orders but not in the corresponding
Invoice form view. Debug mode was required to see it among the form's
fields.

This commit fixes it by aligning with the Sale Order behaviour and
properly display the `discount` field in the form view (when the setting
is enabled) without relying on the debug mode.

BTW, on mobile there was no way to see the discount as it was only
visible in the list view... which is replaced by the kanban on small
screens. So this commit makes it available on mobile.

opw-2325978

closes odoo/odoo#57499

X-original-commit: 0ad60024c326adc7e25c71eaad2f9eccab26ee99
Signed-off-by: Adrien Dieudonné (adr) <adr@odoo.com>
Signed-off-by: Pierre Paridans <pparidans@users.noreply.github.com>
2020-09-11 10:31:02 +00:00
nie 1b91e3aec8 [FIX] mail: Default assignee list for activity types is cut off
Step to reproduce the bug:
- Have more than 100 users
- Have CRM installed
- Go to CRM > Configuration > Activity Types > Create

Bug:
The Default User selection only displays the 100 first users

opw:2330339

closes odoo/odoo#57455

X-original-commit: 75eef2506ba415d3e2be5ac3c14029bba3ed26d0
Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
2020-09-10 15:46:49 +00:00
Mithilesh Rao 6f0458147f [IMP] hr_timesheet: Allow to cancel entry when using the timer on a task
Prupose of the task is, if the user misclicks on the 'start' button to
launch the timer, he doesn't have any option to discard the timer.

So in this commit , added a 'delete' button so user can stop the timer
from wizard.

closes odoo/odoo#57316

Taskid: 2334036
Related: odoo/enterprise#13072
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2020-09-10 12:51:30 +00:00