Commit Graph
147686 Commits
Author SHA1 Message Date
Guenael Labois 04daf0b1e7 [IMP] l10n_ec, base: Moved EC states to base, with a proper code
closes odoo/odoo#74066

Signed-off-by: Josse Colpaert <jco@openerp.com>
2021-08-06 15:19:29 +00:00
Guillaume (guva) ba8b8dcb46 [FIX] l10n_de_skr04 : add missing tag to taxes
Steps to reproduce

- On a DB with german localization and SKR04 chart
- Accounting > Configuration > taxes
- Select Steuerfreie Ausfuhr (§4 Nr. 1a UStG) or
  Steuerfreie innergem. Lieferung (§4 Abs. 1b UStG)

Issue

The tag l10n_de.tag_de_intracom_community_delivery doesn't appear

opw-2545462

closes odoo/odoo#74828

X-original-commit: 21d02671fce48ef0a7ac1c70602613852819b50c
Signed-off-by: William André (wan) <wan@odoo.com>
2021-08-06 15:01:51 +00:00
Younn Olivier 5fe16aa346 [FIX] web_editor: fix image transforms linter issues
This fixes linter issues introduced in
https://github.com/odoo/odoo/pull/71847

task-2554608

closes odoo/odoo#74823

X-original-commit: 5a990248c647d7303ffc578e6fc9dbc1ee4670dc
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2021-08-06 14:24:32 +00:00
Romain Derie f253018002 [FIX] website_forum: add missing ID which lead to broken JS
That ID was removed with c8c8eb3d56, but the JS code is expecting to find
this ID inside the DOM to increment the flag counter.

Courtesy of @dwa-odoo
Spotted while working on task-2167561

closes odoo/odoo#74819

X-original-commit: 2e3f78569e2bb2e0cd2ad9271b1877a43a8c4abb
Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com>
Signed-off-by: Romain Derie <rdeodoo@users.noreply.github.com>
2021-08-06 14:01:34 +00:00
Adrien Widart fdd4af3e2a [FIX] purchase: use Product Price precision in bills
When the Product Price precision is greater than the currency precision,
it can lead to incorrect data

To reproduce the error:
(Enable debug mode)
1. Settings > Technical > Database Structure > Decimal Accuracy, edit
Product Price:
    - Digits: 3
2. Create a PO
    - Add a product:
        - Quantity: 12
        - Unit Price: 0.001
3. Save, Confirm, Edit the PO:
    - Qty Received: 12
    - (Note that the total is $0.01)
4. Create a bill:
    - Add the PO to the field "Auto-Complete"

Error: The unit price is $0.000 and so does the total

The rounding of the unit price should be based on the Product Price
precision, not the currency precision.

OPW-2601867

closes odoo/odoo#74813

X-original-commit: 1123856c77cce4b69059b63c2bcbb382c7f0719e
Signed-off-by: Rémy Voet <ryv-odoo@users.noreply.github.com>
Signed-off-by: Adrien Widart <adwid@users.noreply.github.com>
2021-08-06 13:00:24 +00:00
Susana d9ca0a00b3 [FIX] l10n_latam_invoice_document: Allow to change the l10n_latam_document_number manually when the invoice is in draft status
closes odoo/odoo#74807

X-original-commit: cf2ef8373905888bae61e111d2f1ce58792cad56
Signed-off-by: Josse Colpaert <jco@openerp.com>
2021-08-06 11:21:00 +00:00
Aaron Bohy f6c57577fd [FIX] web: correctly put load_views rpc result in cache
In the "view" service, there is a cache s.t. we don't do the
load_views rpc each time we enter an act_window action. However,
before this commit, we never did cache hits because we modified
(in place) the "views" key inside the action, which is used to
generate the cache key.

closes odoo/odoo#74783

Signed-off-by: Bruno Boi <brboi@users.noreply.github.com>
2021-08-06 11:48:10 +00:00
Fabrice Henrion 034430bdb6 [FIX] account: change selection label
Grammar police

closes odoo/odoo#74777

Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2021-08-06 12:11:34 +00:00
Fabrice Henrion 0e30b8b828 [FIX] partner_autocomplete: correct typo
closes odoo/odoo#73524

Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2021-08-06 12:13:23 +00:00
Fabrice Henrion 3d58bdacde [IMP] sale_quotation_builder: rephrase help message
closes odoo/odoo#73476

Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2021-08-06 12:31:20 +00:00
Fabrice Henrion f35e53aca7 [IMP] point_of_sale: rephrase
closes odoo/odoo#72232

Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2021-08-06 12:32:48 +00:00
Fabrice Henrion 82c2f3a27f [IMP] mail: rephrase
closes odoo/odoo#71075

Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2021-08-06 12:33:48 +00:00
SilvioC2C a12c912291 [IMP] sale_product_configurator: Add context to _rpc call
Added context to _rpc call in _onTemplateChange function for improved inheritability and easing customizations

