Commit Graph
143013 Commits
Author SHA1 Message Date
oco-odoo d6accd1d33 [IMP] account: prevent edition of tax_negate, country_id and tax_report_line_ids in account.account.tag's form view
Those field are all handled by the account.tax.report.line creating the tax tag. They should never manually be changed by the user.

OPW 2541071

closes odoo/odoo#72049

X-original-commit: 44c32bf9c7b00655398c019371e4a128a6fac413
Signed-off-by: Laurent Smet <smetl@users.noreply.github.com>
Signed-off-by: oco-odoo <oco-odoo@users.noreply.github.com>
2021-06-11 12:38:56 +00:00
Luis González 7fc48345ad [FIX] sale_timesheet: prevent error when adding timesheets w/o sale rights
Prior to this commit:

    - If a user without access to sales tries to add timesheets on a task that
      comes from a sale order, the following access error is raised:

        Access Error

        You are not allowed to access 'Sales Order Line' (sale.order.line) records.

After this commit:

    - A user without access to sales will be able to add timesheets to a task that
      comes from a sale order without any error.

task-2566750
opw-2525342

closes odoo/odoo#72025

X-original-commit: 9437bd543a40c3fc59979f70683be1acd7c995e7
Signed-off-by: LTU-Odoo <IT-Ideas@users.noreply.github.com>
Signed-off-by: Luis González [Vauxoo] <luisg123v@users.noreply.github.com>
2021-06-10 22:10:15 +00:00
fw-bot 36bca6eb52 [IMP] calendar: Forward port of Saas 14.3 calendar perf yti
Forward port of https://github.com/odoo/odoo/pull/71808

closes odoo/odoo#72043

X-original-commit: 4f13a2214aed380c8aea984d3414caca506401bf
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
Signed-off-by: Arnaud Joset <arj-odoo@users.noreply.github.com>
2021-06-11 12:11:14 +00:00
Adrien Widart 80d643c141 [FIX] web: save operator for m2o fields in pivot view
When generating a spreadsheet from a pivot view, the values of m2o
fields are added up instead of being counted.

To reproduce the error:
(Need point_of_sale,documents_spreadsheet)
1. Open a POS session
2. Process 3 orders
3. Close the session
4. Point of Sale > Reporting > Orders - Pivot View
    (Note: the number of orders is 3, which is correct)
5. Insert in Spreadsheet

Error: On spreadsheet, the number of orders is incorrect (the value
corresponds to the sum of the order identifier of each POS order line)

When generating the spreadsheet, here is how the operator for each field
is computed:
https://github.com/odoo/enterprise/blob/06bf2b0e2def3445cdd21d5b6fccc58e3015e0b5/documents_spreadsheet/static/src/js/o-spreadsheet/pivot_utils.js#L217-L225
If there is not any `group_operator`, the `operator` will be defined to
`sum`.

In the above case, the attribute `group_operator` is indeed not defined
for the field `order_id`:
https://github.com/odoo/odoo/blob/1ddbcb4860ee220e9f826e8b6f6b85b6c22fb2b7/addons/point_of_sale/report/pos_order_report.py#L14

However, when generating the pivot view, if the field is m2o, its
`group_operator` value is not considered and the operator is directly
defined to `count_distinct`:
https://github.com/odoo/odoo/blob/7cf8f6f40e5769d2f22620ac425208c4ad9ae80b/addons/web/static/src/js/views/pivot/pivot_model.js#L979-L987

Since the spreadsheet is based on the pivot view, this fix suggests
saving this decision so the spreadsheet will behave in the same way.

OPW-2551030

closes odoo/odoo#72020

X-original-commit: a7ada576df9bbd6c1fd1cbf082ba0a79ec7802f9
Related: odoo/enterprise#18945
Signed-off-by: Nicolas Lempereur (nle) <nle@odoo.com>
Signed-off-by: Adrien Widart <adwid@users.noreply.github.com>
2021-06-10 19:25:31 +00:00
Thomas Beckers 3b338cc687 [FIX] l10n_it_edi: some vendor credit note fail import from xml
When importing vendor credit note from an italian e-invoice xml file with a "DettaglioPagamento" section,
the data import will fail and you will have the "Unsupported image format" message on top of the invoice.

