Commit Graph
143544 Commits
Author SHA1 Message Date
Mohammed Shekha 38fc6a6e80 [FIX] web: manually enter value in daterange throws error
before this commit: if user enters some random value in daterange widget and
click outside the daterange field it throws traceback while it should not throw
traceback, it should only warn user that you are entering wrong value.

after this commit: if user enters some random value in daterange widget then it
will show warning toaster that you are entering wrong value.

task-2410523

closes odoo/odoo#73366

X-original-commit: 588d133f3daf28e0ce69052ae57ad89c5a96eb3a
Signed-off-by: Simon Genin (ges@odoo) <ges@odoo.com>
2021-07-07 11:09:19 +00:00
Hardik Prajapati d03de125b9 [FIX] web: inconsistent hover cursor on some stat button
Before this commit: the hover property inconsistent with some content of the
stat button, it happens because the content of the stat button contains field
widget which contains 'o_quick_editable' class in read-only mode which has the
property cursor: default.

After this commit: stat buttons and field inside stat buttons will have cursor
pointer always as we override the CSS rule for the field inside stat buttons.

TaskID-2479807

closes odoo/odoo#73365

X-original-commit: 761d4f6634c98de3425cb40314d91606ab5fad57
Signed-off-by: Simon Genin (ges@odoo) <ges@odoo.com>
2021-07-07 10:42:39 +00:00
Lucas Perais (lpe) 23da5621f3 [FIX] web: router_service: concurrent hashchange
Do an action that will change the hash.
During this, change the url hash to load another action