closes odoo/odoo#74806

X-original-commit: c6467305c88fb3ba3c832a4cca525220f977ba53
Signed-off-by: Victor Feyens (vfe) <vfe@odoo.com>
2021-08-06 11:18:36 +00:00
Nicolas (vin) b1fbf77236 [IMP] account: remove search when opening journal entries of a bank statement
Remove an unnecessary default search when opening the journal entries
of a bank statement.

closes odoo/odoo#74802

X-original-commit: e9f6bbb9093a4c2bf6e728d2882f6dab65658c01
Signed-off-by: William André (wan) <wan@odoo.com>
2021-08-06 10:58:07 +00:00
Benjamin Frantzen (bfr) 94262d7712 [FIX] l10n_it_edi_sdicoop: do no copy transaction ID and attachment ID when duplicating invoice
When duplicating an invoice, a new edi should be generated, therefore l10n_it_edi_transaction and l10n_it_edi_attachment_id should by copy=False.

closes odoo/odoo#74799

X-original-commit: 7ea86c2662369aa8d09e6bafaf2fe024e8f57f40
Signed-off-by: Josse Colpaert <jco@openerp.com>
2021-08-06 10:33:17 +00:00
Samuel Degueldre 37aca4a38e [FIX] im_livechat: add missing dependencies to manifest
The dependencies of the public_root module were recently updated, but
the manifest of im_livechat was not, causing it to fail to load. This
commit adds those missing dependencies to the manifest.

This commit also adds a test that checks that all modules are properly
loaded on the support page, since this has been broken on multiple
occasions while changing the dependencies or the path of some of the
modules this page needs to work.

closes odoo/odoo#74756

Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2021-08-06 10:15:23 +00:00
Samuel Degueldre 64fc704527 [IMP] web: log module loading issues even when they throw a real error
Previously, when an Error was thrown inside an async module, that error
would not cause boot.js to log information about missing, failed or
rejected modules. This is because we were only using guardedCatch to
mark modules returning a rejected promise with something other than an
error as rejected, but the case where a real error was thrown was not
handled, which left the job to be forever pending.

This commit fixes that by catching real errors after the previous
processing, and treats it like an error in a synchronous module.
2021-08-06 10:15:23 +00:00
William Braeckman 1aed8b70f5 [IMP] hr: departure wizard
Improve the departure wizard form view aswell as the flow when using it.
Removes the confirmation dialog when archiving an employee to directly
display the departure wizard.
Also changes departure reason to an html field instead of pure text.

Task ID: 2575279

closes odoo/odoo#72367

Related: odoo/enterprise#19116
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2021-08-03 14:36:02 +00:00
William Braeckman 27aacca0db [MOV] hr: separate chat_mixin and employee code
In preparation of the next commit, separate the chat mixin from the
employee js code into appropriate files

Task ID: 2575379
2021-08-03 07:17:30 +00:00
William Braeckman 47269e8203 [IMP] hr_recruitment: assign default recruiter with mail alias
Assign the job recruiter to applications created through the email
alias.
Previously the email alias did not contain the recruiter's ID and the
application would not be assigned to anyone. This commit changes that
behaviour and also updated the alias creation values when the right
fields change, such as department_id.
The Alias should be kept synchronized with the job configuration.

Closes odoo/odoo#74236

Task ID: 2608541

Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2021-07-26 12:16:05 +00:00
Daniel Blanco c874bff3de [FIX] l10n_cl: modifications to report invoice to show tax included in boletas
[ADD] l10n_cl: add method to invoice report to format the vat dotted

closes odoo/odoo#73869

X-original-commit: 2b500c12c2540e593f3a243bf80de28bd335b7be
Related: odoo/enterprise#19705
Signed-off-by: Josse Colpaert <jco@openerp.com>
2021-07-16 12:30:16 +00:00
Nidhi Patel 38bfd5282d [IMP] hr_timesheet, sale_timesheet: improve portal view for timesheet
The purpose of this is to improve the generic UX of portal for timesheet
app.

In this commit, done the below changes:
 - add a sort by employee, project, task, sales order item
 - rename 'sale order item' into 'sales order item'
 - In search, reorder the fields in the following order:
      Employee, Project, Task, Description, Sales Order, Sales Order Item, Invoice
 - In group by, switch the SO/SOL fields from place

