Wednesday, October 23, 2019
2 changes · master
Enhancements to existing features
This update lets Odoo screens specify which file types should be accepted when users upload files. It improves the upload experience by guiding users toward the right format, such as XML files, and reducing accidental wrong-file selections.
Original PR description
Description of the issue/feature this PR addresses:
Offer users a better experince with specific file inputs.
Current behavior before PR:
It is not possible to adjust the accept attribute of the input.
Desired behavior after PR is merged:
`<field name="file_xml" widget="binary" filename="filename_xml" options="{'accept': 'text/xml'}" />`
--
I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-prTheme modules can now correctly keep their customization visibility setting during installation and updates. This prevents warning messages during setup and avoids update failures, making theme maintenance more reliable.
Original PR description
Before this commit, having a `customize_show` on an ir.ui.view record in a theme module would be ignored when creating the theme.ir.ui.view as the field would not exists. Actually it would log a warning on create (module install) and raise a traceback on module update (theme update).