Commit Graph
138431 Commits
Author SHA1 Message Date
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
sahista pathan 9f7bf7f619 [IMP] fleet: emptylist costs
Purpose of the commit is to change the costs empty list helper message to
"Manage efficiently your different effective vehicles Costs with Odoo."

Task-2328455

closes odoo/odoo#56851

Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2020-09-01 12:57:58 +00:00
Nisha patel 22c52e8edf [IMP] web: Prevent the dialog for x2many readonly list view
Currently, dialog is generic for all x2many tree and there is no
option to prevent the dialog in readonly for x2many tree.

So in this commit, we add new option 'no_open' for x2many tree to
prevent the dialog.

closes odoo/odoo#55255

Taskid: 2295969
Closes: #55255
Related: odoo/enterprise#11994
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2020-08-27 11:00:19 +00:00
Mithilesh Rao bde14adaaa [IMP] hr_expense: multi-edit list view for expense reports
Purpose of the task is, Remove the inconsistant behaviour of
expenses and expense report As expenses are editable in batch,
but expense reports are not

So in this commit, make the list views linked to hr.expense.sheet
multi-editable
 - Following fields should not be editable in batch: employee_id,
create_date, company_id, activity_ids, total_amount, currency_id, state
 - the accounting_date and sale_order_id fields should also be editable
in batch for hr.expense

closes odoo/odoo#57138

Taskid: 2323027
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2020-09-08 05:10:05 +00:00
Priyanka Kakadiya 0d8ba43991 [IMP] hr_expense: Add a expense filter on product view
Purpose of the task is to add a 'Can be Expensed' filter on product
view from expense which should return products for which
can_be_expensed is true.

closes odoo/odoo#56950

Taskid: 2328469
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2020-09-03 05:44:45 +00:00
Nidhi Patel b48111635b [FIX] sale_expense: Fix quantity on SOL when re-invoicing an expense
Currently, when reinvoicing an expense, an SOL with
the expense product is added to the selected SO but,
the 'quantity' field remains at 0.
But when added expense product to SO we need to change the sales order
price because it will be charged to the customer in the end.

So n this commit, Set the quantity on the SOL equal to
the quantity set on the expense.

closes odoo/odoo#56718

Task-id: 2320167
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2020-09-02 11:20:17 +00:00
Jorge Luis Juarez 766c7c3840 [IMP] purchase: add hook method
Add a method containing the information to create the supplier information

closes odoo/odoo#56171

Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2020-09-04 13:38:30 +00:00
Didier (did) 9bc4d91960 [FIX] mail: fix image ratio on composer and thread preview
task-2318662

closes odoo/odoo#57522

X-original-commit: 1cd5712ff7f04b2fdb185f4fe78dbd3f4f75b801
Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2020-09-11 11:52:19 +00:00
Antoine Prieels 8a0e1a3f01 [FIX] hw_drivers: Long receipts make receipt printer crash
When printing a long receipt from the POS, the printer crashed, printed
random characters and needed to be rebooted to print other receipts.

