-
-
Notifications
You must be signed in to change notification settings - Fork 338
[18.0][IMP] mgmtsystem* #753
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
base: 18.0
Are you sure you want to change the base?
Conversation
2c63687 to
4af52de
Compare
|
|
I made it work without this extra module to avoid breaking installations. The module should appear in 19. I think both have sense together. Some departments might have their own way for documentation. it is true about the new button. I will try to find an option for it 🤔 |
4af52de to
9ded0a3
Compare
|
two of your comments have been attended. For the first two, well, I think that the current approach is correct. If you want to avoid buttons, we can do a new desplegable button, but I would expect to have both systems active. |
|
I am not sure to follow: You either manage the content in Odoo or outside. You can't select both. One of the requirements of most standards is to centralize things. |
|
I disagree. systems ask for order, no centralization. It is usual to have everything centralized, but it is not a requirement. |
|
My 2 cents here. This change (split) would make it cleaner for users who keep their documentation in another system. I can see the benefit of being able to use both link to external files AND a document.page. However, in a controlled environment, it is the difference of having a draft document in odoo with which other users can interact (primarily via the chatter) to a draft .doc file a user uploaded "in a hurry" breaking the document contribution and collaboration procedure. At an extra point, I would wonder: If document.page is not required, wouldn't it be possible to reuse ir.attachment with link type instead of creating a new model? |
|
just to be clear, I am not using files, I am personally using a git repo for the documentation for some reasons:
I understand that the wizards are not optimal, but was a first solution and I can make improvements to avoid it. I was just showing the main concept here. About using one or another, we can simplify it by setting the type as a model, making it archivable and avoiding future issues. I know that it is not optimal right now, but I am talking about the concept mainly. If it is OK for you, I can proceed with these changes |
I've also somewhat tried to do this in odoo. So far I got to auto-create an index page (with versions, dates and authors) in each page category that works smoothly.
I totally agree. I pushed a PR trying to make the diff easier to use but had mixed results. And Odoo writing to and reformatting the tags behind the scenes makes it almost useless.
Indeed this is a pain point in Odoo. 8/10 times for whatever reason, a new draft is created when a user opens a document. How about mgmtsystem.document inheriting document.page via delegation (aka _inherits)? P.S. We have been using Odoo for all documention and management system requirements since v8 in our company with high success BUT with equally high pain regarding document.page, so I strongly believe knowledge and mgmtsystem would benefit from any extra love :) I'll be available, should you want it, for any extra feedback, testing, etc. And lastly, thank you for you efforts! |
|
_inherits is not an option, because that would mean that all mgmtsystem.document generate a document.page. The only option I find for this is to create a Another option would be to embed the data there, but I am not 100% sure if that will work correctly. About the diff on document pages. Have you ever thought of transforming the HTML to markdown and do the diff there? Just to be clear, by using sphinx, we have several improvements, like cross references, using extensions to simplify everything (for example, you can use sphinx_needs) and generation to PDF natively by using Latex. On a tech company, it is quite easy to use this kind of tools (more natural than document.pages). It is not for all the companies, but it has its target. |
Is this really the case even when no delegated fields are displayed on the form? Didn't remember that.
I'm out of the office for a few days. I can study this option once I get back.
In fact, I did at some point in v8 but didn't want to bring extra dependencies and don't have much experience with MD.
I fully understand and agree. Back in 2012, before we delved in odoo, we kept all ISO documentation and records in tiki wiki. I still miss some of its features, and continuous problems with html in odoo fields make me wonder sometimes if it's worth the pain to have a consolidated system. |
|
@max3903 @pedrobaeza your thoughs would be welcomed in this topic before digging more in it 😄 |
|
@OCA/management-systems-maintainers What do you think about this? |
|
I have tried in runboat and right now seems confusing how to link that documents. |
|
Ok, after giving a 2nd thought I think I can do the following to solve all the issues:
Changes might be less aggressive this way |
|
For 2: OCA/knowledge#563 @pedrobaeza @max3903 Do you see it cleaner now? |
|
OK, this sounds better. |

This is a Proof of Concept.
We are creating a new model to link documentation of the mgmtsystem. In 18, we are doing some hooks for making it work without extra modules, but in 19, we should split in 2 modules to make the functionality work better.
Todo:
Now, documents can have severel "types" and a kind (Manual, PRocedure...)
When clicking on them, Odoo is able to decide if it should open a Document page or this registry:
To make the navigation natural, I did the following in nonconformities:
(you need to press the button to open it)
@max3903 @ValentinVinagre can you make a functional test? Right now, I have only done nonconfomities.