Add basic support for exposing Customer.shoppers

now there is a Shoppers field when viewing a Customer, unless
configured otherwise

also tweaked some logic for navigating Customer/Person relationships,
to handle implications of Shoppers being (maybe) present
This commit is contained in:
Lance Edgar 2023-06-07 16:27:10 -05:00
parent afd5c3a5fd
commit 3fde80f991
5 changed files with 201 additions and 46 deletions

View file

@ -4878,7 +4878,7 @@ class MasterView(View):
elif simple.get('type') is bool:
value = config.getbool(simple['section'],
simple['option'],
default=False)
default=simple.get('default', False))
else:
value = config.get(simple['section'],
simple['option'])