- Jul 04, 2021
-
-
Odoo Translation Bot authored
-
- Jul 02, 2021
-
-
oco-odoo authored
l10n_eu_service has been modified in order to follow the new OSS regulation. We now auto-generate the mapping instead of relying on a wizard. Databases that were already using the module will still see the button to open this wizard, unless they upgrade the module. Wit this, we add an error message in case they try to do so, asking them to update the module, so that they can use the new OSS mapping. closes odoo/odoo#73153 X-original-commit: 7a94028a Signed-off-by:
Laurent Smet <smetl@users.noreply.github.com> Signed-off-by:
oco-odoo <oco-odoo@users.noreply.github.com>
-
- Apr 16, 2021
-
-
Mohammed Shekha authored
Before this commit: when editable listview has sequence field with handle widget and user edits row it is displayed with white background, while user can not change it in edit mode so it should be displayed with grey background After this commit: sequence field will be displayed with grey background in editable listview in edit mode. task-2507971 closes odoo/odoo#69371 Signed-off-by:
Simon Genin (ges@odoo) <ges@odoo.com>
-
- Jul 02, 2021
-
-
Aurélien (avd) authored
Move candidate.unlink out of the for loop to unlink records in batch. Remove to_unlink_candidates.move_id from move_to_recompute as move_line.unlink() will trigger recompute of their move's state. --- opw-2585598 closes odoo/odoo#73082 Signed-off-by:
William Henrotin <Whenrow@users.noreply.github.com>
-
- Jul 01, 2021
-
-
Rémy Voet (ryv) authored
Issue: For purchase user, which doesn't have the "Contact Creation" can't create a purchase, get a AccessError. The fields `receipt_reminder_email` and `reminder_date_before_receipt` should be writable also for purchase user which doesn't have access to write and create `res.partner`. close odoo/odoo#64135 closes odoo/odoo#64319 Signed-off-by:
William Henrotin <Whenrow@users.noreply.github.com>
-
Fernanda Hernández authored
Currently if public user has country_id, following traceback is raise when /shop URL is opened: Traceback (most recent call last): File "/.repo_requirements/odoo/odoo/addons/base/models/qweb.py", line 331, in _compiled_fn return compiled(self, append, new, options, log) File "<template>", line 1, in template_website_sale_products_item_306 File "/.repo_requirements/odoo/addons/website_sale/models/product.py", line 294, in _get_combination_info fpos = self.env['account.fiscal.position'].get_fiscal_position(partner.id).sudo() File "/.repo_requirements/odoo/addons/account/models/partner.py", line 184, in get_fiscal_position fp = self._get_fpos_by_region(delivery.country_id.id, delivery.state_id.id, delivery.zip, vat_required) File "/.repo_requirements/odoo/addons/account/models/partner.py", line 141, in _get_fpos_by_region fpos = self.search(domain_country + state_domain + zip_domain, limit=1) File "/.repo_requirements/odoo/odoo/models.py", line 1708, in search res = self._search(args, offset=offset, limit=limit, order=order, count=count) File "/.repo_requirements/odoo/odoo/models.py", line 4485, in _search model.check_access_rights('read') File "/.repo_requirements/odoo/odoo/models.py", line 3331, in check_access_rights return self.env['ir.model.access'].check(self._name, operation, raise_exception) File "<decorator-gen-33>", line 2, in check File "/.repo_requirements/odoo/odoo/tools/cache.py", line 90, in lookup value = d[key] = self.method(*args, **kwargs) File "/.repo_requirements/odoo/odoo/addons/base/models/ir_model.py", line 1792, in check raise AccessError(msg) odoo.exceptions.AccessError: You are not allowed to access 'Fiscal Position' (account.fiscal.position) records. This operation is allowed for the following groups: - Accounting/Advisor - User types/Internal User - User types/Portal Contact your administrator to request access if necessary. Error to render compiling AST AccessError: You are not allowed to access 'Fiscal Position' (account.fiscal.position) records. This operation is allowed for the following groups: - Accounting/Advisor - User types/Internal User - User types/Portal Contact your administrator to request access if necessary. Template: website_sale.products_item Path: /t/t[2] Node: <t t-set="combination_info" t-value="product._get_combination_info(only_template=True, add_qty=add_qty or 1, pricelist=pricelist)"/> Above was tested and reproduced in an instance of odoo runbot v14.0: https://youtu.be/GgUnyna_EX8 That is due to public user has not permission to read model account.fiscal.position and in fact in ACL, permission contains 'public' but is setting group_portal. closes odoo/odoo#70566 Signed-off-by:
Martin Trigaux (mat) <mat@odoo.com>
-
- Jun 25, 2021
-
-
Bruno Zanotti (ADHOC) authored
According to Argentinean law 27440, Art. 5º it is mandatory to show the CBU on the report for electronic invoices and electronic debit notes. Before this commit, we were showing only in FCE (MiPyMEs), and here we add it for NDE (MiPyMEs) on invoices reports. closes odoo/odoo#72716 Signed-off-by:
Josse Colpaert <jco@openerp.com>
-
- Jul 01, 2021
-
-
oco-odoo authored
https://github.com/odoo/odoo/pull/71872 made country_id readonly in every circumstance. This made it impossible to create an account.account.tag targetting taxes from scratch in the UI. We only want to prevent edition of this field when the tag has been generated by a tax.report.line. closes odoo/odoo#72835 X-original-commit: b93bd6a11458fd9624c3fa700598776bb34a142a Signed-off-by:
Laurent Smet <smetl@users.noreply.github.com> Signed-off-by:
oco-odoo <oco-odoo@users.noreply.github.com>
-
oco-odoo authored
This field should be true when the company is subject to VAT in Europe, so the fiscal country should be used instead of the country. [IMP] l10n_eu_service: make compute api.multi closes odoo/odoo#73078 Signed-off-by:
Laurent Smet <smetl@users.noreply.github.com>
-
oco-odoo authored
To reproduce: 1) Install an European CoA and make sure the OSS mapping for its taxes has been generated (either installing l10n_eu_service before, or clikcing the "refresh tax mapping" button, in the settings) 2) Create a new tax with the same rate as one of your original taxes 3) Click on "refresh tax mapping" ===> Instead of reusing the OSS tax mapped with the other tax having the same rate, a new tax with the same name has been created.
-
oco-odoo authored
https://github.com/odoo/odoo/pull/72771 introduced some calls to the translation function without adding the terms in the .pot. We remove those calls to directly use the string, as the terms were basically only concatenated strings with non-translatable acronyms. closes odoo/odoo#73064 Signed-off-by:
Laurent Smet <smetl@users.noreply.github.com>
-
Nasreddin (bon) authored
Steps to reproduce: - Install 'Accounting' module - Switch to "My Company (Chicago)" - Create an invoice - Set Invoice date to 1/1/21 and - Set Due date to 1/3/21 - Add any product and 'Confirm' invoice - Go to customer profile - Click on 'Due' stat button - Click on 'Send by mail' Issue In received email, logo displayed is of "My Company (San Francisco)". Cause Env company not used. Instead, logo of customer.company_id is used if mail type have company_id field, else will fallback on user.company_id Also, if customer.company_id is null, it will fallback on '0': /logo.png?company=%s' % (company.id or 0) Solution If mail record have NOT a company_id field or is not set, set company to self.env.company. Else, set company to record.company_id. opw-2474114 closes odoo/odoo#73070 X-original-commit: 4f4b4390 Signed-off-by:
Thibault Delavallee (tde) <tde@openerp.com>
-
Simon Genin (ges) authored
The owl abstract renderer must be a mirror of the legacy abstract renderer. 8776e46f07fcf6f02b40fd3246b39af844d23407 was merged without doing so, resulting in errors. The failing tests was click everywhere. closes odoo/odoo#73046 Signed-off-by:
Aaron Bohy (aab) <aab@odoo.com>
-
- Jun 25, 2021
-
-
Jose Lopez authored
closes odoo/odoo#72798 X-original-commit: bd03ed8a Signed-off-by:
oco-odoo <oco-odoo@users.noreply.github.com> Signed-off-by:
Josse Colpaert <jco@openerp.com>
-
Jose Lopez authored
X-original-commit: a51dc5ef
-
- Jun 29, 2021
-
-
William Henrotin authored
Before this commit, two POs are merged if their scheduled date is set on the same day. To relax a little bit this constrain, this commit adds a system parameter to extend the delta days between two scheduled dates of POs to be merged. closes odoo/odoo#72908 Opw: 2557125 Signed-off-by:
William Henrotin <Whenrow@users.noreply.github.com>
-
- Jun 30, 2021
-
-
Romain Tartière authored
The #for attribute of the LABEL tag should match the #id of the INPUT tag, not it's #name. This regression was introduced in a1716946 closes odoo/odoo#72252 Signed-off-by:
Romain Tartière <romain@vittoriaconseil.com> Signed-off-by:
Simon Genin (ges@odoo) <ges@odoo.com>
-
Habib (ayh) authored
Due to EU e-commerce 'One-Stop Shop' which becomes available on 1 July 2021, EU companies involved in distance sales are able to file their taxes using the new OSS process. Adopting OSS is now simplified in Odoo. On installation of the module, all companies having a fiscal country in the EU will be processed. For all existing domestic taxes in the company, an associated foreign tax (standard rate, reduced rate, etc) is found in the `EU_TAX_MAP`. This mapping will be created in a fiscal position that is automatically detected based on the customers' country. All that is required from the user, is to review the tax mappings according to the products and services sold by the company. A refresh button is also available in the odoo settings to redo/update the fiscal positions. This might be useful after adding a new tax. Note: The tax mapping herein is not intended to cover all possible tax mappings between EU countries, but rather, the most commonly used ones. It is advised that users with special tax cases update the created Fiscal Positions according to their requirements. Closes [Task 2579615] closes odoo/odoo#72771 Signed-off-by:
oco-odoo <oco-odoo@users.noreply.github.com>
-
- Jun 03, 2021
-
-
Swapnesh Shah authored
Steps: - Active Pricelist - Create SO --> add some lines - Change Pricelist and remove lines Issue: - Button to Update prices is still visible Fix: - Button should not be visible as there are no lines closes odoo/odoo#71692 Signed-off-by:
Victor Feyens (vfe) <vfe@odoo.com>
-
- Jun 30, 2021
-
-
Romain Derie authored
New features to show suggested links as an autocomplete when creating a menu was introduced with 9b982941. But it was missing a sudo, so non-admin editor could not read module records. task-2583737 closes odoo/odoo#73002 Signed-off-by:
Quentin Smetz (qsm) <qsm@odoo.com>
-
Younn Olivier authored
The commit fixes an issue with the editor toolbars dropdowns, that would not close already opened widgets. For example, when the widget color picker for snippets background was open, opening the one from the editor toolbar for the font would only close it for the first click, but not for the ones after. The issue was coming from Bootstrap, which stops the propagation of click events for dropdowns. As a result, the click event on these '.dropdown-toggle' elements was not processed by the listener at the SnippetsMenu level, in charge of closing the widgets that were already open in this context. It was the case only for the first click that was instancing a Dropdown, but not for the ones after. https://github.com/odoo/odoo/blame/cd9c071c9357cef14635ef094a9f14fc5431956c/addons/web/static/lib/bootstrap/js/dropdown.js#L308-L314 A solution would be to update bootstrap: https://github.com/twbs/bootstrap/blame/688bce4fa695cc360a0d084e34f029b0c192b223/js/src/dropdown.js#L232-L237 The fix can be to listen to mouseup events on such '.dropdown-toggle' elements while waiting for a bootstrap update. Part of https://github.com/odoo/odoo/pull/72539 task-2476601 closes odoo/odoo#72539 Signed-off-by:
Quentin Smetz (qsm) <qsm@odoo.com>
-
Younn Olivier authored
When the color palette for the text was open, opening the background color options was not closing it. The click event was stopped at the snippet option level for all events, where it should only be the case if the click was done inside the colorpicker. Part of https://github.com/odoo/odoo/pull/72539 task-2476601
-
- Jun 25, 2021
-
-
dht-odoo authored
We have a test case 'test_my_activity_flow_employee' that checks user's own activty for current day. However, the creation of the activities is done with OdooBot, and 'date_deadline' is not being passed. For this reason, the default deadline (default value = fields.Date.context_today) is set based on the tz of OdooBot (which is Europe/Brussels) and so it might happen that the deadline is set on the next day (when test case is performed just before mid-night). In such cases, when we search for today's activites for the employee (with absolute current date in domain, which is still before midnight), result can be misleading as we expect one activty for the employee but none could be found (as deadlines are set for the next day). This commit fixes the issue by using absolute current for the test case (whlie setting 'date_dateline' and while searching records) and thus making it more reliable. Note: The test case was introduced with commit https://github.com/odoo/odoo/commit/6aa3dc609cb13a469492b1a39a8fd9810040f079 TaskID-2570963 closes odoo/odoo#72396 Signed-off-by:
Thibault Delavallee (tde) <tde@openerp.com>
-
- Jun 30, 2021
-
-
Alvaro Fuentes authored
Domain terms of the form `('field', 'not in', [...])` generate incorrect queries for translated fields, example (model `res.country`, field `name`): ``` psycopg2.errors.SyntaxError: syntax error at or near "ARRAY" LINE 1: ...M "res_country" WHERE "res_country"."name" not in ARRAY['No ... ``` The root cause is that the right part of the term is not converted to tuple. Observed during the upgrade request 16639 opw-2525553 closes odoo/odoo#72134 Signed-off-by:
Raphael Collet (rco) <rco@openerp.com>
-
- Apr 30, 2021
-
-
Nuno Silva authored
When sending a notification, the company used is: - company_id of current record or if not available, - company_id of author or if no author, - company_id of user This can seem unexpected if the author is the current user and the company_id of our user is different than the current company switcher company. With this changeset: the company used is: - company_id of current record or if not available, - company_id of author if author is different than user or, - current company in company switcher or if not, - company_id of user opw-2472622 closes odoo/odoo#66859 Signed-off-by:
Nicolas Lempereur (nle) <nle@odoo.com>
-
- Jun 30, 2021
-
-
lejeune quentin authored
Move the odoo server parameters into the odoo.conf file instead of being placed as the service command line argument closes odoo/odoo#72998 X-original-commit: 45ffeeb2 Signed-off-by:
Quentin Lejeune (qle) <qle@odoo.com>
-
- Jun 29, 2021
-
-
Kamen Zhekov authored
Description of the issue/feature this PR addresses: When trying to crop pictograms, a traceback was issued because they are icons, not images. Current behavior before PR: The user was able to invoke the cropping action on pictograms and received an internal error. Desired behavior after PR is merged: The user can no longer invoke the cropping action on pictograms (icon is hidden if selected item is an icon). OPW: 2497084 -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr Manual Forward-Port-Of: #70142 closes odoo/odoo#72953 X-original-commit: 4e1e8d46 Signed-off-by:
Nicolas Lempereur (nle) <nle@odoo.com>
-
Goffin Simon authored
Steps to reproduce the bug: 1. Activate the 2 language “’English’ , ‘Spanish (AR) / Español (AR)’ ” 2. User -> select the language ‘Spanish (AR) / Español (AR)’ 3. Create a new product (Test Product). 4. Create a another product using “Duplicate” function. 5. Rename new product name(Test Product -1) 6. Translate the name ( “Spanish (AR) / Español (AR) : 111 Spanish product “ , “English: English Product” ) 7. create a purchase agreement -> select product “111 Spanish product ” -> Save -> confirm -> new quotation. 8. Purchase Quotation -> Order line Bug: Description shows “Test Item (copia)” opw:2582778 closes odoo/odoo#72919 Signed-off-by:
Simon Goffin (sig) <sig@openerp.com>
-
- Jun 30, 2021
-
-
Laurent Stukkens (LTU) authored
Steps to reproduce: - Install sale_timesheet with demo data - Add a UOM 200h with the following characteristics: - Category: Working Time - Type: Bigger than the reference Unit of Measure - Bigger Ratio: 25 - Create a new product with the following characteristics: - Product Type: Service - Service Invoicing Policy: Prepaid - Unit of Measure: 200h - Create a Quotation SO1 with the following characteristics: - Customer: Deco Addict - a SOL with product 200h and quantity 1 - Confirm the Quotation SO1 - Create a new project P1 with the following characteristics: - Timesheets: True - Billable: True - Edit the project and set the customer to Deco Addict - Create a new task T1 with the following characteristics: - Project: P1 - Sales Order Item: SOL of SO1 with product 200h - Timesheet in the task Current behavior: - When timesheeting, the quantity of Remaining Hours on SO is decreased by 200 * nb of hours in timesheet(s). Expected behavior: - When timesheeting, the quantity of Remaining Hours on SO is decreased by the number of hours in the timesheet(s). This behavior was introduced in commit b0f165bb closes odoo/odoo#72958 Signed-off-by:
Yannick Tivisse (yti) <yti@odoo.com>
-
alt-odoo authored
When a vendor is (un)archived, we should (un)archive all related products as well to avoid displaying archived vendors and products in the search panel of the Order lunch and Products list views. closes odoo/odoo#72862 Signed-off-by:
Alex Tuyls <alt-odoo@users.noreply.github.com>
-
- Jun 29, 2021
-
-
qsm-odoo authored
closes odoo/odoo#72907 Signed-off-by:
Quentin Smetz (qsm) <qsm@odoo.com>
-
- Jun 28, 2021
-
-
Adrien Widart authored
When selling several times a product in a POS, if the volume and weight of this product are defined, the sales report will be incorrect To reproduce the error: 1. Create a product P: - Product Type: Consumable - Available in POS: True - Weight: 1 - Volume: 1 2. Start a POS session 3. Sell 3 x P 4. Sell 1 x P 5. In Sales > Reporting > Sales, select the pivot view 6. Remove all filters and add this one: - Product Variant: P 7. In Measures, select "Gross Weight" and "Volume" Error: Total weight and volume are incorrect, they are equal to 8 instead of 4 For each POS order line, an SQL request computes several fields to generate the associated sale report. Among them, here is how the volume is computed: https://github.com/odoo/odoo/blob/056246665f02c331ba0589618cf030482709f1da/addons/pos_sale/report/sale_report.py#L60-L63 So, let's say we are generating the sale report associated with the POS order line of step 3. Since there are not enough constraints in the volume calculation, the SQL request will select all POS order lines with product P (even those associated with other orders than the one in step 3) and add up all the volumes. Therefore, the volume of the sale report associated with the POS order line from step 3 will be `3 + 1 = 4` which is incorrect (it should be 3). Same thing will happen with the sale report associated with the POS order line of step 4 (its volume will be 4 instead of 1). As a result, on pivot view, the volume displayed will be the sum of these values, i.e. `4 + 4 = 8`, which is incorrect The nested SQL request is actually useless and the volume can be directly computed. The problem is the same with the weight. OPW-2527163 closes odoo/odoo#72845 Signed-off-by:
Adrien Widart <adwid@users.noreply.github.com>
-
- Jun 24, 2021
-
-
mhabboush authored
When converting a price (average price in this case) the price should be multiplied by the source uom factor (uom_line.factor) https://github.com/odoo/odoo/blob/72fea2fe11244a55e9a630049fc75f147e26e473/addons/uom/models/uom_uom.py#L172 closes odoo/odoo#72488 Signed-off-by:
William André (wan) <wan@odoo.com>
-
mhabboush authored
-
- Jun 29, 2021
-
-
Anjali authored
With commit odoo/odoo@83ffe8b we ensured that while creating a child contact, it takes language from its parent by default if any, otherwise falls back to DB lang. The fix was done with help of `default_get` method. However after merge of odoo/odoo#55995 `default_get` is now called through the onchange for o2m fields. Now we don't get the default value of `parent_id` here which re-introduced the bug. This commit fixes the behavior by setting the language from onchange while creating the child contact and thus (once again) making the language from parent contact prevail on DB lang. We also re-use default_lang coming from parent in form view, which partially reverts odoo/odoo@83ffe8b . TaskID-2416922 closes odoo/odoo#68009 Signed-off-by:
Thibault Delavallee (tde) <tde@openerp.com>
-
- Jun 23, 2021
-
-
Stéphane Bidoul authored
When a custom module is in 'to upgrade' state, and the code has a dependency that is not yet installed, Odoo refuses to upgrade it, and says the new dependency is unmet. This commit fixes this by also calling button_upgrade() in this situation, and not only for modules in 'installed' state. This situation arises in a version migration scenario. Custom modules are in 'to upgrade' state after migration. If one of these custom modules has a new dependency after migration, it refuses to upgrade. closes odoo/odoo#72661 Signed-off-by:
Adrian Torres (adt) <adt@odoo.com>
-
- Jun 28, 2021
-
-
yhu-odoo authored
A kits bom has a component but qty is 0. When sale this kits, the 0 qty component won't be delivered, and the delivered qty of the kits will always be 0. To fix it, we don't find a stock.move and bypass the quantity check since the stock.move are not generated when bom line quantities are 0. Task-2580118 PR #72637 Signed-off-by:
Arnold Moyaux <amoyaux@users.noreply.github.com>
-
- Mar 08, 2021
-
-
Mohammed Shekha authored
before this commit: when switching to form view from listview using Create button and then activate some other tab and Discard that record which will move back user to list view now again clicking Create button opens form view but active tab is last activated form tab instead of first one, this is because of local state is not cleared. after this commit: when form view is switched back to list view using Discard button, local state will be cleared, here we are explicitly removing 'active' class from all tab and pages of all notebooks. task-2466057 closes odoo/odoo#67241 Signed-off-by:
Simon Genin (ges@odoo) <ges@odoo.com>
-
- Jun 28, 2021
-
-
Mohammed Shekha authored
Before this commit: calendar view sidebar filter names were getting cropped at bottom, it is because of line-height property which is set to 1. After this commit: calendar view sidebar filter names will not be cropped as line-height property set to 1.5. task-2519813 closes odoo/odoo#72879 X-original-commit: 4e24df71 Signed-off-by:
Simon Genin (ges@odoo) <ges@odoo.com>
-
yhu-odoo authored
To reproduce: 1. set WH receipt in 3 steps 2. create a "receipt in 2 steps" route for product 3. create a PO with product "receipt in 2 steps" In inventory, we will see this product still follow the "receipt in 3 steps" route. This is caused when we create move for PO, we prepare the route_ids according to warehouse's route_ids. After the move has it's own route_ids, it will not search for route set on product or product category (which should has higher priority over warehouse route). To fix it, we remove the route_ids when create the move for PO. A route will be found when the move being comfirmed. Task 2448439 PR #65509 Signed-off-by:
William Henrotin <Whenrow@users.noreply.github.com> backport of af9b9267 closes odoo/odoo#72874 Signed-off-by:
Arnold Moyaux <amoyaux@users.noreply.github.com>
-