The use of '_compose_info_message' function is not possible on a 'account.edi.format' object and was
changed to use the 'invoice' parameter.

opw-2500569

closes odoo/odoo#72018

X-original-commit: 8e886704a4efb9ca2f8d2e2b021f66d668af40d8
Signed-off-by: Nicolas Lempereur (nle) <nle@odoo.com>
2021-06-10 18:50:27 +00:00
Munaf Khan 1c2598b84c [FIX] website_event_track: fixed method not allowed
Currently, while reloading following success page
it return "Method not Allowed".

   * submit track proposal and reload
   * register for an event and reload

this commit fix this error and successfully
reload the page.

closes odoo/odoo#70087

Task-id: 2500573
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2021-06-10 05:21:28 +00:00
Benjamin Frantzen (bfr) 41366b8483 [FIX] l10n_it_edi, l10n_it_stock_ddt: fix errors when trying to generate the edi without l10n_it_edi_sdicoop_installed
closes odoo/odoo#72001

X-original-commit: ac423fdac7e888ea110f4eeccb9dde21a99d01aa
Signed-off-by: William André (wan) <wan@odoo.com>
2021-06-11 07:43:07 +00:00
Achraf (abz) 78ba08fcec [FIX] base: Make addresses label translatable
Since this PR https://github.com/odoo/odoo/pull/71273, addresses label were no longer translated
This PR adds the new translation

closes odoo/odoo#71990

X-original-commit: c0ab3360ac2084fb3315463ad89761bafec17258
Signed-off-by: Nicolas Lempereur (nle) <nle@odoo.com>
Signed-off-by: Achraf <abz-odoo@users.noreply.github.com>
2021-06-10 13:57:15 +00:00
root 36bc36ebab [FIX] website: allow translation of cookie buttons
closes odoo/odoo#72010

X-original-commit: 4a79d93a175891714a15c183ff36b87832d25226
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
Signed-off-by: Yenthe Van Ginneken <Yenthe666@users.noreply.github.com>
2021-06-10 17:31:33 +00:00
wan b42313474e [FIX] account: do not override accounting date for vendor bills
The accounting date must be today by default and changing the bill date
must not affect that.

Kind of followup after this change of behavior fcaa54939e9a4f0dd5e47cd0ccffe7aa24bd451c

task-2550985

closes odoo/odoo#71977

X-original-commit: c63af09774414a004ef34644b4f38b4fdb1d12bd
Signed-off-by: Quentin De Paoli (qdp) <qdp@openerp.com>
Signed-off-by: William André (wan) <wan@odoo.com>
2021-06-10 12:27:17 +00:00
Benjamin Frantzen (bfr) 38aec52209 [FIX] l10n_it_edi_sdicoop: fixed dependency from account_edi_extended to account_edi
closes odoo/odoo#71971

X-original-commit: 16dfd78622959c69b9713d0c7362d56c273d59d3
Signed-off-by: Laurent Smet <smetl@users.noreply.github.com>
Signed-off-by: bfr-o <bfr-o@users.noreply.github.com>
2021-06-10 11:49:23 +00:00
Rémy Baranx (bar) c299aaed1d [FIX] account: remove tags records without unlinking them
In `_remove_tax_used_only_by_self`, as tags will be properly
removed in `_delete_tags_from_taxes`, we should only remove
them from the `self.tag_ids` set without unlinking them
(unlink them at this step, might lead to issues if these tags
are still linked to `account.move.line` for example).

As stated in https://github.com/odoo/odoo/blob/7444857b631e4c26ac1f13e6c29dfaa6b4c66359/odoo/models.py#L3549-L3555
we use the command `3` instead of `2` to achieve this.

upg-61375

closes odoo/odoo#71969

X-original-commit: 6a85debb540bf9281b10f8a95be1ff0b4491eabc
Signed-off-by: oco-odoo <oco-odoo@users.noreply.github.com>
2021-06-10 11:27:25 +00:00
Géry Debongnie 5beeff02be [FIX] web: update owl from 1.3.0 to v1.3.1
This commit updates owl to the latest release. It only contains a
fix to better handle t-calls in nested t-slots

Release on github: https://github.com/odoo/owl/releases/tag/v1.3.1

closes odoo/odoo#71989

X-original-commit: 5c66f47e849144f79ecf9dd63d51529be3510aff
Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
Signed-off-by: Géry Debongnie (ged) <ged@openerp.com>
2021-06-10 13:52:44 +00:00
Adrien Widart 888a29b10f [FIX] point_of_sale: delete cash statement if no sale
Suppose a POS with setting 'Advanced Cash Control' enabled. The user
starts/closes a POS session (no sale, no cash difference). In
Accounting > Cash, a bank statement exists, has no line and its starting
balance is equal to its ending balance.

The user has then to add a zero line, post an validate the bank
statement.

In such situation, the bank statement should be automatically deleted
when closing the session

OPW-2507394

closes odoo/odoo#71987

X-original-commit: 760c1b19229e2971ada911cd5607ceaea36e982f
Signed-off-by: Adrien Widart <adwid@users.noreply.github.com>
Signed-off-by: pimodoo <pimodoo@users.noreply.github.com>
2021-06-10 13:35:24 +00:00
Ivan Yelizariev 0f19ecec46 [FIX] point_of_sale: default state/country are not saved on creating
STEPS:
* set state/country for current company
* open POS
* create partner without changing default state/country values

BEFORE: the values are not saved
AFTER:  the values are saved

WHY: the values are set, but not copied to `changes` variable:

https://github.com/odoo/odoo/blob/2a8f777c04bdbdce77dc44d92e099612f158cbef/addons/point_of_sale/static/src/js/Screens/ClientListScreen/ClientListScreen.js#L43-L44

---

opw-2519788

closes odoo/odoo#71981

X-original-commit: b95ad8033c58d54f0b7137117be6d506f0b5dc56
Signed-off-by: pimodoo <pimodoo@users.noreply.github.com>
Signed-off-by: Ivan Yelizariev // IEL <yelizariev@users.noreply.github.com>
2021-06-10 12:37:09 +00:00
qsm-odoo ee94c0c357 [FIX] website: allow to drag and drop "inline" snippets next to lists
closes odoo/odoo#71962

Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2021-06-10 10:52:20 +00:00
Nicolas Pierre 4692e33d24 [FIX] mrp: send additional components to backorder
Following https://github.com/odoo/odoo/pull/64911, components that are added in the
simplified view of an MO are not transferred to the backorder, which is not aligned
with the behavior of the tablet view.

Enterprise PR: https://github.com/odoo/enterprise/pull/18897

closes odoo/odoo#71925

Task: 2566749
Related: odoo/enterprise#18897
Signed-off-by: Arnold Moyaux <amoyaux@users.noreply.github.com>
2021-06-10 08:10:03 +00:00
Younn Olivier e5d9b60c5b [IMP] website: use theme colors for snippets background
This commit changes the bg-200 static color that some snippets were
using, for the second theme color so that blocks backgrounds connect
well together.

task-2542318
Part of https://github.com/odoo/odoo/pull/71426

closes odoo/odoo#71426

Related: odoo/design-themes#15
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2021-06-10 13:38:24 +00:00
Younn Olivier 2ed51dfe16 [IMP] website: remove progress bar title margin
The mb-0 class has been added to the h4 tag of the progress bar so that
there is not too much padding if it is changed to simple text.

task-2542318
Part of https://github.com/odoo/odoo/pull/71426
2021-06-10 13:38:24 +00:00
svs-odoo f0e3c96eda [IMP] stock: delivery slip quantities
Some changes in the delivery slip layout:
  - For delivered products, replaces the Quantity column by two other
    columns: Ordered and Delivered;
  - Shows the non-delivered products even when the delivery is done and
    haven't any backorder.

