Friday, April 16, 2021
11 changes · master
Enhancements to existing features
The Chilean electronic stock documents and US 1099 localization modules now use the updated module icon. This keeps the app list visually consistent and easier to recognize for users browsing localization tools.
Original PR description
Purpose of the task is to update remaning l10n modules icon with new icon. So in this commit, Updated remaning l10n modules icon with new icon. TaskID: 2497322
Belgian payroll contracts now record the employee's age at the time the contract is created. This helps HR teams quickly choose the correct impulsion plan when age-based eligibility matters.
Original PR description
Add the employee's age at contract creation to have a fast way to select the right impulsion plan if necessary. Task ID: 2504458
The calendar event form has been adjusted to stay consistent with recent changes to the calendar layout. This helps ensure appointment-related information remains visible only to the right users after fields were moved between tabs.
Original PR description
# Purpose Adapt the calendar event view with the calendar changes # Specifications Since the tab "Misc" was removed and the user_id field moved in another tab, we need to add the groups attribute for the field appointment_type_id. task-2196775
Features or functions removed from Odoo
Unused Belgian payroll logic for an obsolete reimbursed amount field was removed, along with related test data and tests. This cleanup reduces maintenance effort without changing expected payroll behavior for users.
Original PR description
Remove dead code and its related tests. Task Id: 2496602
Miscellaneous changes
Steps: - Install data_merge, product - Go to Data Cleaning / Configuration / Rules / Deduplication - Create a new rule: - Model: Product - Deduplication Rules: - Barcode (product.product) - Deduplicate Bug: UserError: Missing required PostgreSQL extension: unaccent Explanation: Whenever the SQL query is not valid, a UserError is raised claiming that the extension `unaccent` is missing. This commit raises the original error if it has nothing to do with missing this exten
Original PR description
Steps:
- Install data_merge, product
- Go to Data Cleaning / Configuration / Rules / Deduplication
- Create a new rule:
- Model: Product
- Deduplication Rules:
- Barcode (product.product)
- Deduplicate
Bug:
UserError: Missing required PostgreSQL extension: unaccent
Explanation:
Whenever the SQL query is not valid, a UserError is raised claiming that
the extension `unaccent` is missing.
This commit raises the original error if it has nothing to do with
missing this extension.
The original error was due to the fact that the model has a `company_id`
field, but it's inherited.
This commit uses the ORM to rework the query and add inherited tables.
This should work since we filter out the non-stored related fields:
https://github.com/odoo/enterprise/blob/74efaf093b44d224dd4fd4868de595269099b2c6/data_merge/models/data_merge_rule.py#L13-L15
opw:2476683
Forward-Port-Of: odoo/enterprise#17404The custom Intrastat report for the Netherlands localization showed the wrong sign (- instead of +) on some of the lines. In v13.0, the field account_invoice.amount_total_signed became account_move.amount_total_signed, but the computed value has shifted from being negative on refunds only, to be negative for every move that has move_type != 'entry'. This behaviour wasn't taken into consideration in the intrastat report. Ticket link: https://www.odoo.com/web#model=project.task&id=24802
Original PR description
The custom Intrastat report for the Netherlands localization showed the wrong sign (- instead of +) on some of the lines. In v13.0, the field account_invoice.amount_total_signed became account_move.amount_total_signed, but the computed value has shifted from being negative on refunds only, to be negative for every move that has move_type != 'entry'. This behaviour wasn't taken into consideration in the intrastat report. Ticket link: https://www.odoo.com/web#model=project.task&id=2480243 opw-2480243 Forward-Port-Of: odoo/enterprise#17722
The tests are failing because the data on the expected XML was not updated with the mandatory fields that have being updated lately. Related to the data uploaded to this PR https://github.com/odoo/enterprise/pull/17188/files Forward-Port-Of: odoo/enterprise#17743
Original PR description
The tests are failing because the data on the expected XML was not updated with the mandatory fields that have being updated lately. Related to the data uploaded to this PR https://github.com/odoo/enterprise/pull/17188/files Forward-Port-Of: odoo/enterprise#17743
a.- SPOT: AKA Witholding peruvian system [Detracciones]. For perú if you do an invoice above 700 Soles you need to inform the customer how much is the withholding that must be done. This withholding is an actual payment that must be done to the **Banco de la Nación** to an account that must be informed in the document as a paymentMean. Source: https://orientacion.sunat.gob.pe/index.php/empresas-menu/regimen-de-detracciones-del-igv-empresas/como-funcionan-las
Original PR description
a.- SPOT: AKA Witholding peruvian system [Detracciones].
For perú if you do an invoice above 700 Soles you need to
inform the customer how much is the withholding that must be done.
This withholding is an actual payment that must be done to
the **Banco de la Nación** to an account that must be informed
in the document as a paymentMean.
Source:
https://orientacion.sunat.gob.pe/index.php/empresas-menu/regimen-de-detracciones-del-igv-empresas/como-funcionan-las-detracciones
b.- Resolution: N.º 000193-2020/SUNAT
For now the fields are only observations but from Sept 01
will be mandatory (Article 1).
Source:
https://www.sunat.gob.pe/legislacion/superin/2020/193-2020.pdf
Forward-Port-Of: odoo/enterprise#17569
Forward-Port-Of: odoo/enterprise#17188Forward-Port-Of: odoo/enterprise#17586 Forward-Port-Of: odoo/enterprise#17578
Original PR description
Forward-Port-Of: odoo/enterprise#17586 Forward-Port-Of: odoo/enterprise#17578
The XE.COM /currencytables/ page seems to have been updated with: - change to structure - update that are daily with delay before rate is shown This commit change code to adapt to new HTML structure. opw-2502881 opw-2503161 opw-2504585 opw-2507051 opw-2503944 opw-2507736 opw-2507512 opw-2507967 opw-2507459 opw-2506940 Forward-Port-Of: odoo/enterprise#17666
Original PR description
The XE.COM /currencytables/ page seems to have been updated with: - change to structure - update that are daily with delay before rate is shown This commit change code to adapt to new HTML structure. opw-2502881 opw-2503161 opw-2504585 opw-2507051 opw-2503944 opw-2507736 opw-2507512 opw-2507967 opw-2507459 opw-2506940 Forward-Port-Of: odoo/enterprise#17666
Hong Kong doesn't have zip codes, so we have to remove it from required_fields for UPS opw-2495248 Forward-Port-Of: odoo/enterprise#17577
Original PR description
Hong Kong doesn't have zip codes, so we have to remove it from required_fields for UPS opw-2495248 Forward-Port-Of: odoo/enterprise#17577