refactor notes to remove requirement to edit code on new model #389
Open
3 tasks
Labels
type::feature
Issue Type
Milestone
Currently when adding a new tenancy model, you must edit the notes code for that model to be able to add notes.
Details
refactor the notes so that the model name is used instead of hard coded logic to add a note to a model.
Current code
centurion_erp/app/core/models/notes.py
Lines 81 to 119 in ed0e57c
This logic must be adjusted to use an
item_id
? and amodel
. Whereitem_id
is the models PK the note is for andmodel
is the model name.Links
Blocks: feat: version 1.4 #344
Blocks: Planning Document: version 1.0.0 centurion_erp_ui#18
Related: Planning Document: version 0.2.0 centurion_erp_ui#23
Requirements
The text was updated successfully, but these errors were encountered: