Saving changes now that most things have been migrated to CRUD V3 and appear to be working. This still needs testing though.

This commit is contained in:
Scott Idem
2026-01-06 13:11:03 -05:00
parent 552ca31603
commit 9c06b07665
6 changed files with 310 additions and 795 deletions

View File

@@ -1,5 +1,7 @@
from app.models.order_models import *
from app.models.order_cart_models import *
from app.models.product_models import *
from app.models.order_cfg_models import *
order_obj_li = {
'order': {
@@ -73,4 +75,42 @@ order_obj_li = {
'enable', 'hide', 'priority', 'group', 'created_on', 'updated_on'
],
},
'product': {
'tbl': 'product',
'tbl_default': 'v_product',
'tbl_update': 'product',
'mdl': Product_Base,
'mdl_default': Product_Base,
'mdl_in': Product_Base,
'mdl_out': Product_Base,
# Legacy V2 keys:
'table_name': 'v_product',
'tbl_name_update': 'product',
'base_name': Product_Base,
# V3 Search Security:
'searchable_fields': [
'product_id_random', 'account_id_random', 'for_type', 'for_id_random',
'type_code', 'type_name', 'name', 'description', 'unit_price',
'tax_rate', 'vat_rate', 'max_quantity', 'recurring', 'enable',
'hide', 'priority', 'group', 'created_on', 'updated_on'
],
},
'order_cfg': {
'tbl': 'order_cfg',
'tbl_default': 'order_cfg',
'tbl_update': 'order_cfg',
'mdl': Order_Cfg_Base,
'mdl_default': Order_Cfg_Base,
'mdl_in': Order_Cfg_Base,
'mdl_out': Order_Cfg_Base,
# Legacy V2 keys:
'table_name': 'order_cfg',
'tbl_name_update': 'order_cfg',
'base_name': Order_Cfg_Base,
# V3 Search Security:
'searchable_fields': [
'account_id_random', 'account_name', 'default_no_reply_email',
'confirm_email'
],
},
}