The problem was that there's a limitation of height when printing
images with ESC/POS (see [ESC/POS documentation](http://www.starmicronics.com/support/mannualfolder/escpos_cm_en.pdf), page 158).

We then split the image into slices and print slices with separate
commands.

closes odoo/odoo#57512

X-original-commit: ab06df30557af90f3e704d4cfc1e6da66f7708b7
Signed-off-by: Quentin Lejeune (qle) <qle@odoo.com>
Signed-off-by: Antoine Prieëls <aprieels@users.noreply.github.com>
2020-09-11 11:10:00 +00:00
Alexandre Kühn 8be77ece37 [FIX] im_livechat, mail, website_livechat: invite button in livechats
Task-2334724

closes odoo/odoo#57511

X-original-commit: 5316c91c27e48bfaa3ebf3fb97e35220fabc986e
Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2020-09-11 11:07:12 +00:00
Antoine Prieels 8141e878fe [FIX] point_of_sale: IoT Box load all modules
In 841c016913a87133bf7257c62ae5f6bf7d99e06d, we've removed the `hw_proxy` module and
therefore removed it from the server wide modules loaded when starting
Odoo.

When the IoT Box was connected to a v12 or v13, the branch running on
the box was checked-out to the corresponding version, restoring the
`hw_proxy` module. The `hw_proxy` module was never loaded and some
routes were not defined.

To avoid this problem without leaving an empty `hw_proxy` module in
master, we detect all modules in odoo/addons and load them.

closes odoo/odoo#57501

X-original-commit: 7ac77931c4e663b44ef80f73933cf2573060c6fe
Signed-off-by: Quentin Lejeune (qle) <qle@odoo.com>
Signed-off-by: Antoine Prieëls <aprieels@users.noreply.github.com>
2020-09-11 10:33:03 +00:00
Laurent Smet a33190d831 [FIX] account: Fix '_inverse_amount_total' emptying amount_currency
In saas-13.5, 'currency_id' is always set on account.move.line and then, 'amount_currency' must always be filled.

closes odoo/odoo#57466

X-original-commit: 9382a6a14ff6cb051d12edecf81a4d3f69f9b6a5
Signed-off-by: oco-odoo <oco-odoo@users.noreply.github.com>
Signed-off-by: Laurent Smet <smetl@users.noreply.github.com>
2020-09-10 19:52:35 +00:00
Kairis ec0eda3233 [IMP] fleet: Add new fuels
Adding some new fuels and link them to the right ATN

closes odoo/odoo#57139

Taskid: 2319585
Related: odoo/enterprise#12983
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2020-09-09 14:39:50 +00:00
Aymane (ayt) f61a123ece [FIX]Web:background parm independent of zoom param
Setting the Zoom parameter for the image widget is no longer required to be able to use the background parameter.
This has been done to accomodate changes required for Task#2296173 as setting the zoom value to false was preventing proper display of the employee image.

closes odoo/odoo#55966

Related: odoo/enterprise#12437
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2020-09-01 09:40:38 +00:00
Mohammed ShekhaandDhruv Patel 8c2eda42f9 [FIX] web: blank value in many2many_tags for multi_edit popup
Let's assume a list that is multi editable and contains a m2m field
displayed with widget many2many_tags. Moreover, there are enough
values in the comodel s.t. the 'Search More' option is available
in the many2many_tags dropdown, and field 'display_name' isn't
in the list view that opens in dialog.

Enter multi-edition, edit the many2one field to add a value
(click on 'Search More', and pick a value from the list): the
picked value isn't correctly displayed in the confirmation dialog.

The issue occurred because we didn't wait for the display_name to
be fetched before opening the dialog.

Task : 2150384

closes odoo/odoo#57483

X-original-commit: ccf5834045d8b4fff9af7ddf60814c3a640e8318
Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
Co-authored-by: Dhruv Patel <dhp@odoo.com>
2020-09-11 08:56:11 +00:00
oco-odoo b0bd0cc5d2 [IMP] account: reconcile model form view: hide 'amount matching' setting for write-off rules
closes odoo/odoo#57358

X-original-commit: 10f58e490f3a7b7621b3cea9ef183ba8fa53d32f
Related: odoo/enterprise#13083
Signed-off-by: Laurent Smet <smetl@users.noreply.github.com>
2020-09-09 13:15:56 +00:00
oco-odoo a22e7e4c85 [FIX] account: reconcile models: inject selected partner and write-off details in the values sent to the widget
Before that, write-off rules with partner mapping did not work properly, as the partner they selected got lost when passing the values to the widget, which later made a second rpc call to fetch the write-off details. Now, we pass all the values directly, including the selected partner. This way, we remove the need for a second rpc call when processing the results for the reconcile models, and the partner is handled properly.

X-original-commit: d74db80d11e603719eefa5799ac1f8ac2afa2540
2020-09-09 13:15:56 +00:00