- Apr 30, 2021
-
-
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>
-
- Apr 28, 2021
-
-
Djamel (otd) authored
Steps to follow to reproduce the bug: - Create a new “Internal User” - Add him a “default company” - Add in the “allowed companies” a different company than his default company - In the “Technical” section, check that the “multi companies” box is checked - Log in with the new user - At the top right select a company other than his “default company” - In the “Calendar” app/ create a new meeting with a future date - Add another user as a participant - Confirm the meeting - Access rights error is triggered Problem: When participant are added, an invitation by email must be sent to all participants. The problem is in the template of the email that is sent, precisely in the "body", we add the name of the user's default company which we do not have access. Opw-2494399 closes odoo/odoo#69935 Signed-off-by:
Thibault Delavallee (tde) <tde@openerp.com>
-
Odoo's Mergebot authored
Description of the issue/feature this PR addresses: Current behavior before PR: Desired behavior after PR is merged: -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr closes odoo/odoo#69927 Signed-off-by:
Yannick Tivisse (yti) <yti@odoo.com>
-
- Apr 27, 2021
-
-
Denis Ledoux authored
This revision solves two things: - On installation of `l10n_latam_base`, `l10n_latam_base` is set as default as `l10n_latam_identification_type_id` for all partners in the database. The ORM method `write` was used to do so. With a database having a large number of partners, such as multiple hundred of thousands, this leaded to performance issues when `l10n_latam_base` got installed. I checked compute methods that could depends on this field, and the only one I found is `_compute_l10n_ar_vat`, which is not yet `installed/loaded` when this posthook takes place, as it's in the module `l10n_ar` which depends on `l10n_latam_base` and therefore is loaded after. So, it was already not executed/computed when using the ORM `write` method before this revision. Therefore, the use of plain SQL can be used to speed up the performance. - Also, the ORM `write` triggered unexpected compute fields which could raise exceptions, because of the `commercial_partner_id` synchronization. For instance: ``` Traceback (most recent call last): File "/home/odoo/src/odoo/14.0/odoo/service/server.py", line 1198, in preload_registries registry = Registry.new(dbname, update_module=update_module) File "/home/odoo/src/odoo/14.0/odoo/modules/registry.py", line 89, in new odoo.modules.load_modules(registry._db, force_demo, status, update_module) File "/home/odoo/src/odoo/14.0/odoo/modules/loading.py", line 455, in load_modules loaded_modules, update_module, models_to_check) File "/home/odoo/src/odoo/14.0/odoo/modules/loading.py", line 348, in load_marked_modules perform_checks=perform_checks, models_to_check=models_to_check File "/home/odoo/src/odoo/14.0/odoo/modules/loading.py", line 239, in load_module_graph getattr(py_module, post_init)(cr, registry) File "/home/odoo/src/odoo/14.0/addons/l10n_latam_base/__init__.py", line 8, in _set_default_identification_type env['res.partner'].search([]).write({'l10n_latam_identification_type_id': env.ref('l10n_latam_base.it_vat').id}) File "/home/odoo/src/odoo/14.0/addons/base_vat/models/res_partner.py", line 538, in write return super(ResPartner, self).write(values) File "/home/odoo/src/odoo/14.0/addons/snailmail/models/res_partner.py", line 26, in write return super(ResPartner, self).write(vals) File "/home/odoo/src/odoo/14.0/addons/partner_autocomplete/models/res_partner.py", line 199, in write res = super(ResPartner, self).write(values) File "/home/odoo/src/odoo/14.0/odoo/addons/base/models/res_partner.py", line 550, in write partner._fields_sync(vals) File "/home/odoo/src/odoo/14.0/odoo/addons/base/models/res_partner.py", line 469, in _fields_sync self._children_sync(values) File "/home/odoo/src/odoo/14.0/odoo/addons/base/models/res_partner.py", line 478, in _children_sync self._commercial_sync_to_children() File "/home/odoo/src/odoo/14.0/odoo/addons/base/models/res_partner.py", line 452, in _commercial_sync_to_children sync_children._compute_commercial_partner() File "/home/odoo/src/odoo/14.0/odoo/addons/base/models/res_partner.py", line 297, in _compute_commercial_partner partner.commercial_partner_id = partner.parent_id.commercial_partner_id File "/home/odoo/src/odoo/14.0/odoo/fields.py", line 1127, in __set__ records.write({self.name: write_value}) File "/home/odoo/src/odoo/14.0/addons/base_vat/models/res_partner.py", line 538, in write return super(ResPartner, self).write(values) File "/home/odoo/src/odoo/14.0/addons/snailmail/models/res_partner.py", line 26, in write return super(ResPartner, self).write(vals) File "/home/odoo/src/odoo/14.0/addons/partner_autocomplete/models/res_partner.py", line 199, in write res = super(ResPartner, self).write(values) File "/home/odoo/src/odoo/14.0/odoo/addons/base/models/res_partner.py", line 546, in write result = result and super(Partner, self).write(vals) File "/home/odoo/src/odoo/14.0/addons/mail/models/mail_activity.py", line 766, in write return super(MailActivityMixin, self).write(vals) File "/home/odoo/src/odoo/14.0/addons/mail/models/mail_thread.py", line 322, in write result = super(MailThread, self).write(values) File "/home/odoo/src/odoo/14.0/addons/website/models/mixins.py", line 182, in write return super(WebsitePublishedMixin, self).write(values) File "/home/odoo/src/odoo/14.0/odoo/models.py", line 3640, in write self.modified(relational_names, before=True) File "/home/odoo/src/odoo/14.0/odoo/models.py", line 5786, in modified tocompute = list(tocompute) File "/home/odoo/src/odoo/14.0/odoo/models.py", line 5862, in _modified_triggers yield from records._modified_triggers(val) File "/home/odoo/src/odoo/14.0/odoo/models.py", line 5858, in _modified_triggers records |= model.search([(key.name, 'in', real_records.ids)], order='id') File "/home/odoo/src/odoo/14.0/odoo/models.py", line 1708, in search res = self._search(args, offset=offset, limit=limit, order=order, count=count) File "/home/odoo/src/odoo/14.0/odoo/models.py", line 4492, in _search self._flush_search(args, order=order) File "/home/odoo/src/odoo/14.0/odoo/models.py", line 4470, in _flush_search self.env[model_name].flush(field_names) File "/home/odoo/src/odoo/14.0/odoo/models.py", line 5442, in flush self.recompute(fnames, records=records) File "/home/odoo/src/odoo/14.0/odoo/models.py", line 5908, in recompute process(field) File "/home/odoo/src/odoo/14.0/odoo/models.py", line 5879, in process field.recompute(recs) File "/home/odoo/src/odoo/14.0/odoo/fields.py", line 1145, in recompute self.compute_value(record) File "/home/odoo/src/odoo/14.0/odoo/fields.py", line 1175, in compute_value records._compute_field_value(self) File "/home/odoo/src/odoo/14.0/addons/mail/models/mail_thread.py", line 410, in _compute_field_value return super()._compute_field_value(field) File "/home/odoo/src/odoo/14.0/odoo/models.py", line 4068, in _compute_field_value self.filtered('id')._validate_fields(fnames) File "/home/odoo/src/odoo/14.0/odoo/models.py", line 1260, in _validate_fields check(self) File "/home/odoo/src/odoo/14.0/addons/sale_project/models/project.py", line 70, in _check_sale_line_type product_id=task.sale_line_id.product_id.display_name, odoo.exceptions.ValidationError: You cannot link the order item SO/2019/11374 - [COMOD2H] Servicio de Correctivo dos Horas to this task because it is a re-invoiced expense. ``` upg-11324 closes odoo/odoo#69954 X-original-commit: 680bd481 Signed-off-by:
Denis Ledoux (dle) <dle@odoo.com>
-
Andrea Grazioso (agr-odoo) authored
Have a Fiscal position FPOS which map tax A to tax B Have products DEMO with tax A and DEMO2 Allow FPOS in POS, Open a session, activate FPOS, sell DEMO and DEMO2 Close POS Go to Orders, select the last one, hit return, edit, delete DEMO2 line Tax will be wrong. This occcur because the fiscal position mapping fail an equivalence check with a virtual record, so the tax is calculated as A and not B opw-2485399 closes odoo/odoo#69936 Signed-off-by:
oco-odoo <oco-odoo@users.noreply.github.com>
-
Yannick Tivisse authored
-
Yannick Tivisse authored
-
Robin Heinz authored
This tasks allow to see serial numbers or lot numbers for each products on the order. It also add the same information on an invoice generated by the POS if the option is ticked in the pos config. closes odoo/odoo#42410 closes odoo/odoo#69932 Task-id: 2154835 Signed-off-by:
pimodoo <pimodoo@users.noreply.github.com>
-
Pierre Masereel authored
When a product is sold from POS, the lot is not present in the invoice. As in 14.0, this feature is only in sale, we need to have POS and sale to make it work.
-