Expose cash-back flags for tenders

This commit is contained in:
Lance Edgar 2023-10-01 18:54:56 -05:00
parent b7ccc6ea07
commit 746e13d134

View file

@ -39,11 +39,15 @@ class TenderView(MasterView):
grid_columns = [ grid_columns = [
'code', 'code',
'name', 'name',
'is_cash',
'allow_cash_back',
] ]
form_fields = [ form_fields = [
'code', 'code',
'name', 'name',
'is_cash',
'allow_cash_back',
'notes', 'notes',
] ]
@ -55,6 +59,11 @@ class TenderView(MasterView):
g.set_link('name') g.set_link('name')
g.set_sort_defaults('name') g.set_sort_defaults('name')
def configure_form(self, f):
super().configure_form(f)
f.set_type('notes', 'text')
def defaults(config, **kwargs): def defaults(config, **kwargs):
base = globals() base = globals()