task-2373833

closes odoo/odoo#61366

Signed-off-by: Rémy Voet <ryv-odoo@users.noreply.github.com>
2021-06-10 08:51:10 +00:00
svs-odoo fbf76c1f27 [FIX] stock: display float with correct decimal
Before this commit, on the delivery slip, the quantities aren't
displayed at the same way if we display the move ones or move line ones.
In the first case, we print directly the value from a record, so the
float decimal is correclty placed when the float is converted into a
string.
In the second case, we get the value from a dict, so there is no
conversion and the float is simply translated into a string.

For example, for 2 qty.:
  - For a move it display 2.00
  - For a move line it display 2

task-2373833
2021-06-10 07:51:53 +00:00
Andrea Grazioso (agr-odoo) a7e0268d64 [FIX] account: fix Average Price measure
Open Accounting>Reporting>Invoices
Add measure 'Average Price'

The reported amount will be wrong, as it will not consider the quantity,
making an average of the price subtotal

opw-2522621

closes odoo/odoo#71862

X-original-commit: 978012b38abb941c88fe85f1befa2ac659545915
Signed-off-by: Laurent Smet <smetl@users.noreply.github.com>
2021-06-08 13:04:17 +00:00
Ivan Yelizariev c50ef22974 [FIX] stock: avoid infinite loop in _procure_orderpoint_confirm
A security has been added to avoid an infinite loop due to custom
code if the failing orderpoints were not correctly return in order
to exclude them from the set to retry.

However after a first batch if some orderpoints were correctly exclude
orderpoints_exceptions will not be empty and during the second iteration
failed_orderpoints will be always filled from exceptions of previous
iterations and the infinite loop will not be detected.

opw-2525893

closes odoo/odoo#71938

Signed-off-by: Arnold Moyaux <amoyaux@users.noreply.github.com>
2021-06-10 08:09:14 +00:00
Robin Heinz dc5a62b6be [FIX] point_of_sale: fix back button when reprint
Before we were unable to go back to the product screen when pressing back button after a reprint.
With this commit, we prevent the automatic setting of screen on the order.
This allow us to go back to the the screen relative to the current order we were.

closes odoo/odoo#71926

X-original-commit: 992913018df946d1f953e4e42c70aa1a0f4ae8cd
Signed-off-by: pimodoo <pimodoo@users.noreply.github.com>
2021-06-09 15:27:19 +00:00
Benjamin Frantzen (bfr) 8eba0be6a5 [ADD] l10n_it_edi_sdicoop, account_edi_proxy_client: added support for SdiCoop webservice.
- Allows to send and receives invoices from the fatturaPA network via the webservice (SdiCoop).
- PEC mail is disabled when SdiCoop is disabled.
- Added account_edi_proxy_client, a registered user on the proxy (see l10n_it_edi_proxy on iap-apps), that features encryption. Generates a asymmetric keys, and keep the private_key to be able to decrypt file sent by the proxy (which it encrypted with the public key).
- Added a generic way to sign the requests made to the proxy.

TASK ID 2358882

closes odoo/odoo#71928

X-original-commit: 4c8afc413a8982b2e77712eab7cf7ddac9f3851f
Signed-off-by: Josse Colpaert <jco@openerp.com>
Signed-off-by: bfr-o <bfr-o@users.noreply.github.com>
2021-06-09 18:22:33 +00:00
Benjamin Frantzen (bfr) 0897b49114 [IMP] account_edi: html_escape error
In account_edi, errors are shown as html, and might come from an external service if they are returned by a web-service.

X-original-commit: 261c037a602edb907a4c2018cf8b0c8cab0f2f63
2021-06-09 18:22:33 +00:00
Thibault Delavallée c47b0054b8 [FIX] mail, hr, test_mail: correctly Markup-ize bounce notification email content
It is currently escaped as it is not Markup-ed and not considered safe.
It means raw content is currently displayed in sent emails, which is not
really what we expect.

closes odoo/odoo#71911

X-original-commit: 62e6bc216aefe93c4cd1cca8e39f124a8a298386
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2021-06-09 11:43:11 +00:00
Victor Feyens dc6db1450d [REM] web: old documentation
AFAIK, this documentation isn't built anywhere and is not maintained anyway.
Since the developer documentation was recently removed from odoo/odoo repository,
it's the right time to remove this old doc content.

closes odoo/odoo#71898

Signed-off-by: Géry Debongnie (ged) <ged@openerp.com>
2021-06-09 08:27:56 +00:00
Djamel (otd) 497a4700fb [FIX] stock_landed_cost: Moving of the fix #71596 from the product module to stock_landed_cost module
Link to the original commit: https://github.com/odoo/odoo/pull/71596/commits/fc9d63f541340ebcd485cffcd6e9a3ee6cd57f49

opw-2547663

closes odoo/odoo#71890

X-original-commit: 4139a80ac6c366289be7e328329d4868f7685e3d
Signed-off-by: William Henrotin <Whenrow@users.noreply.github.com>
Signed-off-by: Djamel Touati <DjamelTouati@users.noreply.github.com>
2021-06-09 07:42:14 +00:00
Adrien Widart 07aa40d5b5 [FIX] purchase: send email on RFQ confirmation
When confirming a RfQ, even if a follower is subscribed to "RFQ
Confirmed", he will not receive any email.

To reproduce the error:
(Need a mail catcher)
1. Create a PO
2. Add a follower and edit his subscriptions:
    - Check 'RFQ Confirmed'
3. Confirm the PO
Error: No mail has been sent. The user should have been subscribed to
"RFQ Approved" to receive an email.

OPW-2447234

closes odoo/odoo#71892

X-original-commit: b459fc86d895dcd0c4bab8bb8332241fe9a43a6f
Signed-off-by: Adrien Widart <adwid@users.noreply.github.com>
Signed-off-by: William Henrotin <Whenrow@users.noreply.github.com>
2021-06-08 16:52:08 +00:00
Ivan Yelizariev 24fc95090a [REM] calendar: delete auto_join=False
it was made for old implementation [1] which is changed since Odoo 14.0 [2]

[1] https://github.com/odoo/odoo/commit/0c07ff7f41a7961985b0f0ef6bd7941b83507822
[2] https://github.com/odoo/odoo/commit/a27afdb5434166c3ea48c18ccfba9e8245d18e62

closes odoo/odoo#71816

Signed-off-by: Ivan Yelizariev // IEL <yelizariev@users.noreply.github.com>
2021-06-08 16:10:38 +00:00
Antoine Guenet 99ac6089e5 [FIX] web_editor, mass_mailing, mail: restore the codeview as option
HTML fields used to have a toggle button for a "code view" (which came
from the Summernote library), in debug mode. This allowed the advanced
user to edit content with jinja conditions. This was lost with the new
editor but reintroduced for Mass Mailing. As it turns out it was needed
elsewhere so this makes the code view available as a node option, and
already activates it for mail templates.
To activate the code view in an html field:
```xml
<field type="html" options="'codeview': True"/>
```

Task: 2561300

closes #71860

closes odoo/odoo#71891

X-original-commit: 0f9684677676b563a0ff2712e42cea24a2ef27bb
Signed-off-by: David Monjoie (dmo) <dmo@odoo.com>
2021-06-08 16:45:58 +00:00
Nicolas (vin) d54d0ca887 [IMP] account: move the type field on account.account form view
The user_type_id field seems a bit out of place at the moment
in the header of the form view.
We will move it to the accounting tab with other fields in order to
improve that.

Task id #2563472

closes odoo/odoo#71879

X-original-commit: a542f24980982c6d4ec4d5281d79b20589cadafd
Signed-off-by: William André (wan) <wan@odoo.com>
2021-06-08 15:02:30 +00:00
Bruno Boi eec15347e9 [FIX] web: wrong condition in time helpers
closes odoo/odoo#71871

X-original-commit: a299fb2dd2f49edc1e5d088e6a0cd672583a76eb
Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
2021-06-08 13:45:23 +00:00
Nicolas Lempereur 868cec77cd [FIX] web_editor: inlining style no safari error
On safari in saas-14.2, opening the full mail editor cause an error:

    Traceback: Error: The string did not match the expected pattern.
    matches@[native code]
    getMatchedCSSRules

This is happening because this cause an error in safari:

    document.body.matches(".custom-range::-webkit-slider-thumb");

and we get selector with :: that we should ignore because in d50c3b07f1
we use a global regex with `test` and multiple call of the regex on the
same string iterates over the string, for example:

    var x = /a/g;
    [x.test('a'), x.test('a'), x.test('a')]

gives [true, false, true]

opw-2489730
opw-2489515
opw-2502066
opw-2504051
opw-2518635
opw-2532695

closes odoo/odoo#71834

X-original-commit: ad0160de12d362baf56181478ee509ad223147fe
Signed-off-by: Nicolas Lempereur (nle) <nle@odoo.com>
2021-06-07 17:58:05 +00:00
newtratip a007d2c4c0 [FIX] purchase_requisition: Delete Purchase Orders Action
closes odoo/odoo#71837

Signed-off-by: Arnold Moyaux <amoyaux@users.noreply.github.com>
2021-06-07 19:05:55 +00:00
Didier (did) 40f2c764b0 [IMP] mail, sms, snailmail: remove default date on message
We should not assume that the default date of the message is "now". A message
should only have a date when it's coming from the database that supply it.

closes odoo/odoo#70069

Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2021-06-08 13:25:25 +00:00
Nikunj Ladava e592314964 [FIX] l10n_in: fix invoice report
- before this commit,
it was raising an error when trying to install the l10n_in module, due
to unavailability of report element

- after this commit,
l10n_in module can be installed successfully

closes odoo/odoo#71854

X-original-commit: b090da2e512c943dc554296faa7bbb7dfbc51cbb
Signed-off-by: Josse Colpaert <jco@openerp.com>
2021-06-08 08:57:14 +00:00
Tiffany Chang (tic) 0f1d08b5b1 [FIX] stock: add button to remove lines in SN detailed operations form
Currently there is an action_assign_serial_show_details button within
the detailed operations form of a serial tracked product move.
Unfortunately there is no way to undo the assigning/creating of move
lines from this action (including via clicking the "Discard" button).
This can lead to a lot of manual work (e.g. 500 SNs produced instead of
50) to remove unwanted move lines. To remedy this, we add in a button
to unlink all of the move's move lines whenever the Assign Serial
Numbers button is visible.

closes odoo/odoo#71831

Task: 2426281
X-original-commit: a6191c43001f961c20b5b4d32e1fcb218df69d17
Signed-off-by: Arnold Moyaux <amoyaux@users.noreply.github.com>
2021-06-07 16:58:21 +00:00
Younn Olivier 7e5251bdd8 [FIX] web_editor: fix svg images upload
We check if the mimetype is supported when uploading an image.

task-2523574

closes odoo/odoo#71839

X-original-commit: 3765ac1f1f1644c919456246f1a3791c47c45a83
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2021-06-07 19:47:26 +00:00
Xavier Morel 36f368599c [FIX] web: warning about t-foreach missing a t-key
closes odoo/odoo#71841

Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
2021-06-08 06:12:18 +00:00
Oussama MESSAOUDI 8e299ec4b2 [FIX] website: adding title for delay input
Part of https://github.com/odoo/odoo/pull/67357
task-2471323

closes odoo/odoo#71832

X-original-commit: 37fcd93903b4df0c2186797ca8da27173dc1e889
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2021-06-07 17:01:10 +00:00
Andrea Grazioso (agr-odoo) dc62f07783 [FIX] point_of_sale: perform stock operation only when necessary
Fine tuning of
https://github.com/odoo/odoo/commit/bdd36f7ce68999576dfc30298f4ddf2572b4c7ec
to perform the assignment and related operation only when 'consignment' is
enabled

opw-2508371

closes odoo/odoo#71800

X-original-commit: 441ff95adf218534fb7f32aa16eac18023352d0f
Signed-off-by: Nicolas Lempereur (nle) <nle@odoo.com>
Signed-off-by: agr-odoo <agr-odoo@users.noreply.github.com>
2021-06-07 10:16:58 +00:00
Brieuc-brd a11d043245 [FIX] web_editor: fix position of shapes
This commit will fix a bug related to the position
of the shapes Blocks/01 and Blocks/02.
- Now, they can be connected when using together.
- Avoid a bug of position when the snippet is too tall.

Fix related to the PR #70843

closes odoo/odoo#71809

X-original-commit: b5f135f83e576f6b552392249913dacca45a7650
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2021-06-07 12:07:22 +00:00
Nicolas Pierre da1ec48481 [IMP] stock, purchase: usability improvements
1. Add product category in inventory report.
2. Default quantity when creating a transfer switched to 1 instead of 0.
3. Remove the reorganize lines step in purchase tour (there is only 1
line).

closes odoo/odoo#69483

Signed-off-by: Arnold Moyaux <amoyaux@users.noreply.github.com>
2021-06-07 10:38:31 +00:00
Romain Derie 8fac981a51 [IMP] sale: replace ICP by get_base_url in note URL
Forward-port of #71623

closes odoo/odoo#71801

Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com>
2021-06-07 10:00:45 +00:00
Djamel (otd) 4adb7014bb [FIX] stock_account: use “account_journal_id” only if the valuation is real_time
Steps to reproduce the bug:
- Go to inventory > create a new product
    -Create a new product category:
        * Select "Manual" inventory Valuation
        * Choose "First In First Out (FIFO)" costing Method
        * Be sure that in "Automated" inventory valuation, stock journal is not settled
- Save
- Update quantity of the product
- Go to Inventory > Inventory Valuation> Choose the product newly created
- Click on the "+" button to make manual valuation

Problem:
An error is triggered because we try to access stock_journal when it is false.

Solution:
Use “account_journal_id” only if the valuation is real_time and relax the required constraint of `account_journal_id` in case of manual inventory Valuation (which is not used in that case).

Opw-2541497

closes odoo/odoo#71660

X-original-commit: 421271934c3eed43d2edcb410d3d75757c1fb81b
Signed-off-by: William Henrotin <Whenrow@users.noreply.github.com>
2021-06-07 09:40:27 +00:00
jdoutreloux 51f23c4c4c [IMP] hr_recruitment : add a hired_stage boolean to recruitment stages
Previously the number of hired people in the reporting was based on
if they were in a folded stage or not. Adding this boolean allows the user
to decide which stage should be used for the computation of the number
of hired people.

Task-2462536

closes odoo/odoo#66761

Related: odoo/upgrade#2205
Related: odoo/enterprise#16644
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2021-06-04 09:44:24 +00:00
Benoit Socias 07caac0a0a [FIX] product: touch impacted products upon updating product templates
Before this commit, products relying on values of template fields (i.e.
image) were not considered updated when their fallback template field
was updated.

After this commit, upon update of a template image, all products that
would fallback on that template are "touched".
This avoids side-effects such as displaying an outdated template image
in the e-commerce for a given product.

task-2477438

closes odoo/odoo#71139

Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2021-06-07 09:29:37 +00:00
Kamlesh Pathekar df7f00401f [FIX] hr_holidays: fix email template subject error
Currently, In TimeOff module If we schedule activity for leave to defer
in the subject of email we see some extra non-ascii characters.
because emails subject lines contains non ASCII characters so they can
not encoded.

So in this commit, replace the arrow sign by slash(/) between two dates
in name_get.

closes odoo/odoo#70416

Taskid: 2501374
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2021-05-26 05:10:46 +00:00