Most Powerful Open Source ERP

Guideline Include Module Base Categories In Business Template

They will not be created automatically.
  • Last Update:2017-10-30
  • Version:001
  • Language:en

Include Module Base Categories In Business Template

Rationale: When creating a module in ERP5, the module's portal type will be attributed with certain base categories by default. These base categories need to be declared manually in the business template (using "Base Categories" from the "Portal Types" view) or need to be guessed by using the action Guess properties of Portal Types after adding the module's portal type to the business template.

Good Example:

bt5 "erp5_foo" declares in its "Base Categories" field in the "Portal Type" view:
  Foo Module | base_application
calling foo_module.setBaseApplication('CRM') in a configuration script works

Bad Example:

bt5 "erp5_foo" declares in its "Base Categories" field in the "Portal Type" view:
  Foo Module
calling foo_module.setBaseApplication('CRM') in a configuration script returns an AttributeError