- May 08, 2023
-
-
Tom De Caluwé authored
As of this commit, only confirmed leaves will be considered when computing the current leave or absence of an employee. Additionally, a bug in the is_absent search implementation was fixed: before this commit, the same results were returned for absent and non-absent searches. opw-2877328 closes odoo/odoo#118475 X-original-commit: 37f2fc5c Signed-off-by:
Kevin Baptiste <kba@odoo.com> Signed-off-by:
De Caluwé Tom (tdc) <tdc@odoo.com>
-
Renilkumar Kajavadra authored
If applied, this commit will handle the KeyError: res_id when the user tries to import the translation of .csv file in settings -> translations, and if .csv file doesn't have the res_id column. I handled the traceback by changing the logger level to warning. sentry - 4049419481 closes odoo/odoo#120757 X-original-commit: dd0ec40c Signed-off-by:
Renilkumar Kajavadra (reka) <reka@odoo.com>
-
Harsh Modi authored
Handled error for if e-waybill is already generated and we send request for e-way bill generation it will give error - [4026] Duplicate e-waybill for the given document. Fix - It will fetch the ewaybill details and shows the ewaybill has been already generated task-3262244 closes odoo/odoo#117609 Signed-off-by:
Xavier Dollé (xdo) <xdo@odoo.com>
-
Valentin Chevalier authored
When using a different invoicing address for a partner on a sale order, an error is thrown up. This is caused by checking the wrong partner in the access token. opw-3298228 closes odoo/odoo#120751 Signed-off-by:
Antoine Vandevenne (anv) <anv@odoo.com>
-
LeDungViindoo authored
Steps to reproduce: Step 1: Create new MO Step 2: In page by-products click three dots to show column cost_share in tree by-products Step 3: Create new Byproduct and input cost share >100% or <0% or input two byproducts where their cost share adds up to more than 100% Expected result: Validation error: total byproduct cost_share cannot exceed 100 or Validation error: cost_share values must be positive Actual result: Values saves without issue Issue is due to `move_byproduct_ids` being removed in the mrp_production overrides of `write()` or `create()` and having the `_compute_move_byproduct_ids` populate its values. This removal is causing the constrains to not be enforced, therefore we set the constrains field to `move_finished_ids` since changing of this value will ensure that the values are correctly checked. Note: There will be a decrease in performance since this means the constrains will be called whenever the MO's product to produce is changed, but hopefully it will be minimal since there is no simple fix for this issue. closes odoo/odoo#119009 Signed-off-by:
Tiffany Chang <tic@odoo.com>
-
- Feb 10, 2023
-
-
bve-odoo authored
closes odoo/odoo#95123 Signed-off-by:
Rémy Voet <ryv@odoo.com>
-
- May 07, 2023
-
-
Odoo Translation Bot authored
-
- May 05, 2023
-
-
Andrew Gavgavian authored
Currently `report.stock.quantity` has a field defined in it called `move_ids`: `move_ids = fields.One2many('stock.move',readonly=True)` This virtual field has no corresponding inverse field so when performing a search_read on the model, it fails in fields.py when trying to do: `inverse_field = comodel._fields[inverse]` In addition, this field is apparently not used anywhere in the source code and not queried in the SQL View. This means the model can never be search_read by default. Since this field is never used, it isn't stored, and the model is `_auto = False`, removing it won't break any database. closes odoo/odoo#120416 X-original-commit: e3b1a887 Signed-off-by:
William Henrotin (whe) <whe@odoo.com> Signed-off-by:
Andrew Gavgavian (andg) <andg@odoo.com>
-
Andrea Grazioso (agr-odoo) authored
Duplicate the default Account Payable (211000) Set the default Account Payable to Deprecated Create a Vendor Bill with a line Save Error will raise The account Account Payable (211000) is deprecated. opw-3199157 opw-3229350 closes odoo/odoo#120710 X-original-commit: 4305ea5a Signed-off-by:
Brice Bartoletti (bib) <bib@odoo.com>
-
Jinjiu Liu authored
Reproduction: 1. Open LibreOffice Calc (linux), create an empty xls file 2. In LibreOffice, input random things as a 4 (rows) by 2 (columns) table 3. Create a new note in Odoo, copy the table to it 4. Hold Shift and click the place right before the first cell (out of the table but still in the editable area) 5. Delete the selected table, a trace back popped up Fix: add an extra condition to make sure parentFragmentTr is not null before unpacking it Note: as you probably noticed, the cleared table does not retain the original dimensions, e.g. it turns to a 2-row, 4-column table. This is a deeper issue of how we restore the table, and another task will be created for this. This PR is a first-aid patch to solve the error message as it confuses the client a lot opw-3255144 closes odoo/odoo#119674 Signed-off-by:
David Monjoie (dmo) <dmo@odoo.com>
-
Khushi Vakil authored
In this commit the resupply subcontractor source location is changed from virtual production to WH/stock Task id: 3263796 closes odoo/odoo#118316 Signed-off-by:
Tiffany Chang <tic@odoo.com>
-
yhu-odoo authored
Previous commit 1b840d06 tried to fix the issue action_generate_serial may try to generate a existing lot. But it made the lot number completely product specific. This change is too big for stable, we revert the change in this commit. Also to fix the issue, when action_generate_serial tries to generate a lot, we always try the result from ir.sequence frist, only when the lot already exists, we then try create one based on the product's lastest lot number. Task-3187003 closes odoo/odoo#120581 Signed-off-by:
Arnold Moyaux (arm) <arm@odoo.com>
-
Roy Le authored
closes odoo/odoo#120583 X-original-commit: 8aefb386 Signed-off-by:
Martin Trigaux (mat) <mat@odoo.com>
-
flvr-odoo authored
Previously, a user could link his own expenses to a expense sheet of someone else. This would not be allowed upon creation but was allowed when updating the values of the expense. This commit add a simple check at the beginning of the write() closes odoo/odoo#120592 X-original-commit: 7bcd64c5 Signed-off-by:
Vranckx Florian (flvr) <flvr@odoo.com>
-
Kamlesh Pathekar authored
Steps: - In eCommerce activate Filter by prices and Attributes & variants filters - select one attribute with >1 item (e.g. aluminum legs) - put a price limit. - the attribute filter is removed. The commit will prevent the removal of the 'variants attribute filter' when an attempt is made to apply a price range. task-3101343 closes odoo/odoo#111478 Signed-off-by:
Victor Feyens (vfe) <vfe@odoo.com>
-
- May 04, 2023
-
-
Ivan Yelizariev authored
Portal shows all Sale Orders available for current user. For example, salesman can see his sales. If such a user can download digital files via product form in backend, it makes sense to let user download them via SO page on portal. However, it wasn't the case because /my/download requires product be purchased by current user [1]. Fix it by checking read access first. STEPS * in backend create SO with digital product (customer must be different from current user) * create invoice and register a payment * navigate to portal (without using customer's token), * open SO, click download on digital product [1]: https://github.com/odoo/odoo/blob/1a24477fab4dd323cf94c010321d8942fb2c1a01/addons/website_sale_digital/models/account_invoice.py#L14-L22 opw-3144600 closes odoo/odoo#120492 X-original-commit: 51fd5d3c Signed-off-by:
Morgane Demesmaeker <edm@odoo.com>
-
ravb-odoo authored
Description: This reverts commit f3c306260fbd0766c2cfe98bd0ac826b7662acbc. Previous Change: In project module, when sub-tasks is created then recurrence boolean field should not be visible in that task. It only visible in parent tasks. Changes Made: This commit reverts the changes made in commit f3c306260fbd0766c2cfe98bd0ac826b7662acbc. to return the code to its previous state, where the recurrence field is visible in sub-tasks. task-3252521 closes odoo/odoo#120392 Signed-off-by:
Xavier Bol (xbo) <xbo@odoo.com>
-
Victor Feyens authored
When the company is modified on a SO, the taxes will be recomputed iff the fiscal position has changed (which will only happen if the fiscal positions were configured/set on the SO). After this commit, the behavior is harmonized with the purchase flows, and the taxes will always be recomputed on company change, even if the fiscal position was not modified by the company change. opw-3234905 closes odoo/odoo#120298 Signed-off-by:
Victor Feyens (vfe) <vfe@odoo.com>
-
Patrick Hoste authored
Before this commit, it was possible for one to post multiple reviews when all the already posted reviews had the 'Employee Only' state. A traceback was also thrown when trying to update an 'Employee Only' comment. It was also possible to edit a log note. This commit fixes all these issues. Task-2810085 closes odoo/odoo#107958 Signed-off-by:
Stéphane Debauche (std) <std@odoo.com>
-
Guillaume (guva) authored
Override the button_draft method, in order to reset the expense and expense_sheet state when resetting a move to draft. Steps: - Create an expense - Submit and approve the report - Post journal entry and register payment - Reset the JE to draft -> The expense and expense sheet states remain the same as before resetting to draft. They should be respectively 'approved' and 'post' opw-3279364 closes odoo/odoo#120514 X-original-commit: d1d12574 Signed-off-by:
John Laterre (jol) <jol@odoo.com> Signed-off-by:
Guillaume Vanleynseele (guva) <guva@odoo.com>
-
Guillaume (gdi) authored
In the website menu editor and in the studio menu editor, the user can drag & drop the elements that constitute the menu of his website/app. Users can also put a menu into another menu to create a sub-menu. For the website, we allow two levels of menu but not more. For studio we allow 5 levels of menu. When the user starts to drag an item, dropzones can be drawn on the prohibited level (3 in website, 6 in studio) while he can't create this level of menu. This commit adds a css rule to hide those forbidden dropzones. task-3251032 closes odoo/odoo#120470 X-original-commit: dac80feb Signed-off-by:
loco-odoo <loco@odoo.com>
-
- May 03, 2023
-
-
MerlinGuillaume authored
The pdf viewer sometimes displays the sidebar when we open the pdf Solution: Add `pagemode=none` to the url when opening a pdf in attachments opw-3193516 closes odoo/odoo#120347 X-original-commit: da9b89ad Signed-off-by:
Alexandre Kühn (aku) <aku@odoo.com> Signed-off-by:
Guillaume Merlin (megu) <megu@odoo.com>
-
Mahamadasif Ansari authored
"ValueError: External ID not found in the system: payment.payment_acquirer_ stripe" is generated because the user deleted the Stripe payment acquirer record and its corresponding model tried to access the record of it. Steps to produce the error: 1. Install e-commerce 2. Install install 'Stripe Payment Acquirer ' module 2. delete the Stripe payment from payment acquirer 3. Go to the e-commerce dashoboard 4. Click Set Payment 5. select Credit card (via Stripe) 6. enter any secret and Publishable key 7. click apply This commit solves the above issue by preventing the deletion of the payment acquirer if it has a external reference. sentry-4041178833 closes odoo/odoo#120391 X-original-commit: https://github.com/odoo/odoo/commit/c54a398513666508161796a498e8f8c3c7401b9f Signed-off-by:
Antoine Vandevenne (anv) <anv@odoo.com>
-
Naman Shah authored
Purpose: The purpose of this commit is to change the current behavior of days to close graph generating from customizable desk demo data. Specification: For the opportunities, the day_close field is a compute field depending upon the date_closed field. For the customizable desk demo data, the date_closed field pre-existed, due to that customizable desk opportunity was not won or lost but the graph report was generated. so, this commit fixes the current behavior for customizable desk opportunity. Task-3278039 closes odoo/odoo#120384 X-original-commit: e368725b Signed-off-by:
Thibault Delavallee (tde) <tde@openerp.com>
-
Julien Van Roy authored
The edi attachment (for every format in `account_edi_ubl_cii`) contains a tag indicating whether the invoice is fully/partially paid. Before this fix, when this tag was filled, a down payment section was created on the invoice. For a fully paid invoice, the resulting amount was then 0, so the invoice was marked as "Paid". This was wrong. The correct amounts need to be kept on the invoices. This fix no longer creates a down payment, instead a message is logged in the chatter. task-3264843 opw-3248200 closes odoo/odoo#120340 X-original-commit: 47905d21 Signed-off-by:
Laurent Smet <las@odoo.com> Signed-off-by:
Julien Van Roy <juvr@odoo.com>
-
Victor Piryns (pivi) authored
Current behaviour: If a project has more than 80 tasks, there is pagination activated in the project portal view. But when clicking on the second page, we are requested to login, even when we come from a shared link. Expected behaviour: You should be able to scroll through the pages of tasks related to the shared project without being requested to login. Steps to reproduce: - Install Project - Create 100+ tasks in 1 project - Copy the share link of that project. - Log out, open the shared link. - Go to page 2 of the tasks -> login request. Reason for the problem: Missing `access_token` in the pager urls to browse through the tasks. Fix: Add the `access_token` as url argument in the links when creating the pager for the portal view. Backport PR #119941 Affected versions: - 15.0 - saas-15.2 opw-3220659 closes odoo/odoo#120382 Signed-off-by:
Xavier Bol (xbo) <xbo@odoo.com>
-
Benjamin Vray authored
Before this commit, on a blog page with the "regular cover" and "read next article" options enabled, the image in the "read next article" block would shrink when the text was too long. Steps to reproduce the bug: - Go to a blog page (e.g. "Sierra Tarahumara"). - Enable the "regular cover" and "read next article" options. - Enter edit mode. - Scroll down the page. - Enter a lot of text as the title of the "read next article" block. - Bug: As the text increases, the width of the image decreases. opw-3267842 closes odoo/odoo#119945 X-original-commit: 06a6e78b Signed-off-by:
Quentin Smetz (qsm) <qsm@odoo.com>
-
xO-Tx authored
On small viewports, and with the "Same as desktop" option enabled on header, The "autohide menu" adaptation is disabled and overflowing menu items are visible. The goal of this commit is to fix this behaviour by keeping the "autohide" feature enabled on expanded navbar. task-3261909 closes odoo/odoo#119553 Signed-off-by:
loco-odoo <loco@odoo.com>
-
- May 02, 2023
-
-
Stanislas Sobieski authored
Before this commit: Files that should be ignored in the manifest but aren't (js library for example) it can happen that files have huge lines, the regex to substract the comments will overuse memory. For example, a file of 13M with a line of more that 8M characters, the memory consumptions peak at 1.7G The results might be different, but it's an acceptable compromise closes odoo/odoo#120139 X-original-commit: 0e56e4a7 Signed-off-by:
Thibault Francois <tfr@odoo.com>
-
Adrien Widart (awt) authored
Deleting a kit BoM will lead to an error if the kit is in the middle of a sale process To reproduce the issue: 1. In Settings, enable UoM 2. Create a product category PC: - AVCO - Auto 3. Create three storable products P_kit, P_01, P_02 - UoM of P_01: `m` - UoM of P_02: `kg` 4. Create a BoM: - Product: P_kit - Type: kit - Components: - 1 x P_01 - 1 x P_02 5. Create and confirm a SO with 1 x P_kit 6. Force the delivery 7. Delete the BoM 8. Create and confirm the SO's invoice Error: a traceback appears "ValueError: Expected singleton: uom.uom..." Because of the configuration, when posting the invoice, we compute the COGS. During that process, we need the average price of P_kit https://github.com/odoo/odoo/blob/640907ec1852c4e477957c865549a87d3ae840dd/addons/sale_stock/models/account_move.py#L133 We give to that method the components' SMs. In `_compute_average_price`, since we don't find a BoM, we will bypass the mrp override https://github.com/odoo/odoo/blob/419e42132d9526e9d98c2126158d4f88716d17c4/addons/mrp_account/models/product.py#L48-L50 As a result, it leads to https://github.com/odoo/odoo/blob/640907ec1852c4e477957c865549a87d3ae840dd/addons/stock_account/models/product.py#L680-L684 Where we will have the candidates of all components (i.e., several different products). But that method is not designed for such a situation. This is the reason why, when calling `_consume_all`, it will fail: https://github.com/odoo/odoo/blob/858d24a611c4c8af0dcae82a6eb4077e391398ed/addons/stock_account/models/stock_valuation_layer.py#L85 We try to get the rounding of the product, but there are actually two of them (the two components) -> singleton error OPW-3218141 closes odoo/odoo#120009 X-original-commit: a816c632 Signed-off-by:
William Henrotin (whe) <whe@odoo.com> Signed-off-by:
Adrien Widart <awt@odoo.com>
-
Yolann Sabaux authored
Steps to reproduce: - create an expense product, re-invoice: "at cost" - create a sale order with the product and set an analytic account - create a purchase order with the expense product and the same analytic account - create the bill -> a new line on the SO is created with the same "Quantity Delivered" as the "Quantity Invoiced" for the purchase order - for the bill, create a Credit Note of x unit -> the purchase order has the Quantity Invoiced diminished of x Issue: - the Sale Order has not taken into account the new quantity after refund - Since the line is an "analytic" one, the quantity delivered cannot be changed even if we wreate a credit note for the invoice Solution: During the processus of creation of new analytic lines, instead of creating new so lines we adapt the analytic line closes odoo/odoo#115907 Signed-off-by:
William André (wan) <wan@odoo.com>
-
Claire Bretton (clbr) authored
QR codes had different translations than the official ones. That prevented the QR-bill to be submitted through Snailmail. Reference of translations (p.58): https://www.six-group.com/dam/download/banking-services/standardization/qr-bill/ig-qr-bill-v2.2-en.pdf closes odoo/odoo#120026 Opw: 3223714 Signed-off-by:
William André (wan) <wan@odoo.com>
-
pedrambiria authored
Before this commit: it was possible to create an event for another user as its organizer. But even if that user has a synchronized Google calendar, it will be sent by the current user token, and it causes several issues. The solution is to use the event's organizer token if it exists. opw-3076595 closes odoo/odoo#113910 X-original-commit: 83f0f180 Signed-off-by:
Pedram Bi Ria (pebr) <pebr@odoo.com> Signed-off-by:
Arnaud Joset <arj@odoo.com>
-
remi-filament authored
closes odoo/odoo#120225 X-original-commit: 44458824 Signed-off-by:
Martin Trigaux (mat) <mat@odoo.com>
-
xO-Tx authored
Steps to reproduce: - Go to a website page > Add a 'Form' block > Add a new 'Selection' field. - Go to the page (in 'edit_translations' mode) > The selection field options are not translatable. The goal of this commit is to make the select options translatable by adding an intermediate `.o_translation_select` element. This element will handle option's text translations from the linked `<select/>`. The final values are copied to the original element right before save. opw-3233360 closes odoo/odoo#120028 X-original-commit: 57d7e75b Signed-off-by:
Quentin Smetz (qsm) <qsm@odoo.com>
-
Marc Durepos authored
Fixes a situation where users who are part of the Attendances Officer (or Manager) group but without access to private employee data would see the following error when trying to book time off. `ValueError: Invalid field 'last_check_in' on model 'hr.employee.public'` Other instances of the same ValueError were observed by managers trying to approve employee leave and employee expenses. As per hr/models/hr_employee.py:22-26 fields not available on hr.employee.public should have groups='hr.group_hr_user' and this was not the case in hr_attendance. closes odoo/odoo#119109 Signed-off-by:
Kevin Baptiste <kba@odoo.com>
-
Nasreddin Boulif (bon) authored
Steps to reproduce: - Install `mass_mailing` module - Create a new mailing - Set a subject and a mailing list - Select for the mail body the template "Thank you for joining us!' - Add a dynamic placeholder (e.g. ${object.email}) - Click on "Send" - Open the email received and click on "View Online" Issue: The dynamic placeholder is not replaced. Cause: The controller does not re-render the body based on the res_id. Solution: Use `mailing` variable (that inherit from `mail.render.mixin`) to re-render the body based on the res_id if available (same as when sending the mail). https://github.com/odoo/odoo/blob/d3a6a20788c78ddaaff0919ea627e7b10c7ab81c/addons/mail/wizard/mail_compose_message.py#L476 opw-3133975 closes odoo/odoo#118996 X-original-commit: 6a0850b5 Signed-off-by:
Nasreddin Boulif (bon) <bon@odoo.com> Signed-off-by:
Thibault Delavallee (tde) <tde@openerp.com>
-
- Apr 30, 2023
-
-
Odoo Translation Bot authored
-
- Apr 28, 2023
-
-
roen-odoo authored
Current behavior: When settling a pos order containing 2 different product, the qty of the 2 products would be modified even if you only deliver one of them through the pos order. Steps to reproduce: - Create 2 product A and B - Create a sale order with 1 product A and 1 product B - Open a PoS session, and settle the order you just created - Deliver only 1 product A - Close the PoS session - Go the the sale order delivery, you will see that the qty are not correct opw-3227053 closes odoo/odoo#117402 Signed-off-by:
Joseph Caburnay (jcb) <jcb@odoo.com>
-
HuylenbroeckFlorent authored
When installing l10n_eu_oss without a localization installed, a line fails in the get_oss_tags function of res_company, thus halting the installation and returning an error. This fail is due to the function relying on the company in self having its 'chart_template_id' set, when this is not always the case. Adding a failsafe to that function allows the installation of the module to proceed in the event that the chart_template_id is not set. opw-3291118 opw-3289913 closes odoo/odoo#120104 X-original-commit: 4b140806 Signed-off-by:
Brice Bartoletti (bib) <bib@odoo.com> Signed-off-by:
Huylenbroeck Florent (flhu) <flhu@odoo.com>
-