• Vincent Pelletier's avatar
    ERP5Site: Improve getDefaultModule*. · 0d9c6e7c
    Vincent Pelletier authored
    Add support for visibility checking.
    Use portal_type accessors, not properties.
    Also, original implementation of getDefaultModuleId would get the object,
    then its id. getDefaultModuleValue using it, it was getting the object,
    then its id, then the object again...
    Also, follow naming convention: getters returning documents are named
    getXxxValue, not getXxx.
    0d9c6e7c
testERP5Core.py 23.5 KB