Before this commit, the hash taken to load the second action was wrong, because the first
action pushed its state instants before the hashchange event is actually triggered.
This is because the hashchange event is triggered in a non blocking stack
(https://html.spec.whatwg.org/multipage/browsing-the-web.html#scroll-to-fragid)

After this commit, the right action is loaded with the right hash

closes odoo/odoo#72878

Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
2021-07-07 09:16:38 +00:00
nounoubensebia 8be47591da [IMP] [website_]event: improve menu item layout
Remove padding from event name, and center menu items, purpose is to reduce lost
space

Make menu items wrap and move to the bottom to avoid having them overlap with
the register button.

Task-2524708

closes odoo/odoo#72157

Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2021-07-07 11:20:12 +00:00
Lucas Perais (lpe) d7e6dbdd7e [FIX] im_livechat: route /support loads correctly
Before this commit, when arriving on the route /im_livechat/support/1, there was a crash
in the console becauase boot.js was not found.
This was because the file has been moved, and im_livechat has not been adapted

After this commit, the route /support correctly works

closes odoo/odoo#73362

Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
2021-07-07 09:54:53 +00:00
Munaf Khan 68e479f918 [FIX] website: improve whatsapp sharing URL for social share snippet
Curretnly, the link responsible for sharing the page on whatsapp
(from social share snippet) is not working correctly. There are
two main problems:
 - it works only for the devices where WhatsApp is already
   installed
 - only the page title is being shared, not the page URL

This commit fixes both the issues by changing the sharing URL for
WhatsApp. The URL is now changed to 'https://wa.me/....' instead
of using 'whatsapp://' protocol (see the official link[1] for more
information). With this URL, if the WhatsApp is not installed on the
device, it will provide user with the options to either download it
or use WhatsApp Web, and if WhatsApp is installed, it will open the
app. Also with the URL, we pass both page title and page URL within
'text' URL parameter, and the secure link will be automatically
parsed and converted to hyperlink by the platform.

[1] - https://faq.whatsapp.com/general/chats/how-to-use-click-to-chat/

TaskID-2557077

closes odoo/odoo#73360

X-original-commit: 348e10cdd09cd77972b57fe47626609b200996af
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2021-07-07 09:42:16 +00:00
Thibault Delavallée 2072de7504 [IMP] base_address_city: allow to search cities based on zip
When having cities with similar name it may quickly be difficult to find the
right one. Adding zip code to name search helps finding it more easily.

IN order to match this new _name_search we update name_get accordingly and
display the zip code between parenthesis.

Task ID-2525738

closes odoo/odoo#73359

Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2021-07-07 09:40:01 +00:00
Benjamin Frantzen (bfr) 7ee8520bfb [IMP] l10n_it_edi: added support to import p7m files
Before this commit, only files coming through ir_server_mail where parsed. The goal of this commit is to allow upload of p7m files.

closes odoo/odoo#73337

X-original-commit: 13ff9b488d28da5dceec22e1c26f448796ca30c0
Signed-off-by: Josse Colpaert <jco@openerp.com>
Signed-off-by: bfr-o <bfr-o@users.noreply.github.com>
2021-07-07 09:49:24 +00:00
Benjamin Frantzen (bfr) d83709c1b0 [IMP] account_edi: added hooks to import any kind of files as an invoice
X-original-commit: 27688e2aab46a9dd1ed9ad82d1d888eed1df3b83
2021-07-07 00:32:24 +00:00
Odoo's Mergebot 0d39dc0ae6 [MERGE] website_event_*: always link event menus to website.event.menu records and clean tests
In website_event some event-specific frontend menus are not linked to
``website.event.menu`` like track or exhibitor sub-modules menus. This
comes from initial implementation of ``website.event.menu`` that was
available only for ``website_event_track``.

Using ``website.event.menu`` eases menu management as it allows to have
an object making a link between the event and the website menu. Notably
when checking / unchecking in backend submenus it eases management.
It also eases management when people manually edit menus from frontend
as otherwise we have to manually manage ``ir.ui.view`` based on some
naming manipulation.

Task ID-2577079

closes odoo/odoo#72411

Related: odoo/enterprise#19484
Related: odoo/upgrade#2573
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2021-07-07 13:16:03 +02:00
Thibault Delavallée b7af68590e [IMP] test_mail: add tests for `_find_partner_from_emails`
See odoo/odoo#71047

closes odoo/odoo#73357

X-original-commit: b774cb09f8a44ce23213e80acc7138f96034c15e
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2021-07-07 09:39:06 +00:00
Thibault Delavallée 777d0d316e [IMP] website_event(_track): reorganize tests
Purpose is to merge some tests, clarify naming and reorder files according
to their content.

Task-2577079
PR odoo#72411
2021-07-07 08:27:54 +00:00
Thibault Delavallée 242ffe2f24 [IMP] website_event_*: simplify menu definition code
Now that all menus are managed the same way using a menu type and
clear definitions we can set all menu type definitions to override
_get_website_menu_entries. This is just some code cleaning and
has no functional impact.

Task-2577079
PR odoo#72411
2021-07-07 08:27:54 +00:00
Thibault Delavallée cc9933256a [IMP] website_event: create website menu for all events menus
In website_event some event-specific frontend menus are not linked to
``website.event.menu`` like track or exhibitor sub-modules menus. This
comes from initial implementation of ``website.event.menu`` that was
available only for ``website_event_track``.

Using ``website.event.menu`` eases menu management as it allows to have
an object making a link between the event and the website menu. Notably
when checking / unchecking in backend submenus it eases management.
It also eases management when people manually edit menus from frontend
as otherwise we have to manually manage ``ir.ui.view`` based on some
naming manipulation.

Task ID-2577079
See odoo/odoo#72411
2021-07-07 08:27:54 +00:00
Thibault Delavallée 0d755e7127 [IMP] website: improve returned data from Website.new_page(..)
Purpose is to have more detailed information given back when calling new_page.
Now each new record adds its entry in returned result:

  * view_id: new ir.ui.view created. As there is always a view (based on a
    template) it is now always set, and not only when creating a page;
  * page_id: set if ispage is true, ID of website.page created;
  * menu_id: set if add_menu is true, ID of website.menu created;

Previously only view_id was returned when creating a page which can be a
limitation notably in website_event.

Task-2577079
PR odoo/odoo#72411
2021-07-07 08:27:54 +00:00
Romain Estievenart bfcea333d6 [FIX] pos_restaurant: Allow scroll on Floor screen
Steps to reproduce:

1. On small screen like mobile devices, open the pos app
   and start a bar/restaurant session;
2. You can't navigate on Floor screen => bug

To fix that we allow scroll on Floor screen

Task ID: 2453679

closes odoo/odoo#73333

X-original-commit: 15fea6aa56ec132734c21418798b7dd5903b10bf
Signed-off-by: Adrien Dieudonné (adr) <adr@odoo.com>
2021-07-06 16:57:26 +00:00
Mohammed Shekha 2b34cea21c [IMP] web: display sequence field as non editable
Before this commit: when editable listview has sequence field with handle
widget and user edits row it is displayed with white background, while user
can not change it in edit mode so it should be displayed with grey background

After this commit: sequence field will be displayed with grey background in
editable listview in edit mode.

task-2507971

closes odoo/odoo#73173

X-original-commit: 9f00dcaedb280f403ff7576a31ff7f7e67f49c6c
Signed-off-by: Simon Genin (ges@odoo) <ges@odoo.com>
2021-07-07 08:02:52 +00:00
Odoo's Mergebot 04481005ab [MERGE] website_event_*: better manage what is not published
PURPOSE

Improve the management of non-published event subrecords for internal users.

SPECIFICATIONS

In this task we did 3 changes

1) In Community section of any event non-publish room is not available. Here
    we add unpublished rooms with tag, just like shop with opacity.

