Install categories via Spreadsheet instead use business templates
-
Owner
@rafael do you remember the reason for this ?
I feel it can be for unification of the code with consulting configurator (with consulting we upload a spreadsheet and categories come from the spreadsheet). There was also this idea that spreadsheet is the source of trust (we create business template by importing spreadsheet).
I was working on configurator to make
erp5_configurator_standard
installerp5_configurator_standard_categories
, becauseerp5_configurator_standard_categories
has quantity unit definitions using the "new way" ( the module and not local properties on quantity unit categories).Do you think it's better to keep using a spreadsheet for categories ? I don't really know which way is better. I was thinking that it's strange that there's a business template named
erp5_configurator_standard_categories
and we don't install it witherp5_configurator_standard
. -
mentioned in merge request !1172 (merged)
-
Owner
This is quite old, looking at the changes:
I assume that I did it to unify like you said to avoid duplications (when change a category, it would be required to change on 2 locations, bt5 + spreadsheet).
Maybe it was motivated or part of this change:
This is the best I can remember.
-
Owner
Thanks for feedback.
Also one reason why using spreadsheet was easy is that during configuration we ask questions like "What's the region of your organisation ?" and this needs to have region category available somehow. This was implemented by reading the spreadsheet on the fly.
I could find another way in !1172 (merged) ( hardcode the region categoy in a script which yes looks bad but in reality regions don't change so often and the spreadsheet was never updated )
I'm not sure what's best. It seems wrong that there's a category business template but we don't use it. If you think the new approach from !1172 (merged) is not good please tell me. Maybe I can extract the unit conversion paths in another business template, but there will still be the concern that
erp5_configurator_standard_categories
exists but is not used.