Thursday, March 5, 2020
18 changes · master
Enhancements to existing features
The email campaign overview cards now have a more consistent bottom section that matches other Odoo screens. User avatars are shown as round images, making the interface look cleaner and more polished.
Original PR description
This commit improves the bottom section of the mailing.mailing kanban view to make it follow other kanban views structure. It makes the user avatar on the mailing.mailing kanban display in a round shape instead of a square (with border-radius). LINKS Task ID 2207856 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
The website shop confirmation text was rewritten to read more naturally and logically. This improves the customer checkout experience by making the information shown after purchase easier to understand.
Original PR description
The sentence was a bit odd before this commit. After this commit it reads easier and it is more logical. -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
The Sales module now uses a clearer name for the email template that adds online sign and pay buttons to quotations. This makes the template easier for teams to identify and manage without changing customer-facing sales behavior.
Original PR description
PURPOSE The purpose of this commit to change the name of view in xml file in slale module. SPECIFICATIONS In Sale, there is a view called oezirhgoi which adds the sign and pay online buttons so we rename the templte "view and pay". LINKS PR#46954 Task:2196751
Resolved issues and error corrections
This update removes leftover support for an old way of loading Odoo add-ons. It keeps the codebase aligned with the current supported import method, reducing maintenance risk without changing normal user workflows.
Original PR description
Historically, it was possible to import addons via a naked import. It is no more possible since 9e1f13bac, since that commit, the only possible way to import odoo addons is via the `import odoo.addons' prefix.
Miscellaneous changes
-- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr Forward-Port-Of: odoo/odoo#46971 Forward-Port-Of: odoo/odoo#46892
Original PR description
-- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr Forward-Port-Of: odoo/odoo#46971 Forward-Port-Of: odoo/odoo#46892
This fix gives Odoo fields safe default labels when they are inspected outside the normal application environment. It prevents a rare infinite loop that could occur in developer or diagnostic scenarios, improving stability without changing everyday business workflows.
Original PR description
From python code, import a module class and print one of its field, it creates an infinite recursion due to `model_name` and `name` field attributes being accessed by `__str__` but only being set when accessing a model through the environment. This commit provide a default values for the field name and the field model name to prevent that infinite recursion.
CRM lead forms now rely on standard layout styling so longer field labels display more reliably. This reduces visual breakage in the form and makes the interface easier to maintain over time.
CRM demo records were corrected so lead conversations show messages from the right contact rather than another user. This makes sample CRM data clearer and avoids confusion when evaluating or demonstrating lead communication history.
Original PR description
Purpose Clean CRM demo data. Specifications In the chatter of few leads, there are wrong entries in the discussion due to incorrect demo data. Goal of this commit is to improve incorrect demo data. LINKS PR #44253 Task 2180228
An internal setup test was corrected so it runs under the intended schedule instead of running all the time. This helps prevent unnecessary test failures caused by moved documentation pages, improving reliability for ongoing development.
Original PR description
The tag "nightly" is not an actual thing, so the test gets run all the time, and since the taxcloud page has been moved it now breaks. Replace by the proper tag.
This fixes an internal Helpdesk test so it only runs in the intended test schedule. It prevents unrelated website documentation changes from causing unnecessary test failures, helping keep development checks stable.
Original PR description
The tag "nightly" is not an actual thing, so the test gets run all the time, and since the taxcloud page has been moved it now breaks. Replace by the proper tag.
A horizontal scroll appears on medium to large screen sizes in the form's chatter sidebar (e.g. between 1534px and 1619px, when all modules are installed). This commit restores the padding set by Bootstrap for `.nav-link` elements instead of a fraction of the grid gutter's (?) width then applying slightly smaller padding. Task ID: 2193950 Forward-Port-Of: odoo/odoo#46854 Forward-Port-Of: odoo/odoo#44932
Original PR description
A horizontal scroll appears on medium to large screen sizes in the form's chatter sidebar (e.g. between 1534px and 1619px, when all modules are installed). This commit restores the padding set by Bootstrap for `.nav-link` elements instead of a fraction of the grid gutter's (?) width then applying slightly smaller padding. Task ID: 2193950 Forward-Port-Of: odoo/odoo#46854 Forward-Port-Of: odoo/odoo#44932
Forward-Port-Of: odoo/odoo#46887
Original PR description
Forward-Port-Of: odoo/odoo#46887
Update the account_invoice_extract module to work with newer version of pdf.js ( odoo/odoo#40917 ) task-2198662 Forward-Port-Of: odoo/enterprise#9017
Original PR description
Update the account_invoice_extract module to work with newer version of pdf.js ( odoo/odoo#40917 ) task-2198662 Forward-Port-Of: odoo/enterprise#9017
Call read_group on planning slot, grouping by employee with `start_datetime` in the domain and the value being a datetime object. e.g. ```python self.env['planning.slot'].read_group( [('start_datetime', '>', datetime.now())], ['employee_id'], ['employee_id'], ) ``` The group_expand method crashes because it assumes the value is a string whereas it can be a date or datetime object. Note: a datetime object is an instance of date ```python from datetime import date, dateti
Original PR description
Call read_group on planning slot, grouping by employee with `start_datetime`
in the domain and the value being a datetime object.
e.g.
```python
self.env['planning.slot'].read_group(
[('start_datetime', '>', datetime.now())],
['employee_id'],
['employee_id'],
)
```
The group_expand method crashes because it assumes the value is a string
whereas it can be a date or datetime object.
Note: a datetime object is an instance of date
```python
from datetime import date, datetime
dt = datetime.now()
isinstance(dt, date)
>>>True
```
Forward-Port-Of: odoo/enterprise#9009A horizontal scroll appears on medium to large screen sizes in the documents' chatter sidebar. This commit fixes it by correctly converting unapplied `right` CSS rules to their equivalent `margin-right` values. Also, it gives a little more space to the chatter by raising its width from 450px to 525px. Task ID: 2193950 Forward-Port-Of: odoo/enterprise#9005 Forward-Port-Of: odoo/enterprise#8984
Original PR description
A horizontal scroll appears on medium to large screen sizes in the documents' chatter sidebar. This commit fixes it by correctly converting unapplied `right` CSS rules to their equivalent `margin-right` values. Also, it gives a little more space to the chatter by raising its width from 450px to 525px. Task ID: 2193950 Forward-Port-Of: odoo/enterprise#9005 Forward-Port-Of: odoo/enterprise#8984
Steps to reproduce the bug: - Let's consider an asset type AT with method_number = 5 - Create an asset A and change the method_number to 4 - Export A in a csv file F (with Number of depreciations in the exported fields) - Import F Bug: The method number was equal to 5 instead of 4. opw:2192296 Forward-Port-Of: odoo/enterprise#8551 Forward-Port-Of: odoo/enterprise#8488
Original PR description
Steps to reproduce the bug: - Let's consider an asset type AT with method_number = 5 - Create an asset A and change the method_number to 4 - Export A in a csv file F (with Number of depreciations in the exported fields) - Import F Bug: The method number was equal to 5 instead of 4. opw:2192296 Forward-Port-Of: odoo/enterprise#8551 Forward-Port-Of: odoo/enterprise#8488
Steps to reproduce the bug: - Install Purchase, Sales (Inventory) - Create Company A, Company B (Mitchell Admin has access to both) - In both companies: General Settings/check Inter-Company Transactions Synchronize sales/purchase orders - Sales Team, restrict company_id of Europe to Company A - Create a (storable) product P with Inventory/MTO route and Purchase/Vendor Company B - Create a SO in A with P, confirm - Run scheduler to trigger a PO for P - Confirm the PO Bug:
Original PR description
Steps to reproduce the bug: - Install Purchase, Sales (Inventory) - Create Company A, Company B (Mitchell Admin has access to both) - In both companies: General Settings/check Inter-Company Transactions Synchronize sales/purchase orders - Sales Team, restrict company_id of Europe to Company A - Create a (storable) product P with Inventory/MTO route and Purchase/Vendor Company B - Create a SO in A with P, confirm - Run scheduler to trigger a PO for P - Confirm the PO Bug: An access error was raised because the new SO in Company B was created with team_id = Europe. opw:2176346 Forward-Port-Of: odoo/enterprise#8804
Steps to reproduce the bug: - Install l10n_ar_reports - Go to Accounting>Reporting>Purchases VAT book - Print the report Bug: The Sales VAT book was printed opw:2197740 Forward-Port-Of: odoo/enterprise#8540 Forward-Port-Of: odoo/enterprise#8534
Original PR description
Steps to reproduce the bug: - Install l10n_ar_reports - Go to Accounting>Reporting>Purchases VAT book - Print the report Bug: The Sales VAT book was printed opw:2197740 Forward-Port-Of: odoo/enterprise#8540 Forward-Port-Of: odoo/enterprise#8534