2) Before this commit unpublished exhibitors are mixed with the published ones
    with random position. After our merge all unpublished exhibitors are shown at
    the end of list and not mixed with published ones. Moreover display of exhibitors
    is improved to better find unpublished one.

3) In agenda section only unpublished tags have blurry effect and except that
    whole section is same as published ones. We add blurry effect for whole
    unpublished agenda. Moreover this we added this blurry effect for main event
    section, which looks more systematic..

LINKS

Task ID-2346612

closes odoo/odoo#63816

Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2021-07-07 11:00:16 +02:00
yograj tandel 73a373fb2a [FIX] web_tour: tour tip does not open
When mouse hover on tour droplet, it shows tip information but when click on
app name(ex- expenses) and hover on tour droplet, it does not shows tip
information, it is because tip is now part of o_content element i.e. controller
element and when we click on app name it re-renders whole action manager and
due to which tip element also removed and later tip element added but new tip
insteance is not created, element of existing tip instance is added to DOM and
due to which event bound on previous element is not bound on new element, to
fix this we need to explicitly bind events on tip.

after this commit: tip shows information even after clicking on app name as we
explicitly bind events when tip is re-rendered.

task-2376278

closes odoo/odoo#73304

X-original-commit: c25c1d644e84cade8766c1f89930b46e88a33087
Signed-off-by: Simon Genin (ges@odoo) <ges@odoo.com>
2021-07-06 12:47:37 +00:00
Thibault Delavallée 76616dc888 [IMP] mail: improve default bounce message
Current bounce message is not very user friendly. Purpose of this commit
is to improve it, by improving wording and overall phrasing used in it.

Form view is improved so that bounce message takes all available width in
form view.

Some tests are added, notably to detect pseudo-void content from editor.

Task ID-2532529
PR odoo/odoo#71793

Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2021-07-07 06:29:01 +00:00
Thibault Delavallée 28d6468bc4 [FIX] tools: better support 'almost empty' content from editor
It seems quite easy to have a void content in the currently new editor
that actually holds a lot of undesired information, notably a font
tag. This is annoying when having behavior based on an html field
being empty or not. In this commit we therefore improve definition
of an 'empty' html field.

Task ID-2532529
PR odoo/odoo#71793
2021-07-06 13:30:47 +00:00
Thibault Delavallée 6bc1244c4f [FIX] test_mail: clean tests about alias mixin
Just move some tests in their own class (test of alias mixin) and quickly clean
them.

Followup of odoo/odoo@7ae1b46

Task ID-2532529
PR odoo/odoo#71793
2021-07-06 13:30:47 +00:00
Adrian Torres 5a04043546 [FIX] base: log Selection.ondelete ORM bypass at runbot level
This commit changes the warning log for Selection fields that states
that the hook could not go through the ORM for the deletion at uninstall
(because of some business error) and that it had to bypass the ORM (aka
pure sql delete) and turns it into a runbot-level log, meaning that it's
technically a warning but the runbot won't fail because of it.

This is done because for the install/uninstall tests it shows up as an
actual failure but it is not as it is non-blocking, and 99.9% of devs
won't ever see this warning on runbot since it triggers on module
uninstall anyway.

closes odoo/odoo#73332

X-original-commit: c140f545d150da05bd47f2c2dabc28c53cefe912
Signed-off-by: Adrian Torres (adt) <adt@odoo.com>
2021-07-06 16:17:23 +00:00
Arnaud Joset 8bd566e05a [FIX] microsoft_calendar: send attendee answer to microsoft
Before this commit, the events were not synced when the attendee state was modified.

closes odoo/odoo#73297

X-original-commit: faeaee43adb77fd0d4c36b68a548ac3ab35fdadc
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
Signed-off-by: Arnaud Joset <arj-odoo@users.noreply.github.com>
2021-07-06 16:07:00 +00:00
Arnaud Joset 722ea57aa0 [FIX] microsoft_calendar: find attendee based on mail and favour the one with internal users
Before this commit, attendee were found based on the email sent by Microsoft.
When multiple partners would match the mail, the first one was selected but we should favour the partner with a user.
The method _mail_find_partner_from_emails has this exact purpose and therefore is used.

X-original-commit: 4f944f89a5785a2569842dc402c484f21b7aa121
2021-07-06 16:07:00 +00:00
Arnaud Joset 6a78506158 [FIX] google_calendar: find attendee based on mail and favour the one with internal users
Before this commit, attendee were found based on the email sent by Google.
When multiple partners would match the mail, the first one was selected but we should favour the partner with a user.

The method _mail_find_partner_from_emails has this exact purpose and therefore is used.

X-original-commit: afabce8d20d574e07237d16fa01dea463979f705
2021-07-06 16:07:00 +00:00
Christophe Monniez 16f470fa53 [FIX] web: blacklist odoo payments menu from click_all test
closes odoo/odoo#73268

Signed-off-by: Christophe Monniez (moc) <moc@odoo.com>
2021-07-06 06:14:17 +00:00
william-andre 9d1b0e6088 [FIX] l10n_de: company.bank_ids is not the company's banks
The definition of the field is
```python
bank_ids = fields.One2many('res.partner.bank', 'company_id', string='Bank Accounts', help='Bank accounts related to this company')
```

So all the banks of all partners registered for one company.

closes odoo/odoo#73329

X-original-commit: 6c2ac88e843fb3b77e78e5fe52bd17b98bf7417e
Signed-off-by: oco-odoo <oco-odoo@users.noreply.github.com>
Signed-off-by: William André (wan) <wan@odoo.com>
2021-07-06 15:43:43 +00:00
Touati Djamel (otd) 5e998efe5e [FIX] mrp: fix BOM structure & cost
Steps to reproduce the bug:
- Install manufacturing app
- Create a product “A”
- Create a Bill of Materials for product A > add any product > save
- Create another Product “B” > Create a BOM and add the product “A” in quantity “0” > save
- Click on “BOM Structure & Cost” for product “B” > open the sublevel BOM dropdown of the product “A”

Problem:
An error is triggered because the quantity of the product is "None"

opw-2585033

closes odoo/odoo#73323

X-original-commit: 06c172746f2d2dc8235c6e607342506bf9ef1551
Signed-off-by: Anh Thao PHAM <kitan191@users.noreply.github.com>
Signed-off-by: Djamel Touati <DjamelTouati@users.noreply.github.com>
2021-07-06 15:08:26 +00:00
Anh Thao Pham (pta) 0ac1e45e4c [FIX] mrp_product_expiry: fix expired lot used for another product
- Go to Inventory > Configuration > Settings and activate "Expiration Dates"
- Create a storable product tracked by lot with expiration date (i.e. Component A)
- Update quantity of Component A in a lot with an expired expiration date (i.e. Lot A)
- Create a consumable product (i.e. Component B)
- Create a storable product (i.e. Product X) with a BoM having Component A & B as components
- Create a MO for Product X with a quantity to produce set to 1
- Confirm MO
- Edit MO to set quantity produced to 2
- Set consumed quantity for Component A to Lot A
- Mark MO as done
- Confirm confirmation wizard about using expired Lot A for Component A
The following Validation Error is triggered:
"This lot Lot A is incompatible with this product Component B"

