-
-
Notifications
You must be signed in to change notification settings - Fork 377
[IMP][9.0] Change Requests and workflow improvements on documents #155
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
@max3903 I've noticed you've migrated this modules to 10.0. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
1 pull request for each module would have been nice and easier to review the code.
|
Yes, you are right. Sorry about that. |
…mputed where possible. Fix search views, store some fields to make them searchable, added filters
| for page in self: | ||
| if page.type == "category": | ||
| display_content = self._get_page_index(page, link=False) | ||
| @api.multi |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use api.depends for this compute field.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since it's not stored, I think it's not actually needed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've just checked and indeed I've already added depends here: dbeec6e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@zaoral where you able to look at this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ivantodorovich yes thank you for apply the api.depends. LGTM
| rec.display_content = rec.content | ||
|
|
||
| @api.multi | ||
| def _compute_content(self): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same here
| create_uid = fields.Many2one('res.users', "Modified By") | ||
| diff = fields.Text(compute='_compute_diff') | ||
|
|
||
| @api.multi |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ivantodorovich I think we still need an api.depends here, no?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since it's not stored, it's actually not needed.
Function gets called every time you access the field.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just in case, just added it.
|
Is this ready to merge or do we need more reviews? |
[10.0][IMP] document_page: Change Requests and workflow improvements on documents (#155)
…proval [IMP][10.0][document_page_approval] Change Requests and workflow improvements on documents (#155)
…ovements on documents (OCA#155)
…ovements on documents (OCA#155)
…ovements on documents (OCA#155)
…ovements on documents (OCA#155)
* [UPD] README.rst * Translated using Weblate (Portuguese (Brazil)) Currently translated at 93.9% (31 of 33 strings) Translation: knowledge-11.0/knowledge-11.0-knowledge Translate-URL: https://translation.odoo-community.org/projects/knowledge-11-0/knowledge-11-0-knowledge/pt_BR/ * [ADD] document_page from odoo/7.0 * use new API * [FIX+IMP] document_page: * Add dependency to knowledge * Adding hack in document_page_history to allow calling method that don't exists * document_page_history don't have _sql attribute * Filter more fields * Slovene translations added * [FIX+IMP] document_page: * Changed history widget to html. * Improved views and added followers to pages. * Updated document_page pot and es translations. * document_page:^Cissing dependency. * Translations sync with templates * [MIG] document_page: Migration to 9.0 * [MIG] document_page: Migration to version 10.0 (OCA#120) * [MIG] Migration to version 10.0 * [FIX] Comments and CI errors * [FIX] ValueError: External ID not found in the system: base.menu_base_partner * [FIX] ValueError: Wrong value for ir.actions.act_window.target: 'inlineview' * [FIX] Based on @lasley comments * [FIX] External ID not found in the system: base.group_document_user * [IMP][10.0][document_page] Change Requests and workflow improvements on documents (OCA#155) * OCA Transbot updated translations from Transifex * [MIG] document_page: Migration to 11.0 * [MIG] document_page: Migration to 11.0 continue migration * [UPD] Update document_page.pot * create document_page_approval module (../7.0pageapproval/ rev 1) fix status bar in page approval (../7.0pageapproval/ rev 2) change approval workflow in page history and started to add showing approved page in normal page (../7.0pageapproval/ rev 3) show last approved content and aproved by (../7.0pageapproval/ rev 4) Fix bug on page creation (../7.0pageapproval/ rev 5) add status in history tree view (../7.0pageapproval/ rev 6) add a need approval field and hide the workflow when no approval needed (../7.0pageapproval/ rev 7) add access validation to approval (../7.0pageapproval/ rev 8) give rigth to Page aprover group on the page_history model and hide the button for unallowed group thought the security isn't enforced a the orm level (../7.0pageapproval/ rev 9) made invisible the prover group when not needed (../7.0pageapproval/ rev 10) add email to aprovers group's members (../7.0pageapproval/ rev 11) * [IMP] Documentation [ADD] Translation file + french [FIX] employee_id field does not exist [FIX] user_email field deprecated * [IMP] Split long lines * [ADD] Images * Fix pep8 * Set document_page_approval as unported * Slovene translation added * [IMP] - Changed string from email template. * [FIX] - document-page-approval: Fixes OCA#60 url not valid when website module is installed. * [UPD] prefix versions with 8.0 * [MIG] Make modules uninstallable * OCA Transbot updated translations from Transifex * [FIX] remove en.po that was erroneously created by transbot * [MIG] document_page_approval * [IMP][10.0][document_page_approval] Change Requests and workflow improvements on documents (OCA#155) * [FIX] View * remove obsolete .pot files [ci skip] * start porting fix act_draft and minor ui fix remove unused variables change order of xml data files * Comment workflow that cause the error It should work but further errors could help understand what's going Commented other necessary part Add back workflow Add dependency to knowledge * [IMP] - Improved views to match document_page improvements. [IMP] - Added notification to followers when a new version is approved. * [ADD] - Updated document_page_approval pot and added es translations. [IMP] - document_page_approval: Updated spanish translation. * Translations sync with templates Translations and templates sync Updated languages * document_page_approval migration from Odoo 8.0 to Odoo 9.0 Lint error corrected test improved lint error corrected in test file readme corrected test improved test of document page history workflow added CI error corrected dreipst comment Migration to new api improved in model's file and data tag remove in xml file code totally migrate to odoo 9.0 api * test bug fixed test error fixed Lint error improved * [MIG] Make modules uninstallable [MIG] Rename manifest files * [ADD] setup.py * [MIG] document_page_approval: Migration to 11.0 * [UPD] Update document_page_approval.pot
…ovements on documents (OCA#155)
…ovements on documents (OCA#155)
…ovements on documents (OCA#155)
…ovements on documents (OCA#155)
…ovements on documents (OCA#155)
…ovements on documents (OCA#155)
…ovements on documents (OCA#155)
…ovements on documents (OCA#155)
…ovements on documents (OCA#155)
…ovements on documents (OCA#155)
…ovements on documents (OCA#155)
…ovements on documents (OCA#155)
…ovements on documents (OCA#155)
…ovements on documents (OCA#155)
…ovements on documents (OCA#155)
This PR introduces these changes to document_page and document_page_approval.
It's intended to improve document managing workflow, specially in the use-case of OCA/management-system
User experience changes
summary) to each review.templatefield to be used as a template for categories.diffis now css-styled and shown on email notificationsdiffcan also be viewed from the historySecurity
Backend changes
display_contentis deprecated. Replaced with justcontentas a computed field.oncascadewith pages.diffis now a computed field, not just a wizard.diffis now a little bit more readable by hacking in some new lines.name_getfordocument.page.historydocument_page_approvalsets all previous history toapprovedScreenshots