- Apr 25, 2023
-
-
Nasreddin Boulif (bon) authored
Steps to reproduce: - Install `E-learning` module - Create a user X with only "Officer" as rights for `E-learning` - Login with user X - Go to `E-learning` and open any course - Ensure that the user X is not the responsible and that the course enroll policy is set to "On invitation" - Invite any user not already a member Issue: No user was invited (not added as member) and no warning message raised. Cause: Due to the ir.rule "Channel: officer: create/write own only", the `Officer` user can only edit (and therefore invite members) on courses where he is responsible. Solution: Add a context key to the 'Invite' buttons in the `Form` and `Kanban` views of `slide.channel` model so that we can raise an error only in these flows if the user does not have the rights to invite members. opw-3133733 closes odoo/odoo#111642 Signed-off-by:
Warnon Aurélien (awa) <awa@odoo.com>
-
- Apr 24, 2023
-
-
divy-odoo authored
There was an issue before this commit where some flags (basically all the ones which are not tribands) would appear "broken". This is the case for the China one where the symbol on the flag would be squashed. Using `object-fit` css property will keep the original flag ratio. task-2929438 closes odoo/odoo#118903 Signed-off-by:
Romain Derie (rde) <rde@odoo.com>
-
Maruan Aguerdouh (magm) authored
Steps to reproduce: - Install crm - Go to settings and activate leads in crm. - Go to leads list and select any lead, now mark it as lost. Issue: It will ask for lost reason. But if we do it from the Leads form view, we don't get to set any reason. I discussed with the PO and we don't want to add the lost reason in the leads. Solution: Modified action of lost so it takes leads into account. opw-3119748 closes odoo/odoo#111226 Signed-off-by:
Maruan Aguerdouh Mohtar (magm) <magm@odoo.com>
-
Florent de Labarre authored
Before this PR with a malformated pdf with factur-X, it raise. It should not raise. closes odoo/odoo#118496 Signed-off-by:
William André (wan) <wan@odoo.com>
-
- Apr 23, 2023
-
-
Odoo Translation Bot authored
-
- Apr 21, 2023
-
-
Florent de Labarre authored
Like here https://github.com/odoo/odoo/blob/14.0/addons/payment/views/payment_templates.xml#L69 , if the acquirer have display_as, it is more logical to shpw everywhere this field. closes odoo/odoo#119295 Signed-off-by:
Valentin Chevalier <vcr@odoo.com>
-
Guillaume (guva) authored
Some tags were not correct on taxes IVA 0%. closes odoo/odoo#118460 Signed-off-by:
Olivier Colson (oco) <oco@odoo.com>
-
Demesmaeker authored
For now, the sale margin is incorrectly computed in group by in the sales order. This was done in the sales order lines in abdb85fb opw-3180556 closes odoo/odoo#119333 Signed-off-by:
Morgane Demesmaeker <edm@odoo.com>
-
- Apr 20, 2023
-
-
Arnold Moyaux authored
Use case: Create an import file for a picking with stock.move.line directly in it and add some reserved quantity on the stock.move.line. The import of stock.move.line is not possible directly via a stock.move.line menu but it still possible on a picking or mrp.production import. However the create does not expect that and never reserve the quants. So it result with quant <-> sml inconcistencies in the data and the error can not reserve more than you have in stock. opw-3277938 closes odoo/odoo#119201 Signed-off-by:
William Henrotin (whe) <whe@odoo.com>
-
Alvaro Fuentes authored
When we compare majorless scripts we must ignore the Odoo version. Otherwise a module upgrade without major Odoo upgrade would fail to run local scripts majorless scripts. That's what happens for example when users click the upgrade button of a module. Example: upgrade from `11.0.1.0` to `11.0.2.0`, with a local `2.0` folder for upgrades. ``` 11.0.1.0 < 11.0.2.0 < 11.0.2.0 -> False (check before this patch) 1.0 < 2.0 <= 2.0 -> True (check with this patch) ``` While still: upgrade from `11.0.2.0` to `12.0.2.0` ``` 11.0.2.0 < 12.0.2.0 < 12.0.2.0 -> False (before this patch) 2.0 < 2.0 <= 2.0 -> False (with this patch) ``` closes odoo/odoo#119148 X-original-commit: 84ab74c62a19d08de8b6c7c4e3f3300d7e79bcf9 Signed-off-by:
Christophe Simonis <chs@odoo.com>
-
Soukéina Bojabza authored
Before this commit, when hovering the shopping cart in the "Boxed" and "Centered Logo" header templates, the cart popover was not appearing. This happened because the `websiteSaleCartLink` public widget was never started with these templates and so, hovering the cart had no effect. This is due to this widget selector which targeted a cart link located inside an element with id `#top_menu`, which is not the case in these templates where the cart link is located outside of it. This commit fixes this widget selector, in order for the cart link to be reachable in all header templates. opw-3267114 closes odoo/odoo#118822 Signed-off-by:
Quentin Smetz (qsm) <qsm@odoo.com>
-
Daniel Kosky (dako) authored
The current view replaces the existing groups attribute of the inventory page in the product template form view with two specified groups (with only one of these groups being newly introduced in stock). This commit changes the product view to utilise an xpath that adds the single new group (stock.group_stock_user), instead of replacing the content of the attributes. closes odoo/odoo#119200 Related: odoo/enterprise#40074 Signed-off-by:
Brice Bartoletti (bib) <bib@odoo.com>
-
Julien Van Roy authored
If a partner has no VAT number (for instance: a public administration), the xml tag `PartyTaxScheme` should not appear for UBL Bis 3. opw-3263542 closes odoo/odoo#119094 Signed-off-by:
Laurent Smet <las@odoo.com>
-
- Apr 19, 2023
-
-
Benjamin Vray authored
When the navbar hamburger type option is set to 'off-canvas', the 'call to action' button of the 'boxed' header is located "next to" the navbar instead of "in" the navbar as it should be. This commit puts the 'call to action' button in the navbar when the 'off-canvas' menu is opened. task-3063878 closes odoo/odoo#105768 Signed-off-by:
Bojabza Soukéina (sobo) <sobo@odoo.com>
-
Nshimiyimana Séna authored
- install Accounting - in the settings, set `Rounding Method` to `Round Globally` and activate `Cash Rounding` - create a cash rounding with the `half-up` method, a `Add a rounding line` strategy and a rounding precision of `0.05` - create a 7.7% sales tax - create an invoice and in the `Other Info` tab, set `Cash Rounding Method` to the rounding you just created - add an invoice line with a price of 295.00 and the 7.7% tax You should see that the generated rounding line is not correct. The total is 317.72; so we expect the rounding line to have a price of `-0.02`, to respect the cash rounding. The cash rounding computation is initiated here: https://github.com/odoo/odoo/blob/1dcd071b27779e7d6d8f536c7dce7002d27212ba/addons/account/models/account_move.py#L944 However, `total_amount_currency` is not rounded. This introduces floating imprecision that end up messing with the calculation here: https://github.com/odoo/odoo/blob/563752358d233d4fc9cf1d7e7abd0b1656dc82c1/addons/account/models/account_cash_rounding.py#L53 If we take the example given in the reproduction steps, the values in that line will be as follows: - `amout = -317.71500000000003` - `self.round(amount) = -317.70000000000005` - `difference = self.round(amount) - amount = 0.014999999999986358` `difference` is then rounded to 0.01 which not correct. This issue does not happen starting v16.0, as `total_amount_currency` is already rounded when `_compute_cash_rounding` is called. opw-3133291 closes odoo/odoo#113500 Signed-off-by:
Laurent Smet <las@odoo.com>
-
Laurent Smet authored
On the bank reco widget, price_unit is following the sign of the statement line. On the manual reco widget, the price_unit is following the accounting balance. This leads to unconsistent tags in both widgets. The issue has been fixed on the manual reco widget in: https://github.com/odoo/odoo/commit/a70f804d7da68d5cc7cdd79b75d73359c41b9367 However, this breaks the bank reco widget because the tags are now reversed. The crappy solution is to put a context key to distinguish both widgets. closes odoo/odoo#118891 Related: odoo/enterprise#39930 Signed-off-by:
Olivier Colson (oco) <oco@odoo.com>
-
Mylyna Hy authored
Problem: When the user installs Inventory and uninstalls it, the Inventory Valuation journal still exists in the database. The user is unable to re-install Inventory if the database not in English. Example: Client's db is in Spanish In method "_configure_journals" , it searches for the Inventory Valuation journal based on the name translated in Spanish. However, the journal "Inventory Valuation" is not translated to Spanish in the database. Therefore, no journal would be found and an error "Journal codes must be unique per company" will be thrown because it will try to create another "Inventory Valuation" journal with code 'STJ'. Solution: Since journal codes have to be unique, it is more logical to search for an existing journal based on its code instead of the name since it is possible to have multiple journals with the same name but different codes. opw-3277498 closes odoo/odoo#118982 Signed-off-by:
Tiffany Chang <tic@odoo.com>
-
Adrien Widart (awt) authored
[1] could be improved as we could even remove the `create` override introduced by [2]. That way, we avoid: - a useless `create` layer - a possible write on an AML just after its creation The method `_get_computed_account` is called during the AML creation process: https://github.com/odoo/odoo/blob/8c8d657c85f76bd74d663843382af3dde8d885b8/addons/account/models/account_move.py#L2058 https://github.com/odoo/odoo/blob/8c8d657c85f76bd74d663843382af3dde8d885b8/addons/account/models/account_move.py#L1933 Note: the test checks the use cases of both commits [1] 66ea264f [2] f36c5c8a OPW-3251714 closes odoo/odoo#117920 Signed-off-by:
William Henrotin (whe) <whe@odoo.com>
-
Adrien Widart (awt) authored
[1] is not enough. First, when installing `stock_account`, the post-install hook will only add `False` values to the first company. We should do it for all existing ones Second, the field `property_valuation` is company-dependent: https://github.com/odoo/odoo/blob/640907ec1852c4e477957c865549a87d3ae840dd/addons/stock_account/models/product.py#L708-L714 And when creating a new company, its value will be (by default) `manual_periodic`. Therefore, the other properties should also be set to `False`. Note about test modification: for the tests in `stock_landed_costs` module, we set the categ to auto so the stock accounts are defined. Otherwise, when validating the landed costs, it will lead to an error https://github.com/odoo/odoo/blob/608ed487b61c81e38a5d0b856732a8b94c6df64a/addons/stock_landed_costs/models/stock_landed_cost.py#L416-L417 [1] 9dc7835c OPW-2746384 Part-of: odoo/odoo#117920
-
- Apr 18, 2023
-
-
Alexandre Kühn authored
Before this commit, when opening Discuss from chat window and then accessing the settings page of a channel, the breadcrumb showed "Unamed" as the name of the App instead of "Discuss". This happens because the client action was not named when expanding the chat window by opening Discuss app. closes odoo/odoo#118941 Signed-off-by:
Sébastien Theys (seb) <seb@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#112054 Signed-off-by:
Nasreddin Boulif (bon) <bon@odoo.com>
-
Julien (jula) authored
Backport: https://github.com/odoo/odoo/pull/117343 __Current behavior before PR:__ The size of an image field is guessed using the field name. For instance, an image field with `field_name = "XXXX_123"` is resized to 123 pixels when fetched. This is can be an issue if a user creates an image field using studio in a form view. If the user sets the label of the field as "Image 1", the technical name will become `x_studio_image_1`. Therefore, the image field will be resized to 1 pixel width. Note that in version anterior to 16, only the placeholder is resized since `image_guess_size_from_field_name` is never called when there is an actual image. __Description of the fix:__ Refactor the `image_guess_size_from_field_name` method to return `(0, 0)` when the field name starts with `x_`. closes odoo/odoo#118932 Signed-off-by:
Sébastien Theys (seb) <seb@odoo.com>
-
Ivan Yelizariev authored
Method `_invalidate_documents` is used to invalidate cache on moving message to a new record. However, it must be skipped if the message wasn't attached to any record before. Before this commit it gives `KeyError` on reading `self.pool[False]`. STEPS: * install `hr_referral` module * open `Settings >> Technical >> Messages` * open a record with empty values in Related Document Model/ID * set any values in those fields opw-3056859 closes odoo/odoo#106521 Signed-off-by:
Thibault Delavallee (tde) <tde@openerp.com>
-
- Apr 17, 2023
-
-
Guillaume (gdi) authored
This commit creates a new util which clicks on edit and waits for the edit mode to be started. This way, we make sure that the edit mode is enabled before testing the next step of the test. This avoids race conditions during tests. Note that we leave the old clickOnEdit util as it could be used in custom codes and we don't want to break them. task-3203820 closes odoo/odoo#116490 Signed-off-by:
Romain Derie (rde) <rde@odoo.com>
-
Benoit Socias authored
When clicking on the pseudo-block that appears in an empty page, the snippet icons bounce. However, if a snippet is selected it is not deselected and the icons are not visible. This is a problem after the previous commit because if an item is selected within an "On Hover" mega menu when this pseudo block is clicked, the mega menu is closed, but the snippet remains selected. This commit removes the snippet selection before bouncing the icons to avoid this problem. Steps to reproduce: - Add a mega menu. - Set "Sub Menus: On Hover". - Select an element inside the mega menu. - Click on the "DRAG BUILDING BLOCKS HERE" pseudo-block. => The mega menu was closed, but its inner element remained selected. task-2825376 closes odoo/odoo#110258 Signed-off-by:
Vray Benjamin (bvr) <bvr@odoo.com>
-
Benoit Socias authored
When a mega menu "Sub Menus" are configured as "On Hover", it becomes very difficult to edit its content. This commit changes the behavior of the "On Hover" while the page is being edited: - it disables the hide on exit (`mouseleave`) - it prevents the show on hover if another dropdown is already opened - it hides the menu when the page is clicked outside of the opened menu This commit also disables the preview of the "Show Sign In" option which is not previewed anyway, so that it does not deselect the mega menu when hovering the options. task-2825376 Part-of: odoo/odoo#110258
-
Matheus Leal Viana (malv) authored
The issue is when we create a new PO with notes/sections and these notes/sections are showed on purchase reporting and only the products were supposed to appear there. This issue happens because the SQL query wasn't applying any filter to the lines. The solution is apply a filter by display_type. Steps to reproduce: 1) Go to Purchase App -> Purchase Orders -> Create a new PO with notes/sections 2) Go to Reporting -> View as pivot 3) You'll be able to see the section/notes you just created closes odoo/odoo#118020 Opw: 3245933 Signed-off-by:
Adrien Widart <awt@odoo.com>
-
roen-odoo authored
Current behavior: If you add a sale description to a product, it will not be added to the invoice created from the PoS. Steps to reproduce: - Add a sale description to a product - Create a PoS order with this product - Create an invoice from the PoS order - The sale description is not added to the invoice opw-3221481 closes odoo/odoo#117974 Signed-off-by:
Joseph Caburnay (jcb) <jcb@odoo.com>
-
- Apr 16, 2023
-
-
Odoo Translation Bot authored
-
- Apr 14, 2023
-
-
niyasraphy authored
from april 3, the transifex has changed domain from www.transifex.com to app.transifex.com after this commit, the transifex project url in the system parameter will be updated to the new domain closes odoo/odoo#118574 Signed-off-by:
Martin Trigaux (mat) <mat@odoo.com>
-
Thomas Lefebvre (thle) authored
When creating an employee with a private contact, the contact will not be automatically added to the employee's followers. The desired behavior is that the contact is added to the followers even if it has a private address. Commit: 8760a4d0 However, this behavior will not be possible because adding a contact with a private address is forbidden. Commit: 20536e1b Solution: The solution is to use the private method `_message_subscribe`. This is not a problem in the business case. Indeed, the people who have access to the employee's file also have access to the private contacts. Moreover, the access rights of the public method `message_subscribe` do not concern this business case. opw-3249646 closes odoo/odoo#118572 Signed-off-by:
Kevin Baptiste <kba@odoo.com>
-
Hubert Van de Walle (huvw) authored
Steps to reproduce ================== - Go to Inventory > Operations > Replenishment - On the top right, set the pager to 1-1 - Select the only record - Click on Select All - Click on Order/snooze The action is only called for the records in the current page Cause of the issue ================== The `getSelectedRecords` function only returns records on the current page Use the `getSelectedIdsWIthDomain` function opw-3259642 closes odoo/odoo#117894 Signed-off-by:
William Henrotin (whe) <whe@odoo.com>
-
- Apr 13, 2023
-
-
Benoit Socias authored
When replacing an image by a pictogram inside columns, the pictogram right-alignment is neutralised by the fact that the section of the card inside the column spans over 100% width. This commit makes pictograms in those sections rely on their auto width instead - thus letting the right-alignment happen as expected. Steps to reproduce: - Drop a "Columns" block. - Replace an image by a pictogram. - Select the pictogram. - Click on the "Float Right" icon in the toolbar. => Pictogram remained aligned to the left. task-2841127 closes odoo/odoo#90410 Signed-off-by:
Quentin Smetz (qsm) <qsm@odoo.com>
-
Benoit Socias authored
Align images to the right by using an auto left margin. Steps to reproduce: - Drop a "Columns" block. - Select an image. - Resize image to 50%. - Align image to the right. => Image did not get aligned to the right. task-2841127 Part-of: odoo/odoo#90410
-
roen-odoo authored
Change hardcoded pricelist id to avoid test failures. opw-3206618 closes odoo/odoo#118477 Signed-off-by:
Christophe Monniez (moc) <moc@odoo.com>
-
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#105451 Signed-off-by:
Kevin Baptiste <kba@odoo.com>
-
Guillaume (gdi) authored
This commit patches the font awesome library to add an icon for the TikTok social network. Users are now able to add these icons with the media dialog. Now, the TikTok icon works like all other font awesome icons, with the new class introduced by this commit: `fa-tiktok`. Technical note: In order to add this new icon, a new font that contains only the TikTok logo has been created. task-3235451 closes odoo/odoo#116383 Signed-off-by:
Vray Benjamin (bvr) <bvr@odoo.com>
-
- Apr 12, 2023
-
-
Nasreddin Boulif (bon) authored
Steps to reproduce: - Configure incoming mail server and set it to create X record on incoming mails (X can be any model with a chatter) - Create a CSV file and set the encoding to UTF-16 - Send the CSV file through Gmail to the Odoo instance - Go to model X and open the created record - In the chatter, click/download the CSV file - Open the downloaded file with Geany (or any file editor that can show the file encoding) Issue: The file encoding is not the same as the original file (utf-8 instead of utf-16). Working with Outlook. Cause: The difference between Outlook and Gmail is that Gmail provides the charset of the file. The content of the mail is retrieved using `email` python lib. The lib will try to retrieve the charset of the file and fallback on `ASCII` if not available, then return the decode content. ```python def get_text_content(msg, errors='replace'): content = msg.get_payload(decode=True) charset = msg.get_param('charset', 'ASCII') return content.decode(charset, errors=errors) ``` Example: content = b'd\x00a\x00,\x00,\x00,\......' Outlook: charset = 'ASCII' return => 'd\x00a\x00,\x00,\x00...' Gmail: charset = 'UTF-16LE' return => 'da,,,,,\n,,,,,\....' In the post process of the attachment, the content is encoded in 'utf-8' (to then encoded in base64) before creating the attachment record. Content encoded to 'utf-8': Outlook: b'd\x00a\x00,\x00,\x00...' Gmail: b'da,,,,,\n,,,,,\n....' Therefore, when writing the file on the disk, the encoding is based on the binary content. Solution: When parsing the mail, add the encoding charset to the `info` variable. Then, when creating the attachment, use the charset in `info` (or fallback on 'utf'8' if no charset set) to encode the content. opw-3089009 closes odoo/odoo#111298 Signed-off-by:
Nicolas Lempereur (nle) <nle@odoo.com>
-
Thomas Lefebvre (thle) authored
Issue: When a project is shared with portal users, only timesheets that are linked to tasks will be displayed. Solution: Change the domain that selects the timesheets to be displayed to take into account timesheets that are not linked to a task, but are in a project to which the portal user has access. opw-3253632 closes odoo/odoo#118329 Signed-off-by:
Xavier Bol (xbo) <xbo@odoo.com>
-
- Apr 11, 2023
-
-
MerlinGuillaume authored
Tracked binary fields do not produce any message in the chatter Steps to reproduce: 1. Install Sales and Studio 2. Open any quotation 3. Trigger Studio and add a signature field to the form 4. With debug mode enabled, edit the field (by clicking on MORE when the field is selected) and set the Enable Ordered Tracking to 1 5. Close Studio 6. Edit the signature and save 7. No message appears in the chatter to track the value Solution: Remove the `tracking` field from binary fields to prevent the user from trying to track it Problem: We shouldn't track binary data in the chatter and we cannot use the filenames opw-3055108 task-3255810 closes odoo/odoo#117821 Signed-off-by:
Guillaume Merlin (megu) <megu@odoo.com>
-