Friday, August 20, 2021
8 changes · master
Enhancements to existing features
This update cleans up and standardizes the Ecuadorian electronic invoicing process, including supporting setup files and document handling. It helps improve maintainability and reduces the chance of configuration or formatting issues in the EDI workflow.
Original PR description
- Fix libraries definition on manifest - Run Flake8 and black on module l10n_ec_edi
This update adds clearer helper messages across Social Marketing and Marketing Automation menu pages. These messages guide users when pages are empty, making it easier to understand what to do next during onboarding.
Original PR description
PURPOSE Make sure all SM menu items have a proper action helper message. Specification: Current: There are not proper action helper for sm menus for proper onboarding. To Be: To add proper action helper message for better onboarding Task Id: 2584073 PR: #74082
Resolved issues and error corrections
Social form views now prevent clicks on engagement statistic buttons that do not open any action, avoiding a crash introduced after a recent interface update. Campaign forms also hide the engagement statistic when it is zero, keeping the view cleaner for users.
Original PR description
Since the latest OWL refactoring, stat-buttons "button" DOM element in form views cannot be defined without an associated action (it will crash on click). In the social module, we have 2 engagement fields for statistics, on social.posts and on social.campaigns. The engagement statistics are displayed using the style of a stat-button in those models' form views, but have no associated action. To fix the issue, we now mark the buttons as "disabled" so the click action will not trigger anything. We also took this opportunity to hide that statistic in the campaign form view when the value is 0. Task-2618108
Miscellaneous changes
In some cases, depending on how the `entry` and the `entry_details` are structured, the rate could not be detected correctly when the currency was different from th journal's currency. [opw-2618969](https://www.odoo.com/web#id=2618969&model=project.task) Forward-Port-Of: odoo/enterprise#20161
Original PR description
In some cases, depending on how the `entry` and the `entry_details` are structured, the rate could not be detected correctly when the currency was different from th journal's currency. [opw-2618969](https://www.odoo.com/web#id=2618969&model=project.task) Forward-Port-Of: odoo/enterprise#20161
Adds a test to ensure tax reports calculate taxable bases correctly when one tax affects the base for another and appears across multiple invoice lines. This helps prevent overstated tax bases and supports more reliable tax reporting.
Original PR description
The fix is on the related community branch. This is just adding a test for it.
1) Let's consider then following taxes
- tax 1, 42%, affecting the base
- tax 2, 10%
2) Create an invoice with the following lines, and post it:
- price=100, taxes=tax1
- price=100, taxes=tax2
- price=100, taxes=tax1+tax2
=> The tax details should compute the following amounts:
- base amount of tax 1: 200
- tax amount for tax 1: 84
- base amount of tax 2: 242
- tax amount for tax 2: 24.2
Before this fix, the base amount for tax 1 wasn't computed properly, and gave 300 instead of 200. This was because the same tax line (the one from tax1 with no tax_ids) was matching two different base lines: the one with tax1 and tax2, and the one with only tax1The pull request does not include changed files, commit messages, or a description, so the business impact cannot be determined. More information is needed to explain what changed and which Odoo areas are affected.
The extension was only added correctly when the `doc_name` was not provided. As a workaround, we could put the extension in the form, but it defeats the purpose of the wizard allowing to export multiple formats at the same time. Forward-Port-Of: odoo/enterprise#20164
Original PR description
The extension was only added correctly when the `doc_name` was not provided. As a workaround, we could put the extension in the form, but it defeats the purpose of the wizard allowing to export multiple formats at the same time. Forward-Port-Of: odoo/enterprise#20164
This reverts commit be8697c3d531decadbc4175fe5d0f8e3f7bb4647. The commit above does not actually solve the issue it was created for, instead it removes a feature we use to allow to force a car when signing new contracts. Reverting this commit while we find a better way to solve the issue, which is actually linked to not being able to sign with a forced car when no user has been created yet. Task ID: 2624963 See https://github.com/odoo/enterprise/pull/20116 Forward-Port-Of: odoo/ent
Original PR description
This reverts commit be8697c3d531decadbc4175fe5d0f8e3f7bb4647. The commit above does not actually solve the issue it was created for, instead it removes a feature we use to allow to force a car when signing new contracts. Reverting this commit while we find a better way to solve the issue, which is actually linked to not being able to sign with a forced car when no user has been created yet. Task ID: 2624963 See https://github.com/odoo/enterprise/pull/20116 Forward-Port-Of: odoo/enterprise#20254