- 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>
-
- Apr 19, 2021
-
-
William Henrotin authored
Commit 044c5c2c removed the context key `variant` of the bom structure report. This implies to always print every variant in case a BoM has no product_id. This commit fix this issue to print only the variant selected in the report. It also adds a new button to print the report with all variants in case for some customers this behavior was "not a bug but a feature". Task : 2504524 closes odoo/odoo#69441 Signed-off-by:
William Henrotin <Whenrow@users.noreply.github.com>
-
- Apr 29, 2021
-
-
Adrien Widart authored
When closing a POS session, if there was no sale, the journal entries of cash in/out will not be posted. To reproduce the error: (Need account_accountant) 1. In Point of Sale, open Shop's settings: - Enable "Advanced Cash Control" 2. Start a new session: - Open POS - Close, Confirm 3. Close session 4. Click on "End of Session" 5. Add a "Cash In/out" - +$10 6. Set Closing Cash 7. Close Session & Post Entries 8. Accounting > Cash Error: The $10 line is present but its status is "New". It should be "Processing". Since there was no sale during the POS session, the module ignores all the accounting part. When the session is closed, the accounting part is ignored because there were no sales. As a result, it does not post the cash in and out. OPW-2456395 closes odoo/odoo#70101 Signed-off-by:
pimodoo <pimodoo@users.noreply.github.com>
-
- Apr 30, 2021
-
-
Nicolas Lempereur authored
Make translation works for "Website Visitor" that was appearing when a logged-out user open a livechat session. note: list comprehension has to be removed since translation only search language in direct calling method closure. opw-2504461 closes odoo/odoo#70135 X-original-commit: 7e0cf967 Signed-off-by:
Nicolas Lempereur (nle) <nle@odoo.com>
-
- Apr 29, 2021
-
-
david authored
Give a coherent group as otherwise we could have access errors. Simple case: an Admin Rights user goes into a mail message form which is only available in debug mode which sets `group.no_one` into such user. This model is only readeable by `base.group_sytem` so an AccessError will raise. closes odoo/odoo#70107 X-original-commit: 8930e082 Signed-off-by:
Simon Goffin (sig) <sig@openerp.com> Signed-off-by:
Thibault Delavallee (tde) <tde@openerp.com>
-
wan authored
When the same sequence is used in different journals (i.e. BNK1 in two different companies), a clash might happen in the grouping optimization of the `_compute_name` closes odoo/odoo#70085 Signed-off-by:
Laurent Smet <smetl@users.noreply.github.com>
-
wan authored
There are quite some tests related to the `sequence.mixin`. Add some dosctring too.
-
- Apr 28, 2021
-
-
oco-odoo authored
[FIX] account: cash basis taxes: generate correct exchange difference when using the same cash basis taxes on multiple lines To reproduce the bug: 1) Create a cash basis tax for 42% 2) Make an invoice with two lines at 100$, each using this tax 3) Post and register full payment of the invoice ==> An exchange difference has been generated, doing +100 -100. One of its two line has tax_ids set, while the other does not. This makes the base amount shown in the generic tax report wrong: 100 instead of 200. Actually, this exchange difference entry shouldn't have existed in the first place, as there is no rounding issue to compensate for here. It happens because the grouping keys computed for the two base lines are the same, and the second line overwrites the totals of the first one instead of adding them to its own. closes odoo/odoo#70034 Related: odoo/enterprise#18019 Signed-off-by:
Laurent Smet <smetl@users.noreply.github.com>
-
- Apr 29, 2021
-
-
Achraf (abz) authored
What are the steps to reproduce your issue ? 1. Create a contact and set 'VAT' to "20AAACT2803M2ZO". The 'GST Treatment' will be automatically set correctly. 2. Create a sale order for this new contact. GST Treatment is automatically filled in correctly. 3. Confirm the order. 4. Create an invoice. What is currently happening ? The related invoice does not fetch the 'GST Treatment' automatically What are you expecting to happen ? The related invoice must set the 'GST Treatment' automatically. opw-2499503 closes odoo/odoo#69392 Signed-off-by:
Achraf <abz-odoo@users.noreply.github.com>
-
Goffin Simon authored
Steps to reproduce the bug: - Let's consider a project P set with analytic account AA and company C - Allow timesheet on P - Let's consider a task T belonging to P - Set AA with comapny = False - Try to encode a timesheet on T Bug: A UserError was raised because the field company_id on account.analytic.line is required opw:2486034 closes odoo/odoo#70071 X-original-commit: b3dc922c Signed-off-by:
Simon Goffin (sig) <sig@openerp.com>
-
Romeo Fragomeli authored
Some features of the PDF.js library doesn't work in the webview of the mobile apps. Initially 'window.print' is defined as an empty function in webviews unlike browsers where it is already ready. After that, PDF.js needs to monkey patch 'window.print' and saves a reference to the original definition, which is not yet fulfilled in by the mobile app (Java part). So the print of PDF.js doesn't work in webviews and end users will need to download the file before printing it. Regarding the Download button, the 'download' attribute is not supported by the webview as you can see in: https://bugs.chromium.org/p/chromium/issues/detail?id=432414 As there's many ways to download a file in Odoo it's not a big deal to simply hide it in PDF.js. Because it's quite complicated to fix this, we decided to hide the features that don't work (Download / Print) or don't make sense (Open file). Note that a refactoring is already in progress in order to avoid to patch this library in master. closes odoo/odoo#70092 Task-id: 2200168 Signed-off-by:
Adrien Dieudonné (adr) <adr@odoo.com>
-
Xavier Morel authored
`_(xyz)` will wrap them in an underscore.js object, which when used in a string context will just return the string. So it's basically a no-op, but it certainly doesn't translate the terms. closes odoo/odoo#70000 Related: odoo/enterprise#18001 Signed-off-by:
Xavier Morel (xmo) <xmo@odoo.com>
-
- Dec 27, 2020
-
-
Swapnesh Shah authored
Before this fix, Default date format `medium` was used in Forecast report, Which doesn't respect Date/Time format from Language. Now, we are not passing any dt_format which will use Date/Time format from Language. closes odoo/odoo#63805 Signed-off-by:
Rémy Voet <ryv-odoo@users.noreply.github.com>
-
- Apr 28, 2021
-
-
Nicolas Lempereur authored
Scenario: - add a file in mass mailing editor => an icon is added linking the file - save - edit => the icon is replaced by a generic icon - save - send mail => no icon is shown in email received The system is using eg. `data-mimetype="pdf"` to show the icon, before 12.0 this worked but in saas-12.3 the system uses mailing.mailing body_arch's field that is sanitizing attributes and remove it on save, so the icon is only working in received email if you save one and only one time after adding file inside the mass mailing. opw-2474053 (ticket for similar issue in 14.0) closes odoo/odoo#70046 X-original-commit: 7e14515b84d8081557517df7e9dc7d8c0d17f2be Signed-off-by:
Nicolas Lempereur (nle) <nle@odoo.com>
-
- Apr 27, 2021
-
-
Djamel (otd) authored
Steps to follow to reproduce the bug : - Install the Repairs and Accounting application - Create a new user and give him only access to Accounting - Connect with this user - Create a draft invoice - Try to delete it - Access rights error is triggered. Problem: When we delete an invoice and the Repairs app is installed, we check if it is not an invoice related to a repair. But the user does not have access to “repair.order”, so we can not check the field "repair_ids". opw-2507867 closes odoo/odoo#69701 Signed-off-by:
Rémy Voet <ryv-odoo@users.noreply.github.com>
-
- Apr 28, 2021
-
-
Swapnesh Shah authored
Steps to reproduce the bug: - Go to Attendances > Manager > Attendances - Remove Check in value of an hr.attendance record A - Set Check out to A Bug: A traceback was raised opw:2513143 closes odoo/odoo#70041 Signed-off-by:
Simon Goffin (sig) <sig@openerp.com>
-
Adrien Widart authored
When the user submits a form, a lead will be created but the language won't be the one selected by the user. To reproduce the error: (Enable debug mode) 1. Settings > Translations > Languages 2. Activate another language L_other 3. On website, add a form: - Action: Create an Opportunity 4. Add an existing field: "Language" 5. Submit the form - Language must be L_other 6. Consult the new lead Error: The language is not the selected one. OPW-2486276 closes odoo/odoo#70031 X-original-commit: 8d6a971a Signed-off-by:
Adrien Widart <adwid@users.noreply.github.com>
-
Swapnesh Shah authored
Steps to reproduce the bug: - Create a Job Application without Applied Job - Refuse/Archive it. - Restore/Unarchive it Bug: - KeyError raised due to missing `False` in `default_stage` Fix: - Add `stage_id` if Applied Job is selected on the application. opw:2513147 closes odoo/odoo#70023 Signed-off-by:
Simon Goffin (sig) <sig@openerp.com> Co-authored-by:
simongoffin <sig@odoo.com>
-
Aaron Bohy authored
The changed test uses the drag&drop helper, and an operation does not work as expected with the given params on chrome 90. The runbot currently uses chrome 80, so it is not an issue, but if your chrome is up-to-date, and you try to run the test suite, this test would fail. closes odoo/odoo#70008 X-original-commit: 43994da9980e4133274984f720bb58f3546ea0f9 Signed-off-by:
Géry Debongnie (ged) <ged@openerp.com> Signed-off-by:
Aaron Bohy (aab) <aab@odoo.com>
-
Goffin Simon authored
Steps to reproduce the bug: - Let's consider a user U not in group group_system - Log with U - Create a vendor payment with payment method Checks - Print it Bug: An access error was raised because U didn't have the rights to write on model ir.sequence opw:2513014 closes odoo/odoo#70013 Signed-off-by:
William André (wan) <wan@odoo.com>
-
Antoine Guenet authored
The media modal's document tab has cells with icons and filenames. If the filename was too long, it would overflow its cell, which caused an ugly design glitch. This ensures an ellipsis on the filename when it is too long. closes odoo/odoo#69977 X-original-commit: 8a4f4bf0 Signed-off-by:
Quentin Smetz (qsm) <qsm@odoo.com>
-
nie authored
Steps: - Go to Inventory / Products / Products - Create a product (2) - Storable Product - Cost: 10 - Click Update Quantity - Create a new quantity line with 3 in On Hand Quantity - Update the line with 1 in On Hand Quantity - Go back to the product - Click the "Forecasted" smart button Bug: The on hand value is 30 instead of 10. Explanation: When `location_dest_id` is the current location, it is used to specify that a given quantity has been added to this location's stock. However, when removing a quantity, the move goes from the current location to a virtual one. The current location is, in this case, stored in `location_id` and the destination is the virtual location. This makes stock removals not appear in the on hand value since we only filter the layers on their move's `location_dest_id`. This commit assumes that a move always goes from or to a virtual location and checks if the current location is in `location_dest_id` or in `location_id`. opw:2510911 closes odoo/odoo#69969 Signed-off-by:
Arnold Moyaux <amoyaux@users.noreply.github.com>
-
- Apr 27, 2021
-
-
Andrea Grazioso (agr-odoo) authored
- Create a service product with cost 0 - Create a sales quotation - Add the service product, change the cost to a positive quantity - Save and Confirm. Purchase Price (cost) will be reset to 0 opw-2481564 closes odoo/odoo#69966 Signed-off-by:
agr-odoo <agr-odoo@users.noreply.github.com>
-
- Apr 28, 2021
-
-
Xavier Morel authored
This mostly an issue when trying to run just the tests of `web` (aka `-iweb`) with only community modules available, `TestMenusDemoLight.test_01_click_apps_menus_as_demo`, wait for the ready code times out: AssertionError: False is not true : The ready "odoo.isReady === true" code was always falsy and the test suite fails. The ready code simply checks that `odoo.isReady` is set. The web client sets `isReady` when `webclient_started` is triggered (specifically in `_onWebClientStarted`, which is the handler for that event). [The community web client only triggers `webclient_started` at the end of `doAction`][0] meaning the community client is considered ready until after the first action has executed. [The first action is executed by `show_application`][1] whose process is the following: 1. load and initialize the menus 2. if an action is specified in the URL, run that 3. otherwise if the user has a home action, run that 4. otherwise run the first menu's action When installing only `web`, the only menus which could be available are Apps and Settings, and the demo user has access to neither. This means the demo user has no applications, and opening the first app is a no-op ([`openFirstApp` has a case just for that situation to ensure it does nothing][2]). As a result, `webclient_started` is never triggered, `_onWebClientStarted` is never called, `odoo.isReady` is never set, and the tour never runs. Fix by updating `openFirstApp` to return *whether* it opened an application, and in `show_application` the last fallback if even opening the first application failed is to just declare the web client ready. While at it, rewrite `show_application` using ES6 facilities and flatten and linearize it using guards. This means the code pretty much tracks the process described above, with one step added: 5. otherwise complete the webclient's startup [0]: https://github.com/odoo/odoo/blob/1eb474243b55f1b9e10c70d199bbe022e68b51d0/addons/web/static/src/js/chrome/action_manager.js#L174 [1]: https://github.com/odoo/odoo/blob/d1c56ec7c435c5baba8604feccc6116e4c25ca96/addons/web/static/src/js/chrome/web_client.js#L77-L107 [2]: https://github.com/odoo/odoo/blob/e24ab17d38fb049404f04112990e8b2fe1dd7727/addons/web/static/src/js/chrome/apps_menu.js#L44-L46 closes odoo/odoo#69962 Signed-off-by:
Xavier Morel (xmo) <xmo@odoo.com>
-
- Apr 20, 2021
-
-
lejeune quentin authored
Use the last version of raspberry pi os to build the IoT Box We don't hold anymore the firmware-brcm80211 closes odoo/odoo#69547 Signed-off-by:
Quentin Lejeune (qle) <qle@odoo.com>
-
- Apr 28, 2021
-
-
Odoo's Mergebot authored
The goal of this PR is to solve some issues with the last AppStore review. Without these changes, we are no longer able to update the mobile app on iOS. Here is a summary of the feeback we received: > **Guideline 2.5.8 - Performance - Software Requirements** > https://developer.apple.com/app-store/review/guidelines/#software-requirements > > Your app includes a dashboard view that presents multiple windows at once. > The Apple iOS Human Interface Guidelines allow multiple screens in an app. However, access to these screens should always be sequential, not simultaneous. > > _Next Steps_ > > To resolve this issue, please modify your app to provide an alternate way users can accomplish the same task in a single screen or sequence of screens. > > **Guideline 3.1.1 - Business - Payments - In-App Purchase** > https://developer.apple.com/app-store/review/guidelines/#in-app-purchase > > We found in our review that your app or its metadata provides access to mechanisms other than in-app purchase for purchases or subscriptions to be used in the app, which does not comply with the App Store Review Guidelines. Specifically: > Your app includes an account registration feature for businesses and organizations, which is considered access to external mechanisms for purchases or subscriptions to be used in the app. > > _Next Steps_ > > To resolve this issue, please remove features, account registrations links, and any other fully qualified links to your site that could indirectly provide access to external purchase mechanisms. > If you have any additional information to provide regarding the digital content and services in your app and how the guidelines apply to them, please reply to this message in Resolution Center and let us know. If there is information you'd like us to consider in our review of future submissions, please feel free to include it in the App Review Information section of App Store Connect. > > _Resources_ > > Learn more about our policies for apps that offer paid digital content and services. closes odoo/odoo#68351 Task-id: 2483253 Related: odoo/enterprise#17296 Signed-off-by:
Adrien Dieudonné (adr) <adr@odoo.com>
-
Adrien Dieudonne authored
According to the app-store guidelines we are not allowed to sell from the iOS app. Our updates are currently blocked because of this. In the rush, we have no choice but to hide the 'learn more' button displayed on each app. This redirects the customer to the documentation page where you can find subscription links. And this is unfortunately not allowed by Apple... Source: https://developer.apple.com/app-store/review/guidelines/#business Related PR: https://github.com/odoo/mobile-ios/pull/102 https://github.com/odoo/mobile-ios/pull/103 Task-ID: 2483253
-
Adrien Dieudonne authored
According to the app-store guidelines we are not allowed to sell from the iOS app. Our updates are currently blocked because of this. In the rush, we have no choice but to hide certain elements related to IAP services. Source: https://developer.apple.com/app-store/review/guidelines/#business Related PR: https://github.com/odoo/mobile-ios/pull/102 https://github.com/odoo/mobile-ios/pull/103 Task-ID: 2483253
-
Nicolas Lempereur authored
Scenario: - add a file in mass mailing editor => an generic icon (instead of lower version where icon depended on mimetype) is added linking the file - save and send mail => no icon is shown in email received The system is targeting `a[href*="/web/content/"][data-mimetype]:empty` to add real image inside instead of using background-image attribute which is stripped in sanitized. With this commit, data-mimetype is not removed when image processing attributes are removed when a file is inserted. opw-2474053 closes odoo/odoo#69915 Signed-off-by:
Nicolas Lempereur (nle) <nle@odoo.com>
-
Nicolas Lempereur authored
When synchronizing microsoft calendar events, if the event is permanent Microsoft says the endDate is "0001-01-01": we save that and this causes an error when it is being parsed in javascript since we require a date with higher than 1000 years in require('web.field_utils').parseDate function. With this changeset, we do not set endDate if the type of the event is not endDate (as shown[^1] in the documentation endDate only makes sense for event of type endDate). [^1]: https://docs.microsoft.com/en-us/graph/outlook-schedule-recurring-events#recurrence-ranges opw-2479029 fixes #69481 closes #69944 Signed-off-by:
Nicolas Lempereur (nle) <nle@odoo.com>
-
Goffin Simon authored
Steps to reproduce the bug: Create an accounting entry AE with $ as default currency Add a line L1 with 10 € and a tax of 15% Bug: The added tax line was 0.75€ instead of 1.5€ opw:2510338 closes odoo/odoo#69920 Signed-off-by:
Laurent Smet <smetl@users.noreply.github.com> Co-authored-by:
smetl <las@odoo.com>
-
- Apr 17, 2021
-
-
Adrien Widart authored
When resuming a POS session, if the latter has been opened in the past and if its state is 'Opening Control', a incorrect UserError is raised and prevents the session to be started. To reproduce the error: 1. Use a French company 2. Create a POS - Enable "Advanced Cash Control" 3. Start a new session 4. Close it 5. Set the computer's date in the future 5. Open the POS session > Continue Selling Error: A UserError is raised ("This session has been opened another day. To comply with the French law, [...]"), but the user does not have the possibility to close the session. Moreover, since its state is "Opening Control", no sales have been made yet. This fix suggests to reset the start date in such a situation. OPW-2488952 closes odoo/odoo#69253 Signed-off-by:
William André (wan) <wan@odoo.com>
-