In order to display lot in the confirmation wizard, the ids of the expired
lots are added in the context under key "default_lot_ids".
As we have set a produced quantity higher than the original quantity, some
additional stock moves will be created for final product and it components.
As "default_lot_ids" is still in the context at that point, it will set it
for stock move lines of both components, which will generate the Validation
Error for Component B.

"default_lot_ids" should be removed from context after confirming confirmation
wizard for expired lots.

opw-2543863

closes odoo/odoo#73302

X-original-commit: e70275f0bb7357385990e2fb9997ac495fd7f452
Signed-off-by: Anh Thao PHAM <kitan191@users.noreply.github.com>
2021-07-06 12:10:00 +00:00
Odoo's Mergebot 4ad2809efb [MERGE] hr_attendance: Compute overtime on attendances
Adds a new feature to count overtime when using the attendance app.

Also adds an app that links the attendance and the holidays app to allow users to convert overtime hours to time off time.

Continuation of odoo/odoo#65542

Task ID: 1904850

closes odoo/odoo#69930

Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2021-07-06 16:40:39 +02:00
Younn Olivier 45835afe24 [FIX] web_editor: reintroduce request_editable event (2)
Forward-port of a commit that was wrongly forward-ported with [1], half
of the diff was lost because it landed in master before the merge of
another commit which removes what was being reintroduced here...

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

closes odoo/odoo#73287

X-original-commit: 68d7d42cce012269342e18373a30970e2c582ba3
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2021-07-06 09:56:31 +00:00
Francois (fge) f1fccbe3c7 [FIX] web: style issue with o_field_many2one_avatar
closes odoo/odoo#73285

X-original-commit: 1cd6348b6524c09f8ede88d3e7fd9399a8344b93
Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
2021-07-06 10:34:09 +00:00
William Braeckman b429fce0e6 [REF] hr_attendance: change employee.base to employee
Moves the changes to employee from hr_attendance from the hr.employee.base
model to the hr.employee model.

Task ID: 1904850
2021-07-06 11:35:01 +02:00
Kevin Baptiste 2961513141 [ADD] hr_holidays_attendance: convert overtime to holidays
This module allows an employee to create leave requests or allocation
requests from their overtime.

Depending on the configuration of the leave type, the request can be
made from:

    - "My Profile" for allocation which allows employee requests;
    - Time Off dashboard for leave type with no allocations;
    - The employee profile for the time off manager.

TaskID: 1904850

[IMP] hr_holidays{,_attendance}: leave allocation multi create

Change leave allocation create function to a multi create one.

Task ID: 1904850
2021-07-06 11:35:01 +02:00
Kevin Baptiste 9e6d2da504 [IMP] hr_attendance: compute overtime on attendances
This commit adds a new model `hr.attendance.overtime`.

When an employee checks out, an overtime entry will be created when:
    - the option is enabled on the company;
    - the employee worked more or less than the number of hours they
    were supposed to work that day.

TaskID: 1904850
2021-07-06 11:35:01 +02:00
Sunil Shrimali 7ff89c188c [IMP] website_event_track: improves ui for unpublished event_tracks
Unpublished tag not shown if track is not accepted, although track is not
published. Unpublished tracks was also visible for portal user. opacity
was not available on tracks, even track is unpublished.

unpublished tag added into event agenda next to 'not accepted', also
added blurry effect and unpublished tag into agenda which is
shows in details page. used normal text in place of badge for
unpublished track, because that red badge is already used by live
tag. Onwards now, unpublished track will not show to portal user.

TaskID - 2346612
2021-07-06 04:44:46 +00:00
Sunil Shrimali a3f6bf9cf1 [IMP] website_event: display unpublished events with lower opacity
This commit displays the unpublished events with lower opacity for
better visual indication.

taskID-2346612
2021-07-06 04:44:46 +00:00
Sunil Shrimali b3d1a0349f [IMP] website_event_{meet, exhibitor}: handle unpublished sponsors
Currently, the usability for unpublished exhibitor is not optimum.
For example, on `/exhibitors` page, we show the exhibitors in random
order where sometimes unpublished ones might come before the published
ones. And on the sidebar of the exhibitors, there's no visual indication
for unpublished record and they do not always appear after the published
ones. Same for the sponsor/exhibitor list that appears at he bottom of
almost all event pages.