closes odoo/odoo#73699

Taskid: 2531322
Signed-off-by: LTU-Odoo <IT-Ideas@users.noreply.github.com>
2021-07-29 08:57:40 +00:00
qsm-odoo 03918cd5f0 [FIX] web_editor: use proper text color for dropdown items in cc envs
When inside a specific color preset, active dropdown items' background
color is set to that preset's primary color. However, their text color
was not properly computed mainly because of [1] which forced other rules
as important.

[1]: https://github.com/odoo/odoo/commit/2172295cefa1d8780332709bf0c97cfa23def3a5

closes odoo/odoo#74776

X-original-commit: 67fb206e2ef4828712a53052282aa0791edb74e7
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2021-08-05 17:05:42 +00:00
Nicolas (vin) e859a33936 [FIX] account: payment method line deletion/constrains
Set the payment method line to cascade when deleting a journal.
This way, we do not keep unneeded lines, and it is not an issue
since we cannot delete journals linked to a payment/move anyway.

Also add a check on the journal id in the constrains checking their
name to avoid taking into account lines without journals.

closes odoo/odoo#74767

X-original-commit: e5cff1af3b8d407c7f0f0d2c9f9c021dcea41512
Signed-off-by: William André (wan) <wan@odoo.com>
2021-08-05 14:32:31 +00:00
qsm-odoo ebf8d67485 [MOV] website, *: merge the website_animate app into the website app
*: tools

The app received many fixes and its code was improved and cleaned. It
was about time to include it directly into the website features.

task-2215118

closes odoo/odoo#74697

Related: odoo/design-themes#478
Related: odoo/upgrade#2709
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2021-08-05 14:59:10 +00:00
Antoine Vandevenne (anv) 0885212a83 [FIX] payment_adyen: prevent creating a new session for returning users
Before this commit, users returning from Adyen to Odoo after payment
could see their session renewed, depending on their browser's
implementation of the `SameSite` cookie attribute. This prevented Odoo
from retrieving the transaction from the users' session.

This commit flags the return route of Adyen with `save_session=False`,
hence allowing all users to immediately post-process their transactions
when they return to Odoo.

While we're at it, the docstrings of the return routes of PayUmoney and
SIPS' have been updated for better clarity.

closes odoo/odoo#74763

Signed-off-by: Antoine Vandevenne (anv) <AntoineVDV@users.noreply.github.com>
2021-08-05 13:31:09 +00:00
Holoborodko Bohdan d565c4f063 [CLA] Holoborodko Bohdan
closes odoo/odoo#74757

X-original-commit: 07304cbe337d6a66d42c28f640c40f9973841c8d
Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2021-08-05 12:52:32 +00:00
Romain Derie 6ccfdfec71 [FIX] web_editor: position correctly the popover in side dropdown menu
Before this commit, the popover would be displayed on top of the clicked
element if that element was a menu in a dropdown.
Indeed, there was not enough room for the popover to be shown correctly, as the
available space was the dropdown itself.

Note that if there was more than 2 menus in the dropdown, it would work
correctly as it would create enough space for the popover to be shown bellow or
above the menu.

Step to reproduce:
- Create a menu and a submenu
- Click on the menu, it opens a dropdown with the submenu inside it
- Click on the submenu, the popover position is wrong

task-2618494

closes odoo/odoo#74755

X-original-commit: b0b9fd2fd07fec96dd870467e8d9d8da7996c8ef
Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com>
Signed-off-by: Romain Derie <rdeodoo@users.noreply.github.com>
2021-08-05 12:21:02 +00:00
SilvioC2C 4f21648702 [CLA] Add Silvio Gregorini to C2C CLA
closes odoo/odoo#74754

X-original-commit: 39be7378fd236f634d4885aa1b1bb61bce49a94e
Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2021-08-05 12:13:06 +00:00
Florent de Labarre 9b3b295d28 [FIX] point_of_sale: impossible to print sale details
If you a user with only group 'group_pos_user' it is not possible to print the sale details.
Because during the compute_all of the taxe, account.account.tag need read access.
This PR allow 'group_pos_user' to print the sale details.

closes odoo/odoo#74749

X-original-commit: 9212ee2a79189802ae9a7cbc7a8446e71b2b215a
Signed-off-by: pimodoo <pimodoo@users.noreply.github.com>
2021-08-05 10:35:31 +00:00
Achraf (abz) 83de6e8500 [FIX] l10n_in_purchase_stock: GST Treatment on purchase_order with reordering rules
When a purchase order is generated via the scheduler with a reordering rule, the gst_treatment is not retrieved

