- Mar 22, 2022
-
-
Pierre-Yves Dufays authored
Correction that enables the display of the "unpublished" red label next to the track name that are not published for the user of the group event manager only. Task-2692907 closes odoo/odoo#85976 Signed-off-by:
Thibault Delavallee (tde) <tde@openerp.com>
-
- Mar 21, 2022
-
-
Raphael Collet authored
Deleting an orphan translation is mostly impossible, since it requires 'write' access on the corresponding records, and checking access rights fails because the records no longer exist! Simply enable operations on orphan translations by ignoring the corresponding records that do not exist. And make sure that the patch does not allow to create orphan translations. closes odoo/odoo#86788 X-original-commit: cf6aed79 Signed-off-by:
Raphael Collet <rco@odoo.com> Co-authored-by:
Martin Trigaux <mat@odoo.com>
-
Goffin Simon authored
Show the optional field analytic_tag_ids with widget many2many_tags in view account.move.line.tree.grouped opw:2778260 closes odoo/odoo#86785 Signed-off-by:
William André (wan) <wan@odoo.com>
-
Kevin Baptiste authored
Newly created taxes were missing the correct type_tax_use and price_include values, thus making them not working properly. closes odoo/odoo#86776 Signed-off-by:
Kevin Baptiste <kba@odoo.com>
-
Adrien Widart authored
When changing the structure of a kit, it lead to undesirable behaviors on Odoo Issue 01: 1. Create 3 products P_kit, P_compo01, P_compo02 - Type: Storable - Category: PC 2. Create a bill of materials: - Product: P_kit - Type: Kit - Components: - 1 x P_compo01 3. Create a purchase order PO with 2 x P_kit 4. Confirm PO and process the receipt 5. Edit the bill of materials of P_kit: - Add 1 x P_compo02 in components 6. Return 1 x P_compo01 7. Go back to the PO Error: The received quantity is 0 while it should be 1.0 When processing the return, the received quantity is recomputed, which lead to: https://github.com/odoo/odoo/blob/59fcb31f5a0b8136dae26b70ca0087f9b5cf3d24/addons/purchase_mrp/models/purchase_mrp.py#L29 However, since in the mean time the user added a new line in the BoM, `_compute_kit_quantities` doesn't find any associated SM (`bom_line_moves` is empty in [3]) and thus returns 0. Issue 02: (Need account_accountant. Use demo data) 1. Create a product category PC: - Costing Method: AVCO - Inventory Valuation: Automated - Set up the Price Difference Account 2. Create 3 products P_kit, P_compo01, P_compo02 - Type: Storable - Category: PC 3. Create a bill of materials: - Product: P_kit - Type: Kit - Components: - 1 x P_compo01 4. Create a purchase order PO with 1 x P_kit 5. Confirm PO and process the receipt 6. Edit the bill of materials of P_kit: - Add 1 x P_compo02 in components 7. Create and Post the bill Error: an Odoo Error is raised "ZeroDivisionError: float division by zero" While confirming the bill, some anglo saxo lines are generated. To do so, the valuation of the kit is computed: [1]. In the above case, it will lead to [2]. However, since in the mean time the user added a new line in the BoM, `_compute_kit_quantities` doesn't find any associated SM (`bom_line_moves` is empty in [3]) and thus returns 0. Back to [1], the quantity is used to divide the total price -> it will raise an error if this quantity is zero Suggestion: Such situations should not happen: once a product is used at least once, it should not become a kit nor have a new structure (if it was already a kit). Otherwise, `_compute_kit_quantities` will not correctly work since it is not possible to take the BoM changes into consideration. [1] https://github.com/odoo/odoo/blob/abfe37fcea5b20f77799d9331d4d011530880669/addons/purchase_stock/models/account_invoice.py#L72-L74 [2] https://github.com/odoo/odoo/blob/75191404788ab83645ee35b779991ea6fcdfa406/addons/purchase_mrp/models/stock_move.py#L19 [3] https://github.com/odoo/odoo/blob/7d1af314320547ab5e37c1d97cad22992c98565b/addons/mrp/models/stock_move.py#L275-L294 OPW-2780855 closes odoo/odoo#86775 X-original-commit: 33fa43f7 Signed-off-by:
William Henrotin (whe) <whe@odoo.com> Signed-off-by:
Adrien Widart <awt@odoo.com>
-
imjaygajera authored
closes odoo/odoo#86717 Signed-off-by:
Martin Trigaux (mat) <mat@odoo.com>
-
Florian Damhaut authored
Step to reproduce: - Create leave type approved by the employee manager (and no limit allocation) - Set User A with user B as his manager - Set User C as a time off Officer - As user A request leaves of the before-mentionned type - As user C, try to approve A's leave request Current behaviour: - Leave is accepted Since V15, the groups have change and `is_officer` no longer represent time_off all approver but time_off officer. All approver are now timeoff Administrator and so the right of time off officer should be limited. Behaviour after PR: - Error is shown to the current user explaining that he need to be the current employee manager. opw-2753845 closes odoo/odoo#86629 Signed-off-by:
Kevin Baptiste <kba@odoo.com>
-
oco-odoo authored
[FIX] account: proper tax repartition for tax lines when using a writeoff reconciliation model with taxes When creating the results of a writeoff button for the manual reconciliation widget, debit and credit are actually inverted with regards to what will actually get created (final inversion is then done here to bring them back to the right sign: https://github.com/odoo/enterprise/blob/15.0/account_accountant/models/reconciliation_widget.py#L986 ). Because of that, the conditions defining whether or not the compute_all should compute refund repartition need to be inverted as well. Note that it wasn't the case for bank reconciliation widget, for which the sign was directly right. Before that, compute_tax_tag_invert computed a different value for the tax_tag_invert field on base and tax line (as the tax line uses the repartition type of tax_repartition_line_id, and the base line depends on debit/credit and the tax type). Hence, the tax_tag_invert values between those two lines where inconsistent, and the tax report was wrong (since we did * -1 on one of them, but not the other). OPW 2769586 closes odoo/odoo#86091 Signed-off-by:
Laurent Smet <las@odoo.com>
-
tsm-odoo authored
Mock server's mail channel write method is incorrect. It assumes the id of the channel will always be 20 while it could be anything. closes odoo/odoo#86770 Signed-off-by:
Sébastien Theys (seb) <seb@odoo.com>
-
Nicolas Bayet authored
task-2793106 closes odoo/odoo#86767 Signed-off-by:
David Monjoie (dmo) <dmo@odoo.com>
-
Nicolas Bayet authored
Before this commit The style for `li.oe-nested` was loaded only when the editor loaded. The problem is that the style needs to be visible even when the editor has never been loaded. After this commit The style for `li.oe-nested` is always loaded in the backend and in the frontend. Task-2793528 closes odoo/odoo#86758 Signed-off-by:
David Monjoie (dmo) <dmo@odoo.com>
-
Touati Djamel (otd) authored
Steps to reproduce the bug: - Go to Inventory > Transfers > Select a ready transfer with no qty done - Print > barcodes (ZPL) or barcodes (PDF) Problem: The file is empty because there is no qty_done. Solution: If no qty is done, then print all barcodes as if picking is done. It makes sense, for example, when a user wants to print the barcodes before the product is delivered but if at least one move_line has a Qty_done then do not print the other move_lines which have a qty_done of 0 opw-2780365 closes odoo/odoo#86756 X-original-commit: f6ae75f2 Signed-off-by:
William Henrotin (whe) <whe@odoo.com> Signed-off-by:
Djamel Touati (otd) <otd@odoo.com>
-
Thibault Francois authored
Context ------- Web design specific require a lot of work and need maintenance. So far the style files were not taken into account despite the amount of maintenance they require. With this commit they are going to be counted, knowing they still can be excluded in the manifest. Imported module allow to deploy frontend assets: stylesheet, javascript, xml template and Qweb view that require as well some maintenance. They are going to be counted Implementation -------------- - Add method to parse css and scss file - Include .scss and .css file in the count - Add external_id to attachment that store frontend asset of imported module - Find all attachment with .js, .css, .scss, .xml from imported module - Find qweb view from imported module - cound the content of the attachment and the qweb view closes odoo/odoo#85854 Signed-off-by:
Christophe Simonis <chs@odoo.com>
-
Akim Juillerat authored
In case an open balance needs to be created on a receivable or payable account after reconciliation, but no partner was defined on the statement line, we want to keep the partner from the counterpart values that was identified through reference matching. closes odoo/odoo#86728 X-original-commit: 8c4d6d36 Signed-off-by:
Florian Gilbert <flg@odoo.com>
-
Bruno-brsy authored
Step to reproduce: - Install contacts - create a new contact and set "Côte d'Ivoire" as country - add a phone number like this one: (+225) 01 02 03 04 05 - try to send a sms to the number, it's says "(Invalid number)" instead of the number, so it's not possible to send the SMS The Ivory Coast has a new standard for the phone number since the 31 January 2021, the phone number can have a length of ten digits. And we use the library phonenumbers with the version 8.9.10 and 8.8.1 for the runbot and the SaaS server, but it's quite old (the 8.9.10 is released on Jul 12 2018). The library in version 8.12.29 resolve the issue, but using the recommended installation method, we would not have this version. opw-2726582 closes odoo/odoo#86577 X-original-commit: 2f718cd7 Signed-off-by:
Nicolas Lempereur (nle) <nle@odoo.com> Signed-off-by:
Bruno-brsy <brsy@odoo.com>
-
Nicolas Bayet authored
task-2734733 closes odoo/odoo#82915 Signed-off-by:
David Monjoie (dmo) <dmo@odoo.com>
-
Jinjiu Liu authored
Reproduction: 1. Add the subtotal field (untaxed_amount) to either the list or form view in hr.expense 2. Create an expense that uses a unit price/quantity, set the fields and save 3. The subtotal field is not updated Reason: the field untaxed_amount is not saved, as its value is not passed to the write function even with attribute store=True Fix: Added an invisible field for untaxed_amount and set force_save=”1” opw-2725901 closes odoo/odoo#86671 Signed-off-by:
Kevin Baptiste <kba@odoo.com>
-
Touati Djamel (otd) authored
Steps to reproduce the bug: - Enable “Storage Locations” option in the inventory settings - Go to Inventory > Configuration > Warehouse > locations - Choose any Location > Click on current stock > Select any product - Try to add two line Problem: Traceback is triggered, Because the line should not be added twice(like in “Inventory Adjustments” view) and as in the `_onchange_location_or_product_id` we access the quantity, it should be only one quant: https://github.com/odoo/odoo/blob/15.0/addons/stock/models/stock_quant.py#L517 In v14, this list view is not editable, but since the refactor in v15 added the new view `stock.quant.inventory.tree.editable`, it is being called by this action Solution: set the `view_id` to `stock.quant.tree`, which is the view it was previously using opw-2779795 closes odoo/odoo#86432 Signed-off-by:
Tiffany Chang <tic@odoo.com>
-
Yolann Sabaux authored
Steps to reproduce: - create a contact with a very long name - create a quotation - in customer, type the first letter of the very long customer's name - try to use the horizontal scroll bar Issue: close window on horizontal scroll Solution: Discriminate an horizontal scroll from a vertical scroll A test has been added as well as the triggerScroll utility function to allow proper tests when scrolling on elements opw-2777443 closes odoo/odoo#86088 Signed-off-by:
Aaron Bohy (aab) <aab@odoo.com> Co-authored-by:
Iucapad <luvi@odoo.com>
-
Nicolas (vin) authored
Since https://github.com/odoo/odoo/commit/cb6c6224be4eaa80091f51f957059de889332e68 we are now raising possible errors when uploading an invoice. In 14.0+ we are allowing via a redirect warning to change the status of the currency without changing the page but the upload only starts when you change the uploaded file. So the following flow does not work: - Try to upload a bill with MXN currency - With MXN being inactive, it raises an error. Using the redirect warning action we activate the currency, clos the modale window and try to upload again. - The upload won't work until we refresh the page, because the value of the input file does not change (or we need to select another one, then the first one again) This change reset the file input if there is an error raised during the upload allowing to select the same file more than once without reloading. closes odoo/odoo#86517 X-original-commit: 4bfc7507 Signed-off-by:
William André (wan) <wan@odoo.com>
-
- Mar 20, 2022
-
-
dbkosky authored
When using price included taxes, the xml contained data that failed to meet the constraints of the edi. This is due to the local rounding on the lines of the invoice. For example: A product costing 321€, on two lines of the invoice, with a price included tax of 22% Rounded per line: float_round( 321 - (321/122 * 100), 2 # To two decimal places ) evaluates to 57.89, the total tax will be 2 * 57.89 = 115.78 In the case of global rounding float_round( 321 + 321 - (321/122*100) - (321/122*100), 2 # To two decimal places ) evaluates to 115.77, so we have a difference of one cent. This can be exacerbated by more lines. The constraints on the EDI that this conflicts with are on the tax summary section for each tax. The constraints (roughly reworded): 00422: The base taxable amount for the tax must be equal to the sum of the base product prices (for which we have already used the rounded computed values, calcuated in the invoice) + <Arrotondamento> (rounding). 00421: The value provided for the <importo> that is the value of the vat is equal to the taxable base multiplied by the tax rate. The problem is that because of our local roundings, the taxable base is equal to our products, but the tax rate * taxable base is not equal to the tax amount (as present in the invoice). This commit adds to the rounding field and subtracts from the taxable base of the tax summary a value rounding value that should make tax rate * taxable base equal to the value of the vat. closes odoo/odoo#86683 Task: 2789290 X-original-commit: def954e8 Signed-off-by:
Josse Colpaert <jco@odoo.com>
-
Odoo Translation Bot authored
-
- Mar 18, 2022
-
-
Goffin Simon authored
Steps to reproduce the issue: - Let's consider a company C in $ and the rate conversion from $ to € is 0.5 - Let's consider a product P - Let's consider a pricelist PL1 in € such as P is set to 100€ - Let's consider a pricelist PL2 in $ such as P id set to 100$ - Create a sale order SO with PL1 - Create a line with P Bug: The unit price of P was 200€ instead of 100€ because field currency_id was not set on the line when trying to pass it to function _get_tax_included_unit_price opw:2789324 closes odoo/odoo#86490 Signed-off-by:
Simon Goffin <sig@odoo.com>
-
JF Aubert authored
Workorder _action_confirm works in batch and is designed to link workorders and moves per production. Original code breaks the 'per production' constraint by linking moves from all productions to workorders of the last one when called on workorders from multiple productions. closes odoo/odoo#86633 Task: 2797201 Signed-off-by:
Arnold Moyaux <arm@odoo.com>
-
Davan CHIEM DAO authored
This fixes erroneous matching of product when the product code in an invoice is ambiguous and fixes a missuse of the label from a product rather than the one on the invoice Previously, a product would be set on an invoice line even if several products share the product code and when a product is set the label is the one of the matched product Now, a product is set if the code matches one and only one product and the label used is always the one from the invoice closes odoo/odoo#86631 Task: 2764978 X-original-commit: b7d45808 Signed-off-by:
Josse Colpaert <jco@odoo.com>
-
Benoit Socias authored
Since [1] illustration shapes are only obtained from their slug. Before they were obtained from their URL. After this commit the old behavior is restored as a fallback in case the illustration shape cannot be found from its slug. This is needed to allow importing shapes into the system from data files. [1]: https://github.com/odoo/odoo/commit/bde8abcfeb57c74438943e44215a7c8cb822329f task-2793073 closes odoo/odoo#86342 Signed-off-by:
Quentin Smetz (qsm) <qsm@odoo.com>
-
Benoit Socias authored
Since [1] the CSS property reset for hovered outline buttons is using invalid property values. After this commit the color and image are only reset on non-hover: - the `background-color` is already set to `none` by `.btn`, - the `background-image` is only set if defined on the button's style - there is no need to reset it. [1]: https://github.com/odoo/odoo/commit/a010c91b5ee119cf54ed1a68a6ea06b2bc5f3978 task-2633169 closes odoo/odoo#86205 Signed-off-by:
Quentin Smetz (qsm) <qsm@odoo.com>
-
Adrien Widart authored
When confirming a sale order, if a purchase order is generated, the descriptions of the PO's lines won't be adapted to the vendor To reproduce the issue: 1. Create a vendor V 2. Create a product P: - Type: Service - In Purchase, add a line L01: - Vendor: V - Vendor Product Name: Name01 - Vendor Product Code: C01 - Purchase Automatically: True 3. Create and Confirm a SO with 1 x P 4. Open the generated PO Error: The description is incorrect (it's the standard name of P instead of "[C01] Name01") OPW-2777702 closes odoo/odoo#86256 closes odoo/odoo#86657 X-original-commit: 766964e4 Signed-off-by:
Tiffany Chang <tic@odoo.com> Signed-off-by:
Adrien Widart <awt@odoo.com>
-
Adrien Widart authored
When delivering an additional product with a specific UoM, the generated line on the sale order should have that same UoM To reproduce the issue: 1. In Settings, enable "Units of Measure" 2. Create two products PA and PB (UoM of PB is the meter) 3. Create and confirm a SO with 1 x PA 4. On the picking, add 1 km(!) x PB 5. Validate the picking 6. Go back on the SO Error: the line for PB is incorrect, its UoM is 'm', it should be 'km' OPW-2761913 closes odoo/odoo#86471 X-original-commit: 042609e6 Signed-off-by:
Steve Van Essche <svs@odoo.com> Signed-off-by:
Adrien Widart <awt@odoo.com>
-
Florian Damhaut authored
Step to reproduce: - Create a Quotation Template QT and set in in the sale settings - In the confirmation Tab of QT add a confirmation email - As a portal user, purchase an item in ecommerce The payment must be confirmed. (tested using payment_test module) Current Behaviour: - Traceback on confirmation email rendering, portal user do not have access to the full data. Behaviour after PR: - Email is rendered as superuser to ensure data is correctly fetched opw-2749804 closes odoo/odoo#86357 X-original-commit: 8ece0413 Signed-off-by:
Victor Feyens (vfe) <vfe@odoo.com>
-
Julien Alardot (jual) authored
Currently, the tax report contains the lines for tripartite trade, but no taxes have been made for these. As the EC list report use these taxes it, these needs to be implemented. closes odoo/odoo#86121 Task: task-2759470 Signed-off-by:
Julien Alardot (jual) <jual@odoo.com> Signed-off-by:
Josse Colpaert <jco@odoo.com>
-
Pablo Montenegro authored
We have a bug when we were computing the invoice rate that is used to report to AFIP. The rate we were setting was an old rate that references the day that the invoice was created and not the rate of the day where the invoice was validated. This was happening because the l10n_ar_currency_rate field that stores this value was computed before posting the invoice. At that time the date field store the value of the date where the invoice was created and had not been updated yet with the accounting date. Moving the l10n_ar_currency_rate field calculation after the invoice post solves the problem and now the l10n_ar_currency_rate has the rate of the accounting date. Part-of: odoo/odoo#84470 Original commit: aac1165655d31ba3bca4b105e0c905534e91df93 closes odoo/odoo#85880 Related: odoo/enterprise#25022 Signed-off-by:
Josse Colpaert <jco@odoo.com>
-
Davan CHIEM DAO authored
This fixes the how general discounts and product discounts are represented in the Italian EDI. Previously, discounts were erroneously calculated and represented on several invoice lines not linked to the product. Now, cascading discounts are summaries as 1 percentage discount for products and 1 amount for the general discount. closes odoo/odoo#85844 Task: 2764978 X-original-commit: 806d766b Signed-off-by:
Josse Colpaert <jco@odoo.com>
-
dbkosky authored
When codice fiscale is not the same as the partita IVA, the template was utilising the wrong value for IdCodice in <IdTrasmittente>. It should use the value of codice fiscale, and if it's not found, then use the vat value (e.g. when it's not an Italian company). closes odoo/odoo#86617 X-original-commit: e961ff22 Signed-off-by:
Josse Colpaert <jco@odoo.com>
-
dbkosky authored
The issue is that the config param is data, which means that when the module is updated, the config parameter will be updated (i.e. reset to the 'demo' state), which will cause havoc on client databases. Even if we set the record to 'noupdate=1', the existing clients will have the record updated. The solution is to remove the config param from the data entirely, thus preventing it from being updated when updating the module, and instead have a 'post_init_hook' that sets the parameter to 'demo' (this will only happen when the module is installed, and never again). closes odoo/odoo#86594 X-original-commit: 1d3cd7ee Signed-off-by:
Josse Colpaert <jco@odoo.com>
-
- Mar 17, 2022
-
-
dbkosky authored
PrezzoUnitario causes an error when the discount is 100% as it tries to divide by zero. Fix this by just using the unit price when the discount is 100%. closes odoo/odoo#86604 X-original-commit: 23e84145 Signed-off-by:
Josse Colpaert <jco@odoo.com>
-
rhe-odoo authored
When we were doing a price modification on a product and this orderline was refund, the displayed price on the product screen was changed to the new value. Example: - Default price: 33 - Paying with a price set to: 2 The order is refund: - Product price is set to 2 It should only be 2 on the order refunded. The fix doesn't change the price of the product after a refund anymore. closes odoo/odoo#86496 Signed-off-by:
Masereel Pierre <pim@odoo.com>
-
- Mar 16, 2022
-
-
Romain Derie authored
When clicking on readonly stat button (website related), it would sometimes raise a traceback since there is no action to redirect to. Step to reproduce: - Go to Website > Visitors > Visitors - Select a Visitor to enter its form view - Now, either: A. Enter edit mode B. Enter edit mode and discard (or save) - Click on stat button This will raise a traceback, since the `disabled` property is now gone. Indeed, the framework is adding/removing that attribute when entering or leaving edit mode. See disableButtons()/enableButtons()` called by _setEditMode()/_onDiscard()/..` Note: - With the new framework/owl, there is no TB as the `disabled` attribute is not removed anymore. - In 14.0, there is no issue despite the `disabled` attributed being removed. Fixes #78500 Closes #80884 Courtesy of @odooaktiv closes odoo/odoo#86392 Signed-off-by:
Romain Derie (rde) <rde@odoo.com>
-
roen-odoo authored
Current behavior: All batch transfers are shown in the tree view. But only the one for the allowed companies should be in the list Steps to reproduce: - Be in a multicompany environnement - Activate batch picking - Go in Inventory/Batch transfers opw-2752617 closes odoo/odoo#86505 X-original-commit: 8415b48c Signed-off-by:
Tiffany Chang <tic@odoo.com> Signed-off-by:
Engels Robin (roen) <roen@odoo.com>
-