- Jun 29, 2023
-
-
jadir-bs authored
Part-of: odoo/odoo#122207
-
- Jun 28, 2023
-
-
can-odoo authored
Before this PR, when moving the snippet's position, `d-none` gets added which should not. With this PR, the `cleanForSave` method is removed as it applied that `d-none` and the logic is added to the `destroy` method of the public widget (on page load, we make the snippet visible when discussion group info is processed and so it is logical to hide it again in `destroy`). task-3107451 closes odoo/odoo#108790 Signed-off-by:
Quentin Smetz (qsm) <qsm@odoo.com>
-
Loan (LSE) authored
Before this commit: If the barcode nomenclature uses the or `|` symbol. The part after it would be used as a "contains" instead of a "start with". e.g: `123|456` would be transformed in the JS code to `^123|456` instead of: `^123|^456` As such, you would have error "can't find product with barcode" if you set such a rule and a product barcode contains the second part. For e.g: the barcode `44445666` would match, but should not! After this commit: Force the second (and following if any) part to start with. Note: in practice it is pretty rare to have `|` in the pattern, but it is the case for a default rule in version 16, see: https://github.com/odoo/odoo/blob/5ac58ebf983c1c02019253c0430fde3502e13e7c/addons/pos_loyalty/data/default_barcode_patterns.xml#L10 In this case, if a regular product have `044` in its product barcode, the PoS will tell that there is no corresponding coupon instead of adding the product. But the issue itself still apply in version 14 in case of custom rules opw-3356951 closes odoo/odoo#125390 Signed-off-by:
Joseph Caburnay (jcb) <jcb@odoo.com>
-
pedrambiria authored
Before this commit, if you reset your microsoft callendar account and set to remove events from Odoo, it won't remove them. The problem is that the ('ms_universal_event_id', '!=', False) condition is not implemented, and it can't remove the existing events. opw-3382445 closes odoo/odoo#126097 Signed-off-by:
Arnaud Joset (arj) <arj@odoo.com>
-
Benjamin Vray authored
In Website, since the `#wrapwrap` element is being scrolled on the pages, we added a function called `compensateScrollbar` (added by this commit [1]) that adds space on the right side equal to the width of the scrollbar when a modal is open or to adjust the position of the fixed header when a page is scrolled. However, this `compensateScrollbar` function did not handle RTL pages correctly, where the scrollbar is on the left instead of the right. As a result, on RTL language pages, this space was added on the wrong side. This commit fixes the issue by placing the space on the left instead on RTL pages. Steps to reproduce the bug: - Select Arabic as the primary language for a website. - In edit mode, drag and drop a popup onto a page. - Bug: When the popup is open, space is added on the right to compensate for the scrollbar, but it should be on the left instead. [1]: https://github.com/odoo/odoo/commit/ebd0c90a146145079061e79c2d4c37fa182a2975 task-3102275 closes odoo/odoo#126506 Signed-off-by:
Benoit Socias (bso) <bso@odoo.com>
-
Adesh Jolhe authored
Steps to Produce:- - Install `Advanced Events` - Go to ` website` then `Configuration` - Open `setting` - Then change favicon and Select svg type file and click on save - Traceback is here Cause :- - The traceback occurs when an SVG image is passed to the ImageProcess method. In this scenario, the method sets the image as false, and then attempts to access its size, resulting in the traceback Fix :- - The issue has been resolved by implementing a condition check for the image before accessing its properties. This ensures that the image is valid before trying to retrieve its size, preventing the traceback from occurring. sentry-4199175498 closes odoo/odoo#122300 Signed-off-by:
Achraf Ben Azzouz (abz) <abz@odoo.com>
-
- Jun 27, 2023
-
-
Alex (roal) authored
A TypeError is thrown when an AST node is passed to `literal_eval` because a string is expected and the object has no len(). Check the type of the expression and make sure it's a string before calling len() on it. closes odoo/odoo#126520 Signed-off-by:
Vranckx Florian (flvr) <flvr@odoo.com>
-
Julien Mougenot authored
Before this commit, in other numbering systems than "latn", the time pickers did not allow to select hours/minutes/seconds. This was because the lib (TempusDominus) would use `parseInt` internally to retrieve the selected value, which was not a latin number in other numbering systems. This commit changes 2 things directly in the lib file: - allow the internal `getMoment` function to accept a second 'format' parameter; - use that same `getMoment` function to parse the text of the selected value, effectively using moment to both parse and format the values displayed in the picker and ensuring consistency. OPW-3258034 closes odoo/odoo#125234 Signed-off-by:
Bruno Boi (boi) <boi@odoo.com>
-
Claire Bretton (clbr) authored
The return tax should only be used through its parent tax, we don't want it to be accessible directly on bills or invoices. opw-3347425 (2nd issue) closes odoo/odoo#124781 Signed-off-by:
Brice Bartoletti (bib) <bib@odoo.com>
-
- Jun 26, 2023
-
-
Günter Bailey authored
closes odoo/odoo#126038 Signed-off-by:
Martin Trigaux (mat) <mat@odoo.com>
-
Archana Vaghasiya authored
When a user tries to access the URL directly, at that time the value of dictionary `kw` is not available. The error will be generated. Error : KeyError: 'state' This commit will prevent the traceback. sentry-3947033806 closes odoo/odoo#124450 Signed-off-by:
Achraf Ben Azzouz (abz) <abz@odoo.com>
-
- Jun 25, 2023
-
-
Odoo Translation Bot authored
-
- Jun 24, 2023
-
-
Denis Ledoux authored
Revision odoo/odoo@cabb9e7e573b86cd523980588360d8514090d370 introduced a regression: This is no longer possible to import a data module using `<field file="..."/>` in their data file. This revision targets to restore the feature as expected. The unit tests added covers the feature, so that regression no longer happens in the future. It introduces a new concept of temporary directory `file_open` can read from. e.g. ```py with odoo.tools.file_open_temporary_directory(self.env) as module_dir: with zipfile.ZipFile('foo.zip', "r") as z: z.extract('foo/__manifest__.py', module_dir) with odoo.tools.file_open('foo/__manifest__.py', env=self.env) as f: manifest = f.read() ``` Note that `file_open` will be allowed to read from that temporary directory only if `env` is passed to `file_open`, and if the `env` is part of the same transaction/request than the `env` passed to `file_open_temporary_directory`. This is to avoid having users, whether from other databases, or even the same database, trying to access these directories not belonging to them. e.g. If an admin uploads sensitive data in this temporary directory, no one than him must be allowed to read from these files, not even another user from his database. closes odoo/odoo#126278 closes odoo/odoo#126337 Signed-off-by:
Denis Ledoux (dle) <dle@odoo.com>
-
- Jun 23, 2023
-
-
Julien Van Roy authored
When parsing an email containing an xml attachment, the `email` python module will decode the base64 attachment using the charset or ascii if the charset is missing. In some cases, the payload is in UTF-8 but the charset is omitted. This results in replacement characters for the non ASCII characters. The solution is to force the charset to UTF-8, since it is a superset of ASCII that should not be a problem. NB1: Omitting the charset for text/xml is not recommended. See the RFC (section 6.4): https://www.ietf.org/rfc/rfc2376.txt opw-3144519 closes odoo/odoo#125628 Signed-off-by:
Julien Castiaux (juc) <juc@odoo.com>
-
Yolann Sabaux authored
Steps to reproduce: - Install the lux localization - Configure Peppol for a customer: Select a customer > tab accounting > under "electronic invoicing": format: Peppol BIS Billing 3.0 Peppol e-address: 0130 - Directorates of the European Commission Peppol Endpont: testendpoint - Create an invoice for the peppol customer - Add a section or a note in the Invoice - Confirm the Invoice Issue: Raise user error: Odoo requires a tax for EACH LINE, instead of each product Solution: Exclude the section/note line opw-3354757 closes odoo/odoo#124806 Signed-off-by:
Laurent Smet (las) <las@odoo.com>
-
Julien Van Roy authored
Currently, it's not possible to check the 'Peppol Bis 3' option on the journals of Italian companies, since Italy is not present in our mapping `COUNTRY_EAS`. The EAS for Italian companies may be the codice fiscal (code: 0210) or the VAT number (code: 0211). See https://peppol.agid.gov.it/en/news/expiration-validity-codes/ Use the VAT number by default, and add it in our mapping such that the option now appears for Italian companies. opw-3346572 closes odoo/odoo#126168 Signed-off-by:
Florian Gilbert (flg) <flg@odoo.com>
-
Mohit Beniwal authored
JSONDecoderError occurs when users enters invalid JSON format data in 'Default Value' field inside 'User-defined Defaults' and wherever this field is being accessed to get default value this traceback will be generated. Steps to reproduce: 1) Install 'Contacts' module. 2) Open 'Settings' > 'Technical' > 'User-defined Defaults'. 3) Click on record 'Language' > 'EDIT' button > in 'Default Value' field enter any improper JSON format data (e.g 'Maa' : FI ) . 4) Now, open 'Contacts' module > click on 'CREATE' button and traceback would be generated. By applying this, it will check for proper JSON format. Sentry-4169062951 closes odoo/odoo#124051 Signed-off-by:
Rémy Voet (ryv) <ryv@odoo.com>
-
Enric Tobella authored
closes odoo/odoo#105495 Signed-off-by:
William Henrotin (whe) <whe@odoo.com>
-
Guillaume (gdi) authored
When a user creates a link that is tracked, an interface with graphs is presented to him so that he can track the performance of his tracked link. Unfortunately, these graphs did not work when the site was in a foreign language. This was due to the fact that the code had not been designed to handle this. This commit fixes the code so that it works in all languages. Note that the data is received via RPC and the python code format the dates for the current language of the website. So we had to do a little hack to make it work properly. Steps to reproduce the issue: - Install website_links module - Go to the website app - Click on Promote > Link Tracker - Create a tracked link - Visit the link - Install Arabic (Syria) for your website - Check the stats of your link in Arabic => There is a traceback and the data is not displayed. task-3289167 closes odoo/odoo#119375 Signed-off-by:
Outagant Mehdi (mou) <mou@odoo.com>
-
- Jun 22, 2023
-
-
Benoit Socias authored
This commit ensures that the unsplash beacon calls home when an unsplash image appears on a page. To achieve this it patches the RPC call when the test URL contains the test name as parameter. The patch cancels the actual beacon call to avoid polluting data during the test, but marks the image as having had its beacon message sent. The test then simply checks if this marker appears on the image. task-3360109 closes odoo/odoo#125028 Signed-off-by:
Outagant Mehdi (mou) <mou@odoo.com>
-
Saurabh Choraria authored
In the start_sync method, the logger is updated to use the 'warning' level instead of the 'error' level. This change reflects a less severe logging level for cases where sending a partner to sync fails. The changes have been made to reduce the noise level in the sentry. sentry-3955309841 closes odoo/odoo#123827 Signed-off-by:
Louis Baudoux (lba) <lba@odoo.com>
-
- Jun 21, 2023
-
-
Matheus Leal Viana (malv) authored
Some account terms are mistranslated, this PR aims to fix these translations. The customer provided a table with the mistakes and suggestions. The customer’s suggestions are available in the ticket. How to reproduce: 1. Ukrainian translation > chart of accounts > some terms are mistranslated closes odoo/odoo#125747 Opw: 3247005 Signed-off-by:
Josse Colpaert <jco@odoo.com>
-
Jinjiu Liu authored
Reproduction: 1. Install Event, Sales, Webiste 2. Login as Admin, go to Website -> Go to website -> Events 3. Click the Open wood event, Register, buy one VIP ticket 4. In Address step, Edit the billing address, change the name to “Test Name”, click next 5. The user name “Mitchell Admin” is changed to “Test Name”, we shouldn’t be able to change the info Reason: In the fix to block name change here: https://github.com/odoo/odoo/commit/d823033ad67702b1b92d27a3f66c7a4ec304c644 we use the can_edit_vat to check if we have existing invoice(s) or SO(s). However, we should block the route that an employee changes the billing address when placing an order. If they are placing an order for external people, it should be done from the back end. Fix: add an extra error case when it's an employee trying to change the name or email address when editing billing address. This is the case when an employee tries to order for external people. They should do it from the back end. They can still buy for themselves without changing the billing address. Also added translation in pot. Edited the test for editing address of log in user, added tests for portal user. Reformat the invoice exsits check for name change to have better readability In website, add render on MockRequest that return a supported type (string e.g.) The adding of can_edit_vat: https://github.com/odoo/odoo/commit/f8b05f52f5ea7f31135f700b0e240ff563204085 Related fix to block the name change: https://github.com/odoo/odoo/commit/d823033ad67702b1b92d27a3f66c7a4ec304c644 A patch to not block the checkout process when name is not set: https://github.com/odoo/odoo/commit/781dbeaccac76a6ec4f4b8cac1b607810697e394 opw-3126325 closes odoo/odoo#111708 Signed-off-by:
Antoine Vandevenne (anv) <anv@odoo.com> Co-authored-by:
Jeremy Kersten <jke@odoo.com> Co-authored-by:
Antoine Vandevenne (anv) <anv@odoo.com>
-
Francesco Ballerini authored
This commit fixes a simple SyntaxError on `website_ribbon_id` options attribute on view `product_template_form_view` of `website_sale` module. It doesn't seem to cause issues on module update, but it's a common syntax mistake which should be fixed. closes odoo/odoo#125715 Signed-off-by:
Antoine Vandevenne (anv) <anv@odoo.com>
-
paso-odoo authored
If the user change a location type of the 'Production' from inventory locations and installs the 'MRP' module, the traceback will appear. Steps to produce: - Install Stock module. - Inventory > Configuration > Settings > enable the Storage Locations. - Inventory > Configuration > Locations > Remove the filter 'Internal'. - Open the 'Production' location and change the Location Type to 'View'. - Now install the 'Manufacturing' module. Error: A traceback appears: 'ParseError: while parsing /home/odoo/src/odoo/saas-16.2/addons/mrp/data/mrp_data.xml:17, somewhere inside' At the time of installing the MRP module, it will search for the production location using the location type as the production here - https://github.com/odoo/odoo/blob/f65a9bffe2cbc03b2efc969dc205c9ba01ee9ab5/addons/mrp/models/stock_warehouse.py#L65 If the production location is not found it will raise an userError. In this commit, the production location is created based on the company if not found. It will lead to the above traceback. sentry-4215564628 closes odoo/odoo#125143 Signed-off-by:
William Henrotin (whe) <whe@odoo.com>
-
Thomas Lefebvre (thle) authored
Issue: ------ The "Launch Plan" button appears for an archived employee. It causes a traceback. Solution: --------- Do not display the button for an archived employee. opw-3366815 closes odoo/odoo#125616 Signed-off-by:
Kevin Baptiste <kba@odoo.com>
-
Florian Charlier authored
Post counts were not updated when a post was created or deleted because of missing dependencies in the _compute. Note that while "active_test" is included when counting without specifying it, the field must be explicitly added to the `_compute`'s dependency list to trigger it. Task-3358143 closes odoo/odoo#124234 Signed-off-by:
Stéphane Debauche (std) <std@odoo.com>
-
- Jun 20, 2023
-
-
Christophe Monniez authored
The Debian package is replacing some fonts by a soft link to the Debian packaged ones. The glyphicons-halfings were for bootstrap 3.x which is not used anymore in Odoo, resulting in harmless broken links in the Debian package. Closes odoo/docker#453 closes odoo/odoo#125773 Signed-off-by:
Christophe Monniez (moc) <moc@odoo.com>
-
Saurabh Choraria authored
When the user will not get an HTTP response as 200 while retrieving the location using OpenStreetMap Nominatim service, the logger error will occur. The logger is updated to use the 'warning' level instead of the 'error' level. This change reflects a less severe logging level for cases where a request to OpenStreetMap fails. sentry-4151622143 closes odoo/odoo#124393 Signed-off-by:
Julien Castiaux (juc) <juc@odoo.com>
-
- Jun 19, 2023
-
-
Romain Derie authored
We have introduced a new tag `website_nightly` which is linked to a custom build on the nightly. It has been introduced with this commit [1]. The goal is to extract the `external` tagged tests linked to the website app to another special build linked to the website team. Otherwise, we would not see when the test fail, as the `external` build of the nightly is always red and we don't check why all the time. Encapsulating this in a new build and linking to our team means that whenever the test fail in a nightly, we will be visually warned on the runbot homepage by a red warning, see screenshot on the PR of this commit. Sadly, before 16.4, as there is not yet `website_nightly` tours, the build is considered failed, showing the error. Another solution would have been to somehow disable this tour on Odoo versions < 16.4 but it we opted for this solution as: - It's simpler, no need to add yet another custom stuff in runbot - It will work out of the box should be introduce such a test in those versions: we won't need to ask runbot to activate the test in another version, should we even think about it.. [1]: https://github.com/odoo/odoo/commit/a0d0afb20594aa103eb1d0476d53012b9821e861 closes odoo/odoo#125662 Signed-off-by:
Xavier Dollé (xdo) <xdo@odoo.com>
-
mega-odoo authored
'replace() argument 1 must be str, not bool' is generated if the user edit a float or monetary section in the website view. Steps to Reproduce - Make debugger mode ON. - Go to Settings > Translations > Languages. - Remove the value of the 'Thousands Separator' field from the current user language. - Install the 'eCommerce' module. - Go to the website. - Go to the shop menu, and click any product from the product list. - Click on the Edit button and try to edit any float or monetary section like a product price (eg. change a product price from 750 to 70) and click on the Save button. And traceback will be generated. Applying this commit will resolve this issue. sentry-4148693017 closes odoo/odoo#124245 Signed-off-by:
David Monjoie (dmo) <dmo@odoo.com>
-
- Jun 18, 2023
-
-
Hubert Van de Walle (huvw) authored
Steps to reproduce ================== - On Chrome for Android, create an invoice with an amount of 0 - Save and confirm it - Click on "Customer Preview" - Go back - Click on "Action" > "Create invoice" > "Regular Invoice" - Click on "Create and view invoice" A User Error should appear Cause of the issue ================== When clicking on "Customer Preview", the crashManager was disabled When going back on some mobile browsers, instance of reloading the page, the same odoo instance is kept, and thus the crashManager is still disabled. opw-3166451 closes odoo/odoo#125239 Signed-off-by:
Géry Debongnie <ged@odoo.com>
-
Odoo Translation Bot authored
-
- Jun 16, 2023
-
-
John Laterre (jol) authored
This reverts commit 7b433492. There is a legal requirement in Switzerland that justifies ignoring the generic `display_qr_code` field. Confirmed with an accounting PO. closes odoo/odoo#125413 Signed-off-by:
Florian Gilbert (flg) <flg@odoo.com>
-
Florent de Labarre authored
By RPC an other user in other company can access to an other fec. closes odoo/odoo#115958 Signed-off-by:
Olivier Colson (oco) <oco@odoo.com>
-
Yolann Sabaux authored
closes odoo/odoo#124135 Signed-off-by:
Laurent Smet <las@odoo.com>
-
- Jun 15, 2023
-
-
Julien Van Roy authored
Issue: the xml declaration "<?xml version='1.0' encoding='UTF-8'?>" is lost when opening the send & print wizard with existing xml attachments. Explanation: When opening the send and print wizard, the PDF are generated and postprocessed by `_postprocess_pdf_report`. In the `_postprocess_pdf_report` override in `account_edi_ubl_cii`, the xml attachments are parsed through `tree = etree.fromstring(xml)`, then the base64 PDF is inserted, and the etree is converted to a bytes through `etree.tostring(cleanup_xml_node(tree))` and the resulting bytes is written back on the attachment, but the xml declaration disappeared. Solution: include the arguments `xml_declaration=True, encoding='UTF-8'` in the `tostring` function when converting the etree to a bytes. opw-3144519 closes odoo/odoo#125223 Signed-off-by:
Laurent Smet <las@odoo.com>
-
Arthur Detroux (ard) authored
Ever since iOS 16.4, going back and forth through a website with the cache enabled, creates an error in the console which Odoo tries to handle but fails to do so. Therefor a generic CORS error message appears. There is unfortunately no proper way to fix this bug on our end so instead, this commit tries to mitigate the error by returning early and not showing the traceback dialog. I (ARD) have submitted a feedback through Apple's Feedback Assistant app and will subsequently remove this commit when Apple releases an update that fixes this. opw-3281727 closes odoo/odoo#124828 Signed-off-by:
Romain Derie (rde) <rde@odoo.com>
-
Arthur Detroux (ard) authored
Prior to this commit, when using the "Slide Hover" reveal effect on the footer, Safari would glitch it scrolls and could result in unreadable content. This commit fixes this by a weird hack that seems to work. Adding an element with a background-image and a background-attachment set to fixed seems to resolve the issue. task-3302302 closes odoo/odoo#122029 Signed-off-by:
Dieleman Guillaume (gdi) <gdi@odoo.com>
-
Antoine Dupuis (andu) authored
When creating an invoice with a positive line and a negative line, with different taxes, the DatiRiepilogo node for the tax of the negative line contained positive amounts when they should be negative. This is because we were applying `abs()` too naively in the XML template and in the code of _l10n_it_edi_prepare_fatturapa_tax_details. This bugfix commit changes the logic to no longer use abs(). We also include a test to check that the XML is correctly generated for credit notes. Back-port of #121933 opw-3316300 closes odoo/odoo#122928 Signed-off-by:
Josse Colpaert <jco@odoo.com>
-