opw-2540090

closes odoo/odoo#74669

X-original-commit: 17b5d75e69200d2a8fc2d5b2792bded0a37072e5
Signed-off-by: Achraf <abz-odoo@users.noreply.github.com>
2021-08-03 17:58:58 +00:00
Jacky (trj) e02abdb889 [FIX] point_of_sale: modal correctly aligned in mobile
Every popup/modal was not correctly aligned in the mobile screen. It was never in the center and the right portion of the popup was never visible.
With this commit, all popups are now correctly placed in mobile.

closes odoo/odoo#72793

Signed-off-by: pimodoo <pimodoo@users.noreply.github.com>
2021-08-05 10:52:09 +00:00
Jacky (trj) eb3e866b2e [IMP] point_of_sale: opened sessions list
In order to avoid a rescue session opened for ages, the point of sale dashboard also shows if there are more than one opened session at the same time.

task-2492631
2021-08-05 10:52:09 +00:00
Jacky (trj) c41ab54ed1 [IMP] point_of_sale: show date of order when reprint receipt
The order date was missing when using the reprint feature.

task-2492631
2021-08-05 10:52:09 +00:00
Jacky (trj) 70b3b958ce [IMP] point_of_sale: added white-space: pre-line css for popup
This allows to keep the line break in a message from the popup.

task-2492631
2021-08-05 10:52:09 +00:00
Jacky (trj) ee61082c78 [IMP] point_of_sale: show tip on the button + popup and make the value selected
In order to give the user a better information view, if set, the tip's amount is shown on the button and on the popup. The value is selected for the sake of intuitiveness.

task-2492631
2021-08-05 10:52:09 +00:00
Jacky (trj) f368ac2fb0 [IMP] point_of_sale: favicon changed for PoS UI
In order to easily spot the Odoo PoS UI and Odoo back end when several tabs are open in the browser, the color of the initial favicon has been changed to gray

task-2492631
2021-08-05 10:52:09 +00:00
Jacky (trj) a38aeeea58 [REF] point_of_sale: rename Resume button to Continue selling
This change is made in order to be more consistent with the other "Continue selling" entry points (to launch the POS)

task-2492631
2021-08-05 10:52:09 +00:00
Jacky (trj) d7bfcc7ff1 [REF] point_of_sale: product configurator UX for radio input
The product configurator modal was too wide and the items were not correctly aligned. This commit changes the general aspect of the radio input and add responsiveness.

task-2492631
2021-08-05 10:52:09 +00:00
Jacky (trj) 9504f56f9a [FIX] point_of_sale: show discount information from pricelist in invoice
When the discount policy of a pricelist was set to `without_discount`, the discount information was shown in the order line of the product screen and on the receipt but not in the invoice.

task-2492631
2021-08-05 10:34:06 +00:00
Benjamin Frantzen (bfr) 6811c374fb [FIX] l10n_it_edi_sdicoop: when an edi is successfully sent, it should return {'success': True}
closes odoo/odoo#74744

Signed-off-by: Josse Colpaert <jco@openerp.com>
2021-08-05 09:27:42 +00:00
Sébastien Theys 443b38088b [FIX] mail: ignore unread of unpinned channels in menu counter
Follow up of a795a2f7d8

closes odoo/odoo#74742

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2021-08-05 09:19:56 +00:00
Demesmaeker 9d62c2789e [FIX] payment_adyen: always reply with '[accepted]' to notifications
Before this commit, when the webhook was processing a notification,
if there was a validation error, the webhook was sending the whole
traceback to Adyen. Since this was still a response code 200, this
didn't cause any problem, but we could see the response received in
the Adyen backend.

So we will now catch any validation error and send `'[accepted]'` in the
response.

closes odoo/odoo#74733

Signed-off-by: Antoine Vandevenne (anv) <AntoineVDV@users.noreply.github.com>
2021-08-05 09:33:04 +00:00
xO-Tx c72595d5b5 [FIX] web_editor: apply shape when image changed
Issue:

- [1] Edit mode > Set a shape on image (mimetype = 'image/jpeg')
- [2] Replace it by an animated GIF.
- [3] Replace the .GIF image again by the old one.
- The shape is not applied on it.

After the step [2], the image  a dataset of:
{..., mimetype: "image/svg+xml", originalMimetype: "image/gif"}.

But when replaced by the JPG image in [3], we get (in '_applyOptions()')
an image with the following dataset:
{..., mimetype: "image/jpeg", originalMimetype: "image/gif"}