This commit does the following improvements:

 - For `/exhibitors` page, now first there will be random published
   exhibitors, and after that, there will be random unpublished
   exhibitors (class used to lower opacity is now removed as it
   will be handled by publish management related data attributes).
 - Clicking on any of this exhibitors, on the left sidebar, now
   we display unpublished exhibitors at the last, with lower
   opacity and 'Unpublished' tag.
 - The 'Connect' button on exhibitors is now positioned absolutely
   so that the opacity does not apply on it for unpublished
   exhibitors.
 - For the sponsors list appearing at the bottom of almost all
   event pages, now the unpublished sponsors will appear at last
   with lower opacity and 'Unpublished' tag below them.
 - In a special case of sponsor list appearing in `/community`
   page, the unpublished sponsors were displayed to all the
   users, because the event record was passed with sudo. We
   remove this sudo attribute, which seems not necessary.

taskID-2346612
2021-07-06 04:44:46 +00:00
Sunil Shrimali b3f9f2b436 [IMP] website_event_meet: properly handle unpublished rooms
Currently, if the room is unpublished, it`s never shown to users
(even if user is event user / manager).

This commit improves behaviour by displaying unpublished rooms to
specific users (in /community page). Below are the main changes:

  - The unpublished rooms are now displayed to event users and
    managers, after published ones and with lower opacity.
  - The drop-down menu for managing rooms is now absolutely
    positioned so that the opacity does not apply on the buttons
    for unpublished rooms.

taskID-2346612
2021-07-06 04:42:46 +00:00
Goffin Simon eafbae34ab [FIX] point_of_sale: Scanning Barcode EAN-13 with price
Steps to reproduce the bug:

- Let's consider a product P with sale price = 0€
- P is available in the POS
- Set a barcode to P, 2312345000002 (meaning price = 0€ with check digit = 2)
- Open a session in the POS and scan 2312345003003 (meaning price = 3€ with check digit = 3)

Bug:

A line was added with P but its price was 0€ instead of 3€

PS: Function _getAddProductOptions always sets price_extra to 0€

opw:2566502

closes odoo/odoo#73245

X-original-commit: ee567231a16b12031c234400a6a37bb5b7898cec
Signed-off-by: Simon Goffin (sig) <sig@openerp.com>
Signed-off-by: pimodoo <pimodoo@users.noreply.github.com>
2021-07-05 15:01:40 +00:00
wan 731a173d49 [FIX] l10n_de_stock: bad forward port
Following
https://github.com/odoo/odoo/commit/bdcb3d192be1e01e1141aa09c60027337009a67b

closes odoo/odoo#72900

X-original-commit: cd0584b1b272c7b0ad6d61d099c8b42bd83d4df0
Signed-off-by: Quentin De Paoli (qdp) <qdp@openerp.com>
2021-06-28 18:09:18 +00:00
Andrea Grazioso (agr-odoo) 4785cfcf6c [FIX] mrp_account: fix reference to a deleted bom line
- Enable Margin analysis
- Have a product [TEST] in a category with
  - FIFO and Automated Valuation.
  - Kit BOM with 3 items (A,B,C)
- Create a SO with [TEST] and confirm.
- Modify the BOM and remove C from the kit.
- Back to the SO, cancel it.

Traceback will show, because there no more a bom_line associated with
the move

opw-2541674

closes odoo/odoo#72696

X-original-commit: 27821b728f409d7e1a69e84d0beb5ac708e6420e
Signed-off-by: agr-odoo <agr-odoo@users.noreply.github.com>
2021-07-01 13:01:19 +00:00
Hardik PrajapatiandMohammed Shekha 157b40ad5c [FIX] web: traceback on removing a groupby in editable list
Currently, a traceback is generated on removing a groupby when line is in edit
mode in groupable list view. It happens because the facet removal and window
click both are called at the same time.

This commit fixes the issue by ignoring the window click on removing the search
facet.

TaskID-2518527
closes #70236

closes odoo/odoo#73102

X-original-commit: da51bd7ef270fe5a481b937f0a3c296d0eea196c
Signed-off-by: Simon Genin (ges@odoo) <ges@odoo.com>
Co-authored-by: Mohammed Shekha <msh@odoo.com>
2021-07-01 17:00:13 +00:00
Yannick Tivisse 80087aca25 [IMP] hr_contract: Remove menuitem
Com PR: https://github.com/odoo/odoo/pull/73060

closes odoo/odoo#73060

Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2021-07-01 11:46:05 +00:00
Christophe Monniez c3fa3347d5 [FIX] sale_timesheet: use context_today in test
closes odoo/odoo#73050

Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2021-07-01 08:55:52 +00:00
Goffin Simon 2327cc45fc [FIX] purchase_requisition: Wrong translation
Steps to reproduce the bug:

1. Activate the 2 language “’English’ , ‘Spanish (AR) / Español (AR)’ ”
2. User -> select the language ‘Spanish (AR) / Español (AR)’
3. Create a new product (Test Product).
4. Create a another product using “Duplicate” function.
5. Rename new product name(Test Product -1)
6. Translate the name ( “Spanish (AR) / Español (AR) : 111 Spanish product “ , “English: English Product” )
7. create a purchase agreement -> select product “111 Spanish product ” -> Save -> confirm -> new quotation.
8. Purchase Quotation -> Order line

Bug:

Description shows “Test Item (copia)”

opw:2582778

closes odoo/odoo#72997

X-original-commit: 947484cd9a082003bfd5b3c2e64d6033b863aa84
Signed-off-by: Simon Goffin (sig) <sig@openerp.com>
2021-06-30 12:11:43 +00:00
Bruno Boi 3bbfd1582b [FIX] web: do not open multiple groupBys submenus at once in pivot dropdowns
Introduced with odoo/odoo@5c5924af88

closes odoo/odoo#73076

Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
2021-07-01 12:55:25 +00:00
Habib (ayh) 79e17df6f9 [IMP] l10n_eu_service: OSS - Automatic Tax and Fiscal Position Mapping for EU Countries
Due to EU e-commerce 'One-Stop Shop' which becomes available on 1 July 2021, EU companies involved in distance sales are able to file their taxes using the new OSS process. Adopting OSS is now simplified in Odoo.

On installation of the module, all companies having a fiscal country in the EU will be processed.
For all existing domestic taxes in the company, an associated foreign tax (standard rate, reduced rate, etc) is found in the `EU_TAX_MAP`. This mapping will be created in a fiscal position that is automatically detected based on the customers' country.

All that is required from the user, is to review the tax mappings according to the products and services sold by the company.

A refresh button is also available in the odoo settings to redo/update the fiscal positions. This might be useful after adding a new tax.

Note: The tax mapping herein is not intended to cover all possible tax mappings between EU countries, but rather, the most commonly used ones. It is advised that users with special tax cases update the created Fiscal Positions according to their requirements.

Closes [Task 2579615]

closes odoo/odoo#73042

X-original-commit: 9c548c423614d1305542ebdffdbcd0da3cf09899
Signed-off-by: oco-odoo <oco-odoo@users.noreply.github.com>
Signed-off-by: Habib Ayob <h4818@users.noreply.github.com>
2021-07-01 12:22:15 +00:00
Andrea Grazioso (agr-odoo) 7264d7fe90 [FIX] sale_coupon: avoid reapplying same promotion after change
- Have a Promotion program [TEST] applied automatically, which apply a
fixed amount discount on order
- Have a Sale Order, apply test via 'promotion' button
- Edit [TEST], add a mandatory code to be used
- Back to SO, add the promotion again via 'coupon' button and insert the
code

Promotion will be applied again in the order

opw-2526950

closes odoo/odoo#72860

X-original-commit: 8ff2a16401d462850b111a551a5058eef441a9b5
Signed-off-by: Nicolas Lempereur (nle) <nle@odoo.com>
Signed-off-by: agr-odoo <agr-odoo@users.noreply.github.com>
2021-07-01 11:22:58 +00:00