- Jan 05, 2022
-
-
Adrien Widart authored
Suppose a product with several suppliers, all with the same partner. On the purchase order, the product description will always be based on the last supplier To reproduce the issue: 1. Create a vendor V 2. Create a product P: - Type: Storable - In Purchase, add a line L01: - Vendor: V - Vendor Product Name: Name01 - Vendor Product Code: C01 - Quantity: 1 - Price: 10 - In Purchase, add a second line L02: - Vendor: V - Vendor Product Name: Name02 - Vendor Product Code: C02 - Quantity: 20 - Price: 2 - Once P is saved, ensure the lines order in the purchase tab: - L01 - L02 3. Add a reordering rule on P: - Min: 1 4. Run the scheduler 5. Open the generated PO Error: The description is incorrect ("[C02] Name02" instead of "[C01] Name01") When computing the display name of the product, https://github.com/odoo/odoo/blob/7691567286869ca65e63fc79c2cee11e1f415fcb/odoo/models.py#L1728-L1730 `name_get` returns a tuples list: `[(37, '[C01] Name01'), (37, '[C02] Name02')]` where `37` is the product identifier. This list is then converted into a dictionary and here is the issue: it will use the last tuple to define the value for key `37`, i.e. "[C02] Name02". Therefore, `name_get` should return the correct name, and only this one. Another issue could be highlighted: when the user changes the quantity of the purchase order line, if another supplier info is selected, the description won't be updated (for the same reason as above) OPW-2702616 closes odoo/odoo#82049 Signed-off-by:
Tiffany Chang <tic@odoo.com>
-
Paolo (pgi) authored
When encoding a string or bytes with base64, the resulting byte string must be decoded to get the string back. * `addons/account_edi_proxy_client/models/account_edi_proxy_user.py` AccountEdiProxyUser._register_proxy_user() + making the default server url configurable with an ir.config_param: There is a test_mode to allow experimentation on the IAP server. To be able to switch between the two, we need to make the SERVER_URL configurable. backport of https://github.com/odoo/odoo/pull/77968 but needed some fixes opw-2703669 closes odoo/odoo#81715 Signed-off-by:
William André (wan) <wan@odoo.com>
-
Achraf (abz) authored
When you disable the headers through the website editor and try to add a product to the wishlist, a traceback occurs because there is an animation that uses the dom element of the wishlist that doesn't exist. We can avoid the animation in the case where the wish is not defined reproducible in 14.0 with the wishlist (must be activated in settings) and in 15.0 with the cart and the wishlist opw-2722163 closes odoo/odoo#82247 Signed-off-by:
Romain Derie (rde) <rde@odoo.com>
-
roen-odoo authored
Current behavior: Filter "Owner is not set" on Package in inventory app was causing a traceback Steps to reproduce: - Go in inventory app - Go in package - Apply a filter "Owner is not set" - You get a traceback opw-2714726 closes odoo/odoo#82229 X-original-commit: e4b35090 Signed-off-by:
Nicolas Lempereur (nle) <nle@odoo.com> Signed-off-by:
Engels Robin (roen) <roen@odoo.com>
-
- Jan 04, 2022
-
-
Pierre Masereel authored
When a ticket was sent by email or printed, the qr code was not visible. This was because it was not correctly put in the report and was injected in the DOM throught the mounted of the component. So we are now setting it in the qweb and prepare the values in export_for_printing instead of inject it through the component that display it. closes odoo/odoo#81562 closes odoo/odoo#82219 Signed-off-by:
Masereel Pierre <pim@odoo.com>
-
Philippe Wauthy authored
test_leave_whole_company_07 test was failing due ot the hr_leave_date_check2 constraint. This constraint check that date_from <= date_to for a leave. date_from and date_to were not assigned any value before and had a default value of fields.Datetime.now. Depending on which date_from or date_to is created first, a few second difference can exist and this violates the hr_leave_date_check2 constraint task-2726143 closes odoo/odoo#82172 X-original-commit: 77a5dfd1 Signed-off-by:
Kevin Baptiste <kba@odoo.com>
-
- Jan 03, 2022
-
-
Martin Trigaux authored
closes odoo/odoo#82166 X-original-commit: 3d544731 Signed-off-by:
Yannick Tivisse (yti) <yti@odoo.com> Signed-off-by:
Martin Trigaux (mat) <mat@odoo.com>
-
Florian Damhaut authored
Step to reproduce: - Inventory > Configuration > Operations Types > Manufacturing (or any other operation type with code 'mrp_operation') - Change 'Type of Operation' to 'Receipt' (or any other but 'manufacturing') - Uncheck box field 'Use Existing Lots/Serial Numbers' - Change 'Type of Operation' back to 'Manufacturing' - Set correct value for 'Default Source Location' (type Receipt changed the value to 'Vendor', need to fix it) - Create a storable product with the route 'Manufacture' selected. - Create a BoM for this product, with a component tracked by lot (Add quantity to component) - Create a MO for the product > Confirm > Check Availability Current Behaviour : Quantity are reserved, but the lot_ids are not visible The behaviour is due to the fact that hidden parameters still have effect when they should act as their default value. To ensure it's the case, they are set back to their original value when the user switch between configuration to avoid ending in a wrongful configuration. Behaviour after PR : Lot ids are shown no matter the hidden configuration of picking type opw-2680370 closes odoo/odoo#81290 Signed-off-by:
Arnold Moyaux <arm@odoo.com>
-
Merlin (megu) authored
Automated action with a many2many field and reference evaluation can be created but don't work Steps to reproduce: 1. Install Automated Action Rules module and Contacts app 2. Create an automated action for model 'Contact' with trigger 'On Creation' and action 'Update the Record' 3. Add a line to the automated action 'Data to Write' for the field 'Tags (res.partner)' with evaluation type 'Reference' 4. Go to Contacts, create and save a new one 5. An error is raised when trying to execute the automated action Solution: Raise an error when a many2many field is of evaluation type 'Reference' OPW-2673939 (This PR is a duplicate of https://github.com/odoo/odoo/pull/82035 which for some reason couldn't do the forward ports) closes odoo/odoo#82139 Signed-off-by:
Nicolas Lempereur (nle) <nle@odoo.com>
-
- Jan 02, 2022
-
-
Odoo Translation Bot authored
-
- Dec 31, 2021
-
-
Olivier Dony authored
Attachments that are uploaded on a record that isn't saved yet are created with res_id set to 0. In the case of attachments linked through a m2m rather than the usual (res_model, res_id), it means they may not be readable afer the creation of the record, except by their creator. Re-attaching them to the mailing / template at the end of the create() call fixes the ownership. Fixes #81935 closes odoo/odoo#82106 X-original-commit: 3857629a Signed-off-by:
Olivier Dony <odo@odoo.com>
-
David (dafr) authored
read_group on "stock.inventory.line" could result in a memory error when the database possess to many stock.inventory.line Those filters were removed on commit ba92e1da by AVD to prevent a test error where those fields were False. On his advices, I re-added them with the '|' comparator handle the False cases. OPW-2714644 closes odoo/odoo#81998 X-original-commit: 7e13cc7a Signed-off-by:
Arnold Moyaux <arm@odoo.com>
-
- Dec 30, 2021
-
-
Martin Trigaux authored
Before that, uploading a file from a kanban was adding res_id=0 Was missing from 5e81850e closes odoo/odoo#82089 Signed-off-by:
Martin Trigaux (mat) <mat@odoo.com>
-
Habib (ayh) authored
with l10n_mx_edi_stock being introduced in enterprise - we require the unit of measure object in the aggregated lines so that it can be used on the delivery report. odoo/enterprise#21591 Task-2585661 closes odoo/odoo#82086 Signed-off-by:
Josse Colpaert <jco@odoo.com>
-
qsm-odoo authored
*: web_editor, point_of_sale, pos_restaurant The grab cursor is currently not working on all browsers (at least Chrome Linux). The fallback rule does not even work, meaning that if you type: ``` cursor: move; cursor: grab; ``` Those browsers does not even use "move" as they see "grab" as valid but use the "default" cursor. This commit replaces our "grab" uses with a local cursor ensuring it works. Related to task-2431469 closes odoo/odoo#82071 X-original-commit: c8e4e1e9 Related: odoo/enterprise#23182 Signed-off-by:
Quentin Smetz (qsm) <qsm@odoo.com>
-
roen-odoo authored
Current behavior : When creating payment from invoice, the payment had the wrong sales team id Steps to reproduce : - Create atleast 2 invoices with different sales team and same partner - Register payments for every invoice - Go in payments list view - Filter on partner and group by sales team - All the payments are grouped in the same sales team opw-2681041 closes odoo/odoo#81593 Signed-off-by:
Engels Robin (roen) <roen@odoo.com>
-
Yannick Tivisse authored
Backport of 3891ab34 to 14.0 following f2c1ee5a It was not possible to print payslip report Purpose ======= If the user doesn't have access to ir.ui.view (aka no admin or website access rights), printing a report with a configured external layout will lead to a traceback, as it's forbidden for the use to read on the field "key" on the related ir.ui.view. As we only want to retrieve the view key, this is safe to use sudo at that point. Fixes odoo/odoo#81960 closes odoo/odoo#82050 Related: odoo/enterprise#23159 Signed-off-by:
Martin Trigaux (mat) <mat@odoo.com>
-
Merlin (megu) authored
The quantity of the forecasted report was displayed without any precision specified Steps to reproduce: 1. Install the Stock and Sales apps 2. Create a storable product 3. Create a quotation for this product with a quantity of 1.63 4. Confirm the quotation 5. Go to the product and open the forecasted report 6. The 'Not Available' quantity is -1.6300000000000001 instead of -1.63 Solution: Specify the widget and decimal precision used for the quantity OPW-2713548 closes odoo/odoo#81992 Signed-off-by:
Arnold Moyaux <arm@odoo.com>
-
Romain Derie authored
With a 308 redirection from `/url` to `/new_url`: Links like `/url?a=a` should be rewritten to `/new_url?a=a` and not `/new_url?a=a&a=a`. closes odoo/odoo#81685 Signed-off-by:
Nicolas Lempereur (nle) <nle@odoo.com>
-
Nicolas Lempereur authored
Reproduction: - have 308 redirection from /shop to /boutique and refresh routes - go in incognito on /boutique?order=name+asc (don't go on /boutique first, or restart odoo to clear ORM cache) - select a sorting option eg. price => we are redirected to /boutique?order=name+asc?order=list_price+asc and this error is shown: Invalid "order" specified (is_published desc, name asc?order=list_price asc, id desc). This is happening because url_rewrite is keeping current query string (see ir.http()._slug_matching) and caching it. So if the first call caches: url_rewrite('/boutique') => /boutique?order=name+asc all other url_rewrite('/boutique') calls will give you /boutique?order=name+asc even if the query string has changed. In addition to that, url_for may append query_string to url_rewrite return value, so you may get a double query_string such as: ?order=name+asc?order=list_price+asc which causes the error. In this fix, we restore the removal of query string that was removed in 3beb4545. opw-2702036 Part-of: odoo/odoo#81685
-
- Dec 29, 2021
-
-
Guillaume (guva) authored
Steps to reproduce: - Create an account group for a range for example from 100000 to 200000 - Now edit the group to have a range from 100000 to 150000 Issue: The accounts with code > 150000 are still in the account group Solution Adding an other intermediary table to the query in order to take into account the accounts which have no group_id opw-2695533 closes odoo/odoo#81475 Signed-off-by:
Laurent Smet <las@odoo.com>
-
Nicolas Lempereur authored
The translation of purchase.order().notes name (Terms and Conditions) is wrongly done in bulgarian since 2016 (d14efd56). opw-2719178 closes odoo/odoo#81993 X-original-commit: b0be51f8 Signed-off-by:
Nicolas Lempereur (nle) <nle@odoo.com>
-
- Dec 28, 2021
-
-
Younn Olivier authored
Inside a scrollable popup, the scroll was not correctly triggered when moving one of its snippets through drag and drop. This commit correctly defines the SmoothScrollOnDrag.$scrollTarget when a modal is shown. task-2431469 closes odoo/odoo#78813 Signed-off-by:
Quentin Smetz (qsm) <qsm@odoo.com> Co-authored-by:
qsm-odoo <qsm@odoo.com>
-
Laurent Smet authored
When reversing the CABA entry, the CABA tax account was replaced by the transition tax account if not set on the repartition line. To reproduce: Set up a CABA tax with ACC1 as transition tax account and ACC2 as tax account. When creating the CABA entry, there is a line on ACC1 and another on ACC2. When reversing the CABA entry, both lines are now on ACC1. Introduced by https://github.com/odoo/odoo/pull/79556 closes odoo/odoo#81986 Issue: 2718413 X-original-commit: d22cd547 Signed-off-by:
Laurent Smet <las@odoo.com>
-
William Henrotin authored
When validating a batch picking where some pickings have no quantities done + some do, then avoid immediate transfers wizard and remove pickings with no quantities done from the batch picking. This will make it so users can validate a partially done batch picking in this case. This is an adaptation of [1] (which is already deployed in 15.0) [1] eb0ebc07 OPW-2711585 closes odoo/odoo#81981 X-original-commit: d43feb00 Signed-off-by:
Tiffany Chang <tic@odoo.com> Signed-off-by:
Adrien Widart <awt@odoo.com> Co-authored-by:
William Henrotin (whe) <whe@odoo.com>
-
Florian Damhaut authored
Step to reproduce: - Duplicate expense with a uom != of Unit Current behaviour : - Error telling that the unit is not correctly chosen Behaviour After PR: - The uom is copied on duplication and no error opw-2714136 closes odoo/odoo#81638 Signed-off-by:
Damhaut Florian (flda) <flda@odoo.com>
-
Florian Damhaut authored
Step to reproduce: - Print a 'claim car report' on a car with no attachment Current Behaviour: - Print a empty PDF Behaviour after PR: - The landing page explain to the user there is no pdf to print opw-2714493 closes odoo/odoo#81687 Signed-off-by:
Damhaut Florian (flda) <flda@odoo.com>
-
- Dec 27, 2021
-
-
qsm-odoo authored
Hovering the shadow mode option reset the entire shadow instead of just previewing the mode change. Related to opw-2701512 closes odoo/odoo#81038 Signed-off-by:
Romain Derie (rde) <rde@odoo.com>
-
Nasreddin Boulif (bon) authored
Steps to reproduce: - Install `website_hr_recruiment` module - Go to `your_website.com/jobs` - Activate Edit mode and add a "3 Columns" block - Select one of the columns and set the shadow to `None` Issue: Shadow is not removed, and by default the "outset" mode is selected. Cause: When we check the state of the shadow with `css('box-shadow')`, it will always be set because a custom css 'box-shadow' is set by the module website_hr_recruitment on card element, and therefore the value will always be either 'inset' or 'outset'. Solution: If widget value is set to '', replace `box-shadow` style to 'none' (only if needed) so it will override the style from css file. opw-2701512 Part-of: odoo/odoo#81038 Co-authored-by:
qsm-odoo <qsm@odoo.com>
-
Hubert Van de Walle (huvw) authored
Steps to follow - Go to project - Select a project task with timesheet - Edit the view with studio - Edit the timesheet list view - Enable 'Show Invisible Elements' - Select 'Non-Billable' - Uncheck 'Invisible' -> An exception is thrown Cause of the issue attrs.column_invisible was used with invisible Solution remove attrs.column_invisible opw-2706370 closes odoo/odoo#81751 Signed-off-by:
Hubert Van De Walle <huvw@odoo.com>
-
Josse Colpaert authored
Before, the system required a vat number on every partner, but that is not required. We need to send it as some other kind of ID however. To clarify, a partner without vat is not for the simplified case only. closes odoo/odoo#81906 Signed-off-by:
Laurent Smet <las@odoo.com>
-
Sébastien Theys authored
* = website_livechat Prevents from leaking unnecessary information to livechat clients. opw-2453956 closes odoo/odoo#68946 Signed-off-by:
Alexandre Kühn (aku) <aku@odoo.com>
-
Nasreddin Boulif (bon) authored
Steps to reproduce the issue: - Install eCommerce and Inventory module - Go to Settings - Ensure `Product Prices` is set to 'Tax included' - Ensure `Variant Grid Entry` is activated - Create a new Product as storable - Set `Sales Price` to $1.0 - Set `Customer Taxes` to 10.00 % - Under `Variants` tab, set 'Sales Variant Selection' to 'Order Grid Entry' - Under `Variants` tab add an Attribute with 2 values - Set "Price Extra" to $2.0 to one of the variants - Go to the Shop and select the product Issue: The extra price badge does not include the taxes ($2.0 instead of $2.2), however the final price does. Cause: The price_extra field from ptav (used in the badge) does not include the taxes. However, when calculating the final price, we do first the sum of all prices (including the extra prices) and then apply the taxes. Solution: In the template, for each 'variants', we call `_get_combination_info` to get the variant.price_extra with taxes included/excluded depending the `Product Prices` setting. opw-2669871 closes odoo/odoo#81858 X-original-commit: 83c927f3 Signed-off-by:
Yannick Tivisse (yti) <yti@odoo.com> Signed-off-by:
Nasreddin Boulif (bon) <bon@odoo.com>
-
- Dec 26, 2021
-
-
Odoo Translation Bot authored
-
- Dec 24, 2021
-
-
Josse Colpaert authored
Before, the 'success' key was removed from the results of the invoice processing and as such the invoice was never put as successfully sent, but you sent it again and again. closes odoo/odoo#81902 Signed-off-by:
Laurent Smet <las@odoo.com>
-
Josse Colpaert authored
In urllib3 1.25, an _is_key_file_encrypted method was added where urllib3 checks if the keyfile is encrypted or not, but urllib3 uses filenames, while we want to use the contents of cert. So, in our case, this gave a traceback because it could not open the file. The final simple solution for now is to keep keyfile empty as we store our info in certfile anyways already. Part-of: odoo/odoo#81902
-
Bruno-brsy authored
It's possible to confirm an invoice with an archived bank account of the recipient. But it's not making any sense, since the bank account is archived. It's why we need to raise an error if the user want to confirm an invoice with an archived bank account. opw-2704605 closes odoo/odoo#81287 Signed-off-by:
Laurent Smet <las@odoo.com>
-
- Dec 23, 2021
-
-
Florian Damhaut authored
Step to reproduce: - Have a fleet contract that need renewal Current Behaviour: - A new activity is created everytime the scheduler is called Behaviour after PR: - A new activity is only created if there is no current renewal activity present when the scheduler is called opw-2713537 closes odoo/odoo#81671 Signed-off-by:
Nicolas Lempereur (nle) <nle@odoo.com>
-
Merlin (megu) authored
Journal entries related to a POS session without cash are wrong Steps to reproduce: 1. Install the Point of Sale and Accounting apps 2. Go to Point of Sale -> Configuration -> Point of Sale and create a new one 3. Remove the payment method 'Cash' for this POS and save 4. Open a session in this POS, sell something and then close and post journal entries 5. Open the Journal Items related to the session Solution: Fix the account_move_line query to match the statement_id with the session's statement_ids OPW-2684748 closes odoo/odoo#81790 Signed-off-by:
Grazioso Andrea (agr) <agr@odoo.com>
-
Nicolas (vin) authored
There is an issue when exporting pdf using edi documents created before the PDF/A commit. With the subtype now included, the system would try to use the subtype given by the ir.attachment which would not be formated as expected by the pdf file format. The attachment may get neutered by the ORM, so we may have to force the mimetype when embedding it. This fix in two parts will allow to force a subtype when adding an attachment into a pdf, as well as parse the subtype of ir.attachment to give them the right format. xxx/xxx should become /xxx#2Fxxx opw-2714040 closes odoo/odoo#81709 Signed-off-by:
Laurent Smet <las@odoo.com>
-