Thursday, October 20, 2022
4 changes · master
Code cleanup and technical improvements
The email module’s drag-and-drop file upload area was reorganized behind the scenes to make the code easier to maintain. This should not change day-to-day behavior, but it helps reduce unused logic and supports future improvements more safely.
Original PR description
Task-3004211
This update reorganizes internal mail and Discuss code so business rules live in shared models rather than screen components. It should make future maintenance and more advanced messaging features easier to deliver reliably, with little direct change expected for users.
Original PR description
Move code from components to models, so that eventually all the business logic is in models. The benefit of business code in models is to ease proper modelling of whole state of the discuss features,…
Move code from components to models, so that eventually all the business logic is in models. The benefit of business code in models is to ease proper modelling of whole state of the discuss features, which is highly desireable for easily maitainable code or to implement sophisticated features in a robust way. [[IMP] mail: move code to models (AttachmentViewer)](https://github.com/odoo/odoo/commit/32cdf1f2c3153ba4bc1014b0d6a9cd4856e9bbdb) Task-2996277 [[IMP] mail: Move code from components to models (DropZone)](https://github.com/odoo/odoo/commit/7a8998995e863aac1cba423ba96123b6166061e3) Task-3004211 [[IMP] mail: move code from components to models (ChatWindow)](https://github.com/odoo/odoo/commit/9891148736191c14e98591e5705646904bfd4e18) Task-3004259 [[IMP] mail: Move code from components to models (ChatWindowHiddenMenu)](https://github.com/odoo/odoo/commit/489c2542e78c196d3743678bf56e80c1ea30dc93) Task-3014736 [[IMP] mail: Move code from components to models (ChatWindowHiddenMenuItem)](https://github.com/odoo/odoo/commit/aa79d61f3e7d9a8ae0e405e46e3463bafe5635f2) Task-3004253 [[IMP] mail: pass only record as props (ChatWindowHeader)](https://github.com/odoo/odoo/commit/c3e7256798d5040d0a2787b847dcc0348f905ef4) Task-3001202 [[IMP] mail: Move code from components to models (MessageList)](https://github.com/odoo/odoo/commit/bc2262ee84c0195c2e1fad9bc1cd7eea4af5ce1e) Task-3004204
The mail app's message list handling was reorganized to move more behavior into shared data models. This should make the messaging area easier to maintain and less prone to future regressions, with little direct change for end users.
Original PR description
Task-3004204
The backend developer tutorials now use a standard README file and a consistent folder structure for model examples. This makes the learning materials easier to follow and better aligned with Odoo's documentation guidelines.
Original PR description
- [REF] doc: backend - Use README.rst instead of description
- [REF] doc: backend - Use models/models.py standard
- Because documentation uses "models/models.py" but the patch uses "models.py"
- <img width="1038" alt="screen shot 2017-07-17 at 00 49 58" src="https://user-images.githubusercontent.com/6644187/28256418-ed7779dc-6a87-11e7-8f25-c9e7cf962387.png">
- Because [odoo guidelines](https://www.odoo.com/documentation/10.0/reference/guidelines.html) explain `models/` folder.