1- from viur .core import conf , current , i18n
1+ from viur .core import conf , current
22from viur .core .bones import *
33from viur .core .skeleton import Skeleton
44from viur .shop .types import *
@@ -18,6 +18,7 @@ class AddressSkel(Skeleton): # STATE: Complete (as in model)
1818 lambda skel : f'{ skel ["salutation" ]} { skel ["firstname" ]} { skel ["lastname" ]} ' .strip (),
1919 ComputeInterval (ComputeMethod .OnWrite ),
2020 ),
21+ searchable = True ,
2122 )
2223
2324 customer_type = SelectBone (
@@ -36,30 +37,36 @@ class AddressSkel(Skeleton): # STATE: Complete (as in model)
3637
3738 company_name = StringBone (
3839 params = {"group" : "Customer Info" },
40+ searchable = True ,
3941 )
4042
4143 firstname = StringBone (
4244 params = {"group" : "Customer Info" },
4345 required = True ,
46+ searchable = True ,
4447 )
4548
4649 lastname = StringBone (
4750 params = {"group" : "Customer Info" },
4851 required = True ,
52+ searchable = True ,
4953 )
5054
5155 street_name = StringBone (
5256 params = {"group" : "Customer Address" },
5357 required = True ,
58+ searchable = True ,
5459 )
5560
5661 street_number = StringBone (
5762 params = {"group" : "Customer Address" },
5863 required = True ,
64+ searchable = True ,
5965 )
6066
6167 address_addition = StringBone (
6268 params = {"group" : "Customer Address" },
69+ searchable = True ,
6370 )
6471
6572 zip_code = StringBone (
@@ -75,16 +82,19 @@ class AddressSkel(Skeleton): # STATE: Complete (as in model)
7582 public = True ,
7683 ),
7784 },
85+ searchable = True ,
7886 )
7987
8088 city = StringBone (
8189 params = {"group" : "Customer Address" },
8290 required = True ,
91+ searchable = True ,
8392 )
8493
8594 country = SelectCountryBone (
8695 params = {"group" : "Customer Address" },
8796 required = True ,
97+ searchable = True ,
8898 )
8999
90100 customer = RelationalBone (
@@ -106,6 +116,7 @@ class AddressSkel(Skeleton): # STATE: Complete (as in model)
106116 public = True ,
107117 ),
108118 },
119+ searchable = True ,
109120 )
110121 """Kopieren von User oder Eingabe von Nutzer bei Gast"""
111122
@@ -122,6 +133,7 @@ class AddressSkel(Skeleton): # STATE: Complete (as in model)
122133 public = True ,
123134 ),
124135 },
136+ searchable = True ,
125137 )
126138
127139 # FIXME: What happens if an AddressSkel has both address_types and is_default
0 commit comments