- May 04, 2021
-
-
Ivan Yelizariev authored
ALIAS_WRITEABLE_FIELDS is used to write alias fields with sudo Steps to reproduce: 1. Create a user 1.1. Give rights Services -> Project-> Administartor 1.2. Not given rights Administration-> administartor 2. Project app -> open any project -> Action -> duplicate -> it give validation error. --- opw-2506566 closes odoo/odoo#70315 Signed-off-by:
Nicolas Lempereur (nle) <nle@odoo.com>
-
Andrea Grazioso (agr-odoo) authored
Have in a purchase order a first row with unit price 0 Export the PO adding unit price in the list of fields to export The unit price is not reported This occur because the first line of the order lines is meld with the purchase order line but in the process the 0.0 values is discarded opw-2510917 closes odoo/odoo#70355 X-original-commit: 242bf502 Signed-off-by:
agr-odoo <agr-odoo@users.noreply.github.com>
-
Benjamin Frantzen (bfr) authored
When embedding to pdf, the name of the attached file should be 'factur-x.xml' (official specifications, section 6.2) closes odoo/odoo#70293 Signed-off-by:
Laurent Smet <smetl@users.noreply.github.com>
-
- May 03, 2021
-
-
oco-odoo authored
Since the payment refactoring, the structured reference of a payment is stored in its ref field, not payment_reference like for invoices. This caused payments never to be matched with highest priorities, as payment_reference_flag was always false, and only communication_flag could match. To reproduce: - Have a reconcile model with match_total_amount=False. - Create a statement line with communication a1b2c3 for 1000 - Create 3 payments: > 500, with memo a1b2c3 > 500, with memo a1b2c3 (so, the same one) > 500, with memo d1e2f3 - Open the reconciliation widget for your statement line ===> The 3 payments are matched, while only the two first ones should have been, as they were exact matches for the communication, and should hence have received higher priority. closes odoo/odoo#70277 Signed-off-by:
Laurent Smet <smetl@users.noreply.github.com>
-
- Apr 29, 2021
-
-
Laurent Stukkens (LTU) authored
Steps to reproduce: - Create an SO for a prepaid service in company A and confirm it - Create a project and a task in company B and select the customer linked to the SO you previously created - Unselect company A from the multi-company widget; only display the records from company B - Timesheet on the task you previously created Observed behavior: - The SOL set by default belongs to company A, thus generating an access right error when trying to timesheet on the task Expected behavior: - The SOL set by default should belong to the same company as the task task-2515259 closes odoo/odoo#69783 Related: odoo/enterprise#17921 Signed-off-by:
Yannick Tivisse (yti) <yti@odoo.com>
-
- May 04, 2021
-
-
Goffin Simon authored
Steps to reproduce the bug: - Let's consider an employee E that doesn't work on Monday morning - Create a half day leave request LR for E on a Monday afternoon - Save Bug: The duration of LR was counted as one day instead of 0.5 opw:2491784 closes odoo/odoo#68977 Signed-off-by:
Simon Goffin (sig) <sig@openerp.com>
-
- Apr 28, 2021
-
-
Valentino authored
Feedback received: change the name from 'Argentinean Website' to 'Argentinean eCommerce' in order to stay consistent with the functional name of stadand Apps closes odoo/odoo#69959 Signed-off-by:
Josse Colpaert <jco@openerp.com>
-
- May 04, 2021
-
-
Victor Feyens authored
The only purpose of the module `test_documentation_examples` is to test a few of the code examples shown in the developer documentation. As de86b3fb79e removes the documentation sources from the repository, the test module is removed as well. DOC PR: https://github.com/odoo/documentation-user/pull/945 task-2352371 closes odoo/odoo#70178 Signed-off-by:
Victor Feyens (vfe) <vfe@odoo.com> Co-authored-by:
Victor Feyens <vfe@odoo.com> Co-authored-by:
Antoine Vandevenne <anv@odoo.com>
-
Victor Feyens authored
In odoo/documentation-user#945, the developer documentation is merged with the user documentation in a single repository and build config. This commit then removes source files for the developer documentation from the odoo/odoo repository. DOC PR: https://github.com/odoo/documentation-user/pull/945 task-2351938 task-2352371 task-2205684 task-2352544 Co-authored-by:
Victor Feyens <vfe@odoo.com> Co-authored-by:
Antoine Vandevenne <anv@odoo.com>
-
Adrien Widart authored
When adding a product to a repair order, the module automatically adds all product's taxes, even if some taxes belong to other companies. To reproduce the error (Need 2 companies C01 and C02. Let C01 be the current company) 1. Create a product P - Must have a tax T_C01 2. Switch to C02 3. Edit P - Add a tax T_C02 4. Activate C01 5. Create a Repair Order - Add a customer - Add a line with product P Error: Both T_C01 and T_C02 are added. However, since C02 is the current company, T_C01 should not be added. (Similar issue possible with `repair.fee`) OPW-2486791 closes #68079 closes odoo/odoo#70319 X-original-commit: 6b93d5aa Signed-off-by:
Steve Van Essche <svs-odoo@users.noreply.github.com> Signed-off-by:
Adrien Widart <adwid@users.noreply.github.com>
-
Achraf (abz) authored
What are the steps to reproduce your issue ? 1. Create a record and add two attachments 2. Navigate quickly between these attachments What is currently happening ? Traceback TypeError: Cannot read property 'complete' of undefined at AttachmentViewer._handleImageLoad (https://www.odoo.com/mail/static/src/components/attachment_viewer/attachment_viewer.js:163:20 ) opw-2521901 closes odoo/odoo#70309 Signed-off-by:
Alexandre Kühn (aku) <aku@odoo.com>
-
Adrien Widart authored
Updating a completed survey will raise an error with a traceback. To reproduce the error: (Use demo data) 1. Survey > Participations 2. Select a completed form 3. Change one answer, Save Error: A traceback appears "[...] ValueError: Computing score requires a question in arguments." Here is an extract from the method concerned: ```python @api.model def _get_answer_score_values(self, vals, compute_speed_score=True): """ [...] """ user_input_id = vals.get('user_input_id') answer_type = vals.get('answer_type') question_id = vals.get('question_id') if not question_id: raise ValueError(_('Computing score requires a question in arguments.')) ``` This method needs some information to work properly. OPW-2488974 closes odoo/odoo#69842 Signed-off-by:
Adrien Widart <adwid@users.noreply.github.com>
-
nouraellm authored
- Fix tends to prevent precision overflow in forecasted report Current behavior before PR: - If there are 2 units in stock and product_uom_qty is set to 0.66 the free_stock will be equal to 1.3399999999999999 Desired behavior after PR is merged: - If there are 2 units in stock and product_uom_qty is set to 0.66 the free_stock should be equal to 1.34 opw-2425473 opw-2459650 opw-2448443 opw-2446985 opw-2440853 opw-2464507 closes odoo/odoo#70287 Signed-off-by:
Rémy Voet <ryv-odoo@users.noreply.github.com>
-
- Apr 27, 2021
-
-
Kamen Zhekov authored
Description of the issue/feature this PR addresses and current behavior before PR: There is a discrepancy in the wording of the error message provided. The error reads that an 'internal user' is linked but really its a 'portal user.'. Desired behavior after PR is merged: The wording of the error is clearer, and it now says 'portal user' instead of 'internal user'. OPW: 2498139 I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr closes odoo/odoo#69925 X-original-commit: cdd94cdd Signed-off-by:
Simon Goffin (sig) <sig@openerp.com> Signed-off-by:
Kamen Zhekov <kzhekov@users.noreply.github.com>
-
- May 03, 2021
-
-
Philémon van Helden authored
In eg. 13.0 when refreshing sales analysis action of a product, we would get an error because we have a single active_ids which is not expected by the code. With this commit, we use .toString() on the jQuery BBQ parsed active_ids as it was done before 32b8cec5 refactoring (january 2018). The added test with the fix fails with an error: TypeError: state.active_ids.split is not a function at Class.loadState (/web/static/src/js/chrome/action_manager_act_window.js) opw-2471982 closes odoo/odoo#70279 X-original-commit: bf9a985f Signed-off-by:
Nicolas Lempereur (nle) <nle@odoo.com> Signed-off-by:
pvh-odoo <SwagSamaSempai@users.noreply.github.com> Co-authored-by:
Nicolas Lempereur <nle@odoo.com>
-
- May 04, 2021
-
-
Nicolás Mac Rouillon authored
This "depends context" was missing fields and the compute of the stock qty's were not correct in several cases. We add the same as the fields "force_company". closes odoo/odoo#70268 X-original-commit: d6bd78e5 Signed-off-by:
William Henrotin <Whenrow@users.noreply.github.com>
-
- May 03, 2021
-
-
Swapnesh Shah authored
Before this commit, User can select Cancelled MO before selecting Product. but it is already blocking since we already have constrains to not allow ubnuilding Cancelled MO. With this commit, We are always showing Done MO. closes odoo/odoo#70214 Signed-off-by:
Rémy Voet <ryv-odoo@users.noreply.github.com>
-
- Apr 19, 2021
-
-
Rémy Voet (ryv) authored
The button plan of in the manufacturing order tree view doesn't confirm correctly the draft MO selected (but only the related moves). task-2479111 closes odoo/odoo#69409 Signed-off-by:
William Henrotin <Whenrow@users.noreply.github.com>
-
- May 02, 2021
-
-
Swapnesh Shah authored
Before this commit, Creating Unbuild order using Unbuild Button was resetting Bom as it was calling `_onchange_product_id` after setting `mo_id` which was resetting Bom on Unbuild order. To Fix Issue, We setting `default_product_id` so It would not reset `bom_id` when `_onchange_product_id` is called. Fixes: #70216 Odoo Ticket: 2521788 closes odoo/odoo#70218 Signed-off-by:
Rémy Voet <ryv-odoo@users.noreply.github.com>
-
- May 03, 2021
-
-
Romain Derie authored
Before this commit, the routing map generated and used would be the one from the website the request is performed, instead of the one from the `fw` website ID which will be the one we redirect the user to. This issue was introduced with the routing map by website, be8fc229 and is restricted to a single case: a publisher using the website switcher, and it won't happen on next page naviguation/refresh as the `fw` website id will be the same as the current website's ID. Thus there won't be any routing map mismatch. Step to reproduce: - Create a page on website 2, set it as homepage - Naviguate to website 1 on '/' url - Naviguate to website 2 on '/' url This will raise a werkzeug error about `EndPoint not iterable`. ----- Technical analysis ------ This is the current flow: 1. `_dispatch()` is setting `website_routing` to `get_current_website()` -> 2 2. `_dispatch()` is calling `_match()` 3. `_match()` is calling `routing_map()` with key = `website_routing`, which was set to 2 in step 1. 4. `routing_map()` is calling `_generate_routing_rules()` which generate the rules based on `website_routing`, which was set to 2 in step 1. 5. `_dispatch()` authenticate the user by calling `_authenticate()` 6. `_dispatch()` is calling `_add_dispatch_parameter()`, where URL param `fw` is forced in session, so `get_current_website()` now return the correct `website_id` -> 1 The issue: in order to handle the `fw` URL parameter (step 6.), we need to check the rights to ensure we can allow the website switch. To check rights, user need to be authenticated (step 5.), which is done after generating the routing map (2. & 3. & 4.). The routing map is generated based on the current website (step 1.) Step 6 depends of steps 5 which depends of steps 2/3/4 which depend of step 1, but step 1 should depend of step 6, which is an impossible cycle. closes odoo/odoo#70278 X-original-commit: 878e28f9 Signed-off-by:
Jérémy Kersten (jke) <jke@openerp.com> Signed-off-by:
Romain Derie <rdeodoo@users.noreply.github.com>
-
Laurent Smet authored
- Create an invoice with an empty fiscal position - Create a line with a product having 100.0 as sale price and 21.0% price-included tax => price_unit equals 99.99 This is because 100 / 1.21 ~= 82.64 but 82.64 * 1.21 ~= 99.99 != 100.0. The bug only appears when managing a fiscal position because the code is trying to adapt the product price_unit to the newly computed taxes. closes odoo/odoo#69836 X-original-commit: e2247a86 Signed-off-by:
oco-odoo <oco-odoo@users.noreply.github.com> Signed-off-by:
Laurent Smet <smetl@users.noreply.github.com>
-
- Apr 30, 2021
-
-
Adrien Widart authored
When changing the product price precision, this can lead to incorrect stock valuations. To reproduce the error: (Enable debug mode) 1. Go to Settings > Technical > Database Strucutre > Decimal Accuracy 2. Edit Product Price: - Digits: 4 3. Create a Product Category PC: - Costing Method: FIFO 4. Create a Product P: - Product Type: Storable Product - Product Category: PC 5. Create a RfQ with product P: - Quantity: 1000 - Unit Price: 0.035 6. Confirm Order, Receive Products, Validate 7. Click on Valuation Error: The total value is equal to $40 instead of $35. The calculation was done after rounding the unit price: $0.035 becomes $0.04, then 1000*0.04=$40. When confirming the RfQ, a stock move is created. To do so, the method `_get_stock_move_price_unit` is called. When validating the delivery, it recomputes the unit price thanks to method `_get_price_unit`. In both situation, and if the line has taxes, the method `compute_all` is called like this: ```python price_unit = line.taxes_id.with_context(round=False).compute_all(price_unit, currency=line.order_id.currency_id, quantity=1.0)['total_void'] ``` But here is the problem. In this method, total amount is computed with this line: ```python base = currency.round(price_unit * quantity) ``` However, `quantity` is equal to 1 and the multiplication is rounded using the currency precision. As a result, `base` is equal to $0.04. Then, all computations will use this value and will be incorrect. This fix applies the real quantity so `base` will have the correct value: ``` base = currency.round(price_unit * quantity) = currency.round(0.035 * 1000) = 35 ``` OPW-2472192 closes odoo/odoo#70080 X-original-commit: a57dc071 Signed-off-by:
William Henrotin <Whenrow@users.noreply.github.com>
-
- Apr 28, 2021
-
-
Arthur Detroux (ard) authored
Added a check to make sure that we do not set a timeout to update the option panel when said option panel is already open. This could sometimes occur which could cause all openned select to close and could fail some tests if said events happened in the middle of selecting an option. task-2502297 closes odoo/odoo#69119 Signed-off-by:
Quentin Smetz (qsm) <qsm@odoo.com>
-
- Apr 29, 2021
-
-
Arthur Detroux (ard) authored
Previously : Once a user enabled the cookie bar, it prevented him from dropping snippets in the main area of the page because the focus was on the cookie bar. Dropping snippets there has a confusing behavior and might make the user think the editor is broken. Reason : The cookie bar has an oe_structure class and takes over the body if it's not hidden or dismissed. The oe_structure allows to drop snippets. Fix : Hiding the cookie bar when user enters edit mode to avoid dropping snippets in it by mistake. task-2477430 closes odoo/odoo#68938 Signed-off-by:
Quentin Smetz (qsm) <qsm@odoo.com>
-
- Apr 28, 2021
-
-
root authored
Before this update if you would update the module the default livechat details would be reset. By wrapping it in a no-update they're not updated with a module update. closes odoo/odoo#70006 X-original-commit: 45c330c1 Signed-off-by:
Sébastien Theys (seb) <seb@odoo.com>
-
- May 03, 2021
-
-
Thibault Delavallée authored
Currently ``name`` field that holds the action type is recomputed each time duplicated leads are updated. However duplicated leads are often updated notably each time customer action (create / link / do nothing) and chosen customer are updated. As ``name`` compute method is mainly present to replace a default value its compute method is updated so that it nows compute only when not having a value. Once having a value user choice is kept. Task ID-2452777 COM PR odoo/odoo#68618 Signed-off-by:
Thibault Delavallee (tde) <tde@openerp.com>
-
Nasreddin (bon) authored
Issue - Create a partner with email 'aaa@test.com' - In CRM settings, activate 'Leads' feature - Go to CRM -> Leads and create a Lead: - Set email field to 'aaa@test.com' - Click on 'Convert to opportunity' Neither the action or partner_id field is set to the right value. Cause Due to missing 'lead_id' field in template, the partner_id field is not recomputed since action is not recomputed. Solution Add 'lead_id' field as invisible in form. opw-2439722 Task ID-2452777 COM PR odoo/odoo#68618
-
- May 02, 2021
-
-
Swapnesh Shah authored
Without this commit, User was not allowed to create Unbuild Order for the product without BoMs from Unbuild Orders menu. But User was able to create Unbuild Order using 'Unbuild Order' button on MO. With this commit, We are allowing user to select Products without BoMs to make this behavior consistent so user can create Unbuild Order from Unbuild Orders menu. closes odoo/odoo#70217 Signed-off-by:
Arnold Moyaux <amoyaux@users.noreply.github.com>
-
- Apr 29, 2021
-
-
Djamel (otd) authored
Steps to follow to reproduce the bug: - Install Inventory and Purchase - In the inventory settings, Enable the "Landed Costs" option - Go to Purchase > create a Service type product - In the Purchase tab > Enable "is landed cost" option and choose "by quantity" in the default split method - Go to Orders > Requests for quotation > Create a new RFQ > add Any product and confirm the order - Validate receipt of the product - Create a bill > add the Service you created at the beginning - Create Landed Costs Problem: we do not use the split method landed cost of the product, we automatically set it to "equal" opw-2465753 closes odoo/odoo#69973 Signed-off-by:
William Henrotin <Whenrow@users.noreply.github.com>
-
- Apr 30, 2021
-
-
Florent de Labarre authored
add the name of argument, if not precision_digits is used. closes odoo/odoo#70161 Signed-off-by:
Arnold Moyaux <amoyaux@users.noreply.github.com>
-
- Apr 28, 2021
-
-
Djamel (otd) authored
Steps to reproduce the bug : - Create a French company - Go to accounting settings > in “Fiscal Localization” install French accounting - Install “l10n_ch_qriban” - Go to contacts > Configuration > Bank accounts - Create a new bank account > add a French company newly created in the “Account Holder” field Problem: The specific fields to a Swiss company appear. Solution : Check if the country of the company encoded in the “Account Holder” field is Switzerland. opw-2504699 closes odoo/odoo#69985 X-original-commit: 326dc3f7 Signed-off-by:
Josse Colpaert <jco@openerp.com> Signed-off-by:
Djamel Touati <DjamelTouati@users.noreply.github.com>
-
- May 02, 2021
-
-
Odoo Translation Bot authored
-
- Apr 30, 2021
-
-
Ivan Yelizariev authored
To reproduce: * install python package ``pdfminer.six`` * install module attachment_indexation * upload special attachment BEFORE: Error in client: > TypeError: relatedTemporaryAttachments is not iterable Error in logs: > ValueError: A string literal cannot contain NUL (0x00) characters. AFTER: No errors --- opw-2506038 closes odoo/odoo#70186 Signed-off-by:
Nicolas Lempereur (nle) <nle@odoo.com>
-
Pratima Gupta authored
Before this commit, if any workorder is stared to produce, qty producing was 0. After this commit, if product tracking is none then system will suggest the remaining qty of workorder to produce when user is start it. TaskId - 2480775 closes odoo/odoo#70153 Related: odoo/enterprise#18063 Signed-off-by:
William Henrotin <Whenrow@users.noreply.github.com>
-
Nicolas Lempereur authored
Make translation work for "Visitor" that was appearing in livechat session to the visitor. opw-2504461 closes odoo/odoo#70164 X-original-commit: 3b199007 Signed-off-by:
Nicolas Lempereur (nle) <nle@odoo.com>
-
Adrien Widart authored
When selling a tracked product that comes from a specific place in the warehouse, the module will ignore this information and set the parent warehouse as source location. To reproduce the error: (Use demo data) 1. In Settings, enable "Multi-Warehouses" 2. Create a product P: - Product Type: Storable Product - Available in Pos: True - Tracking: By Unique Serial Number 3. Update its quantity: - Location: WH/Stock/Shelf 1 - Serial Number: USN01 - Qty: 1 4. Start a POS session 5. Sell P - Enter the same serial number 6. Go back to quantity update page for product P Error: The quantity for "WH/Stock/Shelf 1, USN01" is still 1, it should be 0. Moreover, a new line appeared: "WH/Stock, USN01, -1" which is incorrect. The POS module considered that the product sold came from WH/Stock instead of WH/Stock/Shelf 1. OPW-2473002 closes odoo/odoo#70169 X-original-commit: dd62f84e Signed-off-by:
pimodoo <pimodoo@users.noreply.github.com>
-
tsb-odoo authored
425000 current assets rather than current liabilities. closes odoo/odoo#70163 Related: odoo/enterprise#18065 Signed-off-by:
oco-odoo <oco-odoo@users.noreply.github.com>
-
Jacky (trj) authored
closes odoo/odoo#70154 Signed-off-by:
pimodoo <pimodoo@users.noreply.github.com>
-
Richard deMeester authored
Use Cheque instead of Check (American spelling) closes odoo/odoo#69684 Related: odoo/enterprise#17876 Signed-off-by:
Martin Trigaux (mat) <mat@odoo.com>
-
Rémy Baranx (bar) authored
When retreiving the list of badge owners in `_get_owners_info()`, we should apply `res.users` ir rules to be sure to respect multi-company rules. upg-7081 closes odoo/odoo#69840 X-original-commit: 1190fc32 Signed-off-by:
Christophe Simonis <chs@odoo.com>
-