Friday, December 11, 2020
4 changes · master
Resolved issues and error corrections
Archived course content no longer remains visible on the course page. This removes confusion for users by clearly separating active learning content from items that have been archived.
Original PR description
Purpose when user archive a course content, it's still visible on the course itself, without real difference between active content and archived. it was confusing. Specifications remove the active test from context the other part, the archive mechanism, is not that dumb, keep it PR #63092 task-id: 2411211 -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
Odoo now shows a clearer message when a computed field references a dependency that does not exist. This helps implementers and support teams identify configuration mistakes faster during module updates.
Original PR description
Create a model as follow:
class FooModel(models.Model):
_name = 'foo'
bar = fields.Char(compute="compute_bar")
@depends('bazz') # wrong dependency, bazz does not exist
def compute_bar(self):
for rec in self:
rec.bar = "Babar raconte des beaux bobards."
Uppon -u foo_module, a ValueError is rose for the invalid dependency
with the following message:
> Field foo.bar cannot find dependency bazz on model foo.
We had feedback the error message was not very clear to some users,
the new error message is:
> Wrong @depends on 'compute_bar' (compute method of field foo.bar).
> Dependency field 'bazz' not found in model foo.
Task: 2366612This update fixes issues in the website editor so certain page elements are saved reliably and the language selector cannot be accidentally edited. This helps prevent unintended changes when users edit website pages.
Mobile users are returned to the same spot on a page after closing a dialog or pop-up, instead of being sent back to the top. This reduces frustration and saves time when working through longer pages or records on a phone.
Original PR description
Before ======= If any dialog is opened on mobile, the 'modal-open' class is added to body and with that class, position of body is set to fixed, and so body is always scrolled to top. And so, after closing the dialog, user has to scroll again to the element s/he was viewing. Now ===== We store current scroll position for mobile view when opening a dialog, which helps to maitain scroll positionwhile closing a last visible dialog. Task Id: 2152130