[jira] [Created] (OFBIZ-6565) Extend EntityLabels in hot-deploy directories

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Created] (OFBIZ-6565) Extend EntityLabels in hot-deploy directories

Nicolas Malin (Jira)
Jean-Luc Malet created OFBIZ-6565:
-------------------------------------

             Summary: Extend EntityLabels in hot-deploy directories
                 Key: OFBIZ-6565
                 URL: https://issues.apache.org/jira/browse/OFBIZ-6565
             Project: OFBiz
          Issue Type: Improvement
          Components: ALL COMPONENTS
    Affects Versions: 13.07.02, Trunk
            Reporter: Jean-Luc Malet
            Priority: Minor


I would like to add some new entities labels in OFBiz in a new functionality in hot-deploy.
For example, I have to create a new status in StatusItem : QUO_IN_CREATION with the description in english and french like that :
    <property key="StatusItem.description.QUO_IN_CREATION">
        <value xml:lang="en">In Creation</value>
        <value xml:lang="fr">En Création</value>
    </property>      
But I would not add this properties key in the OrderEntityLabels.xml directly in ofbiz but just make an extend of OrderEntityLabels.xml in my hot-deploy directory. But I can't !! Because in the description of the entities, there is only one file for the ressource of labels :
 default-resource-name="OrderEntityLabels"

I think it could be a real improvement to authorize the fact to link more than only one entity label resource at an entity.
The solution could be to extend an entity in hot-deploy (already exist for fields) and link an other entity label resource like that :
 <extend-entity entity-name="StatusItem" default-resource-name="NewSalesEntityLabels"/>
Actually I tried that and I have only the labels of my file. I think it could be better to remove default and just put :
 <extend-entity entity-name="StatusItem" resource-name = "NewSalesEntityLabels"/>
The best of the best is that we can extend more than one time the entity to extend on several files the entity label resource.

Do not hesitate to contact me for any questions.

Thanks.
 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)