Monday, July 11, 2022
5 changes · master
Resolved issues and error corrections
This fixes an internal testing issue in the Accounting app where invoice tests could fail because a required unit-of-measure field was hidden for the test user. The change helps keep accounting invoice validation reliable during module builds without affecting day-to-day user workflows.
Original PR description
For a non well identified reason, the user doesn't have the uom group to see the field during the single module build. This commit adds the group to the user to make it visible during the test as a simple fix.
This fixes display issues in the website editor's media selection window after a recent framework upgrade. Users should see the file selector and media search controls align correctly again, improving the editing experience without changing functionality.
Original PR description
Since BS5 migration [1], `form-inline` and `custom-control` classes are no more available. So we use `row` and `col` instead. Also, we have unwrapped `input-group-append` has it's not more required in BS5. [2] Refs: [1] odoo/odoo#95450 [2] https://getbootstrap.com/docs/5.1/migration/#forms -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
This fix restores the expected text coloring in striped tables after the Bootstrap 5 update. It ensures list views keep their visual cues and remain easy to read for users.
Original PR description
In BS4 text color wasn't defined for `table-striped`. In BS5 color text decorations in list views was broken because of BS5 sets the color of all `td` in a stripped table. Now we simply override the value of the variable to inherit. -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
Invoice OCR processing has been restored for users who do not have full accounting feature visibility. This prevents invoice extraction from failing when the system needs to update hidden accounting lines behind the scenes, keeping the OCR workflow working as it did before.
Original PR description
This follows revision odoo/odoo@5ccc32fcf72cbfb6bb077d99a7657416c502aac1 Before the above revision, the invoice OCR extraction was working even for a user which did not have the accounting features…
This follows revision
odoo/odoo@5ccc32fcf72cbfb6bb077d99a7657416c502aac1
Before the above revision,
the invoice OCR extraction was working
even for a user which did not have the
accounting features group
(at least Show Accounting Features - Readonly)
The code is editing the invoice move lines even
if they are invisible, which is not possible
in a real form view.
However, as here the goal is not to test the form view
behavior, we can bypass this invisible mecanism
so the code works as before,
able to edit the move lines even if they are invisible
to the user executing the code.
```
odoo.addons.account_invoice_extract.tests.test_invoice_extract:285
FAIL: TestInvoiceExtract.test_multi_currency
Traceback (most recent call last):
File "/data/build/enterprise/account_invoice_extract/tests/test_invoice_extract.py", line 285, in test_multi_currency
invoice.with_user(test_user)._check_status()
File "/data/build/enterprise/account_invoice_extract/models/account_invoice.py", line 737, in _check_status
self._save_form(ocr_results)
File "/data/build/enterprise/account_invoice_extract/models/account_invoice.py", line 869, in _save_form
with move_form.line_ids.edit(i) as line:
File "/data/build/odoo/odoo/tests/common.py", line 2619, in edit
self._assert_editable()
File "/data/build/odoo/odoo/tests/common.py", line 2540, in _assert_editable
assert not self._parent._get_modifier(self._field, 'invisible'),\
AssertionError: field line_ids is not visible
```The payroll dashboard display has been adjusted so batch payslip counts stay on one line and notes have clearer spacing. This improves readability and keeps the dashboard looking consistent after the interface framework update.
Original PR description
task-2908993