This incoherent state is caused by the fact that the mimetype from
attachment will be added on shape image in loadImageInfo(), which
affects the result of '_isImageMimetypeSupported()' method
(image is considered as a .GIF), and as a consequence, the shape
won't be applied.

We already have code (in '_onImageChanged()' method) to fix mimetype
in this case, but the goal of this commit is to move this code to
'_loadImageInfo()' to prevent this kind of incoherent mimetype values.

IMPORTANT: after this commit, the right mimetype value for GIF images
is passed and shapes cannot be applied on them (shape data will be
removed from non-supported images)

task-2578242

closes odoo/odoo#72639

Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2021-08-03 15:17:58 +00:00
Xavier BOL (xbo) 0fff5b0327 [FIX] hr_timesheet: use the timesheet_ids to know if there are timesheets
Before this commit, we use the total_timesheet_time field in the kanban
view of `project.project` to know if there are some timesheets into each
project. The problem is this field is computed and its compute method
take more execution time than just use `timesheet_ids` field to allow if
a project has at least one timesheet.

This commit replaces the using of `total_timesheet_time` field by the
`timesheet_ids` field in project kanban view to check if the project
has at least one timesheet.

closes odoo/odoo#74730

Signed-off-by: LTU-Odoo <IT-Ideas@users.noreply.github.com>
2021-08-05 07:28:39 +00:00
Robin Heinz 53ff2c5fd9 [FIX] l10n_fr_pos_cert: bind disallowLineQuantityChange
When using several certification together, there was an issue
when we tried to modify the quantity of an orderline.
The "this" context was lost and we were unable to call the function
anymore.

In order to fix that, we bind the context when calling the function.

closes odoo/odoo#74725

X-original-commit: 183c3cfded14e716781ae701ec92e2ba68808eb7
Related: odoo/enterprise#20070
Signed-off-by: William André (wan) <wan@odoo.com>
2021-08-04 17:43:12 +00:00
Antoine Vandevenne (anv) dbefe34af5 [IMP] payment(_authorize): rework validation transactions refund flow
Before this commit, the validation flow with verification (payment of a
small amount with immediate refund) was performed with the use of
validation routes: after payment, the customer was redirected to the
validation route stored on the transaction to trigger the refund. This
implementation had an issue: if the customer never reached the
validation route, they were not refunded their validation amount. This
could happen if the customer closed the tab after paying with an
acquirer offering payments with redirection, or if the validation
payment was asynchronously confirmed through a webhook notification.

This commit gets rid of validation routes and requires acquirers to
immediately refund the validation amount when the payment is confirmed.
This way, a payment confirmation coming from a webhook can trigger the
refund too.

As the only acquirer that implements the validation with verification
flow, Authorize.net now voids validation transactions as soon as they
are authorized.

While we're at it, the logging of processing values is adapted to only
log specific rendering values if a redirect form is rendered.

task-2612977

closes odoo/odoo#74707

Related: odoo/enterprise#20060
Related: odoo/upgrade#2710
Signed-off-by: Antoine Vandevenne (anv) <AntoineVDV@users.noreply.github.com>
2021-08-04 13:03:27 +00:00
Younn Olivier fe2c914067 [FIX] web_editor: clean the ImageTools transform and crop option
Added documentation to the methods of the ImageTools SnippetOption.

Also, removed unnecessary config from the transform method, which was
specific to the wysiwyg transform method to allow for reset on double
click.

The ImageTools transform and crop options now correctly set their button
to active or not.

Two reset buttons are added next to the transform and crop buttons,
visible when a transformation was made on the image.

Part of https://github.com/odoo/odoo/pull/74592
task-2554608

closes odoo/odoo#74592

X-original-commit: fc3706a0736c2c76dfd1a261a1455146b1699ce7
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2021-08-05 08:10:24 +00:00
Younn Olivier f68b78e531 [FIX] web_editor: add events to enable or disable loading effects
This commit adds two events to either enable or disable and cancel
loading effects at the SnippetsMenu level.

This is useful if we want for a snippet to be edited without showing the
loading effect. In the context of this PR it is used for image
transforms.

Part of https://github.com/odoo/odoo/pull/74592
task-2554608

X-original-commit: c45896fdd5a89e7954d8afeeb89ff51bb16ab438
2021-08-05 08:10:24 +00:00
Younn Olivier 5f41733eb7 [FIX] web_editor: keep options and hide overlay when transforming an img
Part of https://github.com/odoo/odoo/pull/74592
task-2554608

X-original-commit: 1e8ab0c9de57c7c0dcf92fa5199ff1d1f226ca47
2021-08-05 08:10:24 +00:00