Main (#1) - Part to Doc link lost when promoting (#80) - Message List

Part to Doc link lost when promoting
 unsolved

On OpenPLM v1.2 when I promote a document that is linked to a part, the link is lost. I cannot promote part because it has not document attached and I cannot cancel or demote document. I get the following error: LifecycleStates? matching query does not exist

The default lifecycle for parts contains the following stages: Design In Progress Ready For Tooling Ready For Preproduction Ready For Production

This is also the lifecycle of a Document created from the DOC CAD tab of a part, but when promoted the link with the par is lost.

The only way to recover the link between a part and a doc is to create a document from the main page (not linked to a part), in this case the Lifecycle is different: Draft => Official => Deprecated

This document can be linked to the part, then promoted to Official, which allows promotion of the part up to the same level of the document with which the link was lost. Then the link is recovered.

There seems to be inconsistencies in the lifecycle definition.

It is like if ./manage.py loaddata extra_lifecycles has not really installed the extra life cycles everywhere.

  • Message #226

    It has installed extra life cycles.

    OpenPLM is PLM framework. We though some standard behaviors and, out of them, some "inconsistencies" may appear.

    I can say that standard lifecycles for :

    • Documents is Draft => Official => Deprecated
    • Parts it can be both Draft => Official => Deprecated OR Design In Progress => Ready For Tooling => Ready For Preproduction => Ready For Production

    Reading at your topic, it seems you used Design In Progress => Ready For Tooling => Ready For Preproduction => Ready For Production for Documents and it was not designed for and, therefore, your issue appears.

    Then, you used Draft => Official => Deprecated for Documents and it was designed for and it did work.

    • Message #227

      The recommended installation procedure creates the extra life cycles for parts.

      The thing is that when I create a Document from the DOC CAD tab of a Part the extra life cycles appears and when I create a Document from the home page or the navigate the standard cycle appears.

      The result is that now I have replicated documents with different lifecycles. Could you kindly explain me how can I set up standard cycle on the DOC CAD tab and how can I completely remove the documents created with the extra life cycles? Thanks

      • Message #228

        Could you kindly explain me how can I set up standard cycle on the DOC CAD tab

        To do that, you need to modify python script.

        See documentation :  http://wiki.openplm.org/docs/2.0/en/devel/modules/views.html?#plmapp.views.main.create_object

        In this function, you need to detect if the created PLMObject will be a Document and if it is a Document then get the lifecycle you want and associate to it.


        and how can I completely remove the documents created with the extra life cycles?

        Go to the admin page :  http://your_openplm_server_adress/admin/

        Then log with your admin username/password (the one you created when you typed ./manage.py syncdb). Then go to the documents and delete those you want to.

        Thanks.

        • Message #229

          Unfortunately I am not a Python programmer and I am not familiar with the variables and functions used, so I don't know how I could implement this functionality. But I am a bit amazed to find this bug. For me this means that the DOC-CAD tab is unusable in the default OpenPLM installation which uses extra lifecycles.

          • Message #230

            Based on my experience, I think almost none of the PLM projects use out of the box PLM softwares. They all need specific developments and customizations.

            OpenPLM is an open source PLM framework.

            In our case, you're free to download the framework but you need to keep in mind that some developments and customizations tasks are necessary. All your budget is dedicated to that and nothing else.

Attachments

No attachments created.