Closed milenmk closed 1 year ago
This issue is stale because it has been open 1 year with no activity. If this is a bug, please comment to confirm it is still present on latest stable version. if this is a feature request, please comment to notify the request is still relevant and not yet covered by latest stable version. This issue may be closed automatically by stale bot in 10 days (you should still be able to re-open it if required).
Feature Request
Add the ability to define fields for object lines in the module builder
Suggested implementation
Currently, when you create an object for a custom module using the module builder, there is a table, where you can create/edit/delete database fields for the object. In the class file, there is another class for the lines but its content is only the constructor.
If I need to create lines for this object, the best approach, for now, is either manually edit the class file, or create another object and make its name and class as "object_lines"
It will be good if we can do this for the current object i.e. have simple CRUD methods and a second table for lines with the same features/options as for the main object.
In the "objectlines_card.php" and else I think won't be necessary. However, the "object_card.php" has to be changed and if there are lines defined for the object to be able to add them to the card (like adding product/service to propale/order/invoice)