Define form fields list for Vendor views

maybe was needed anyway, but esp. with "synonym" usage in underlying model,
since both the "real" and "synonym" fields were showing up
This commit is contained in:
Lance Edgar 2020-03-06 13:48:13 -06:00
parent 86c9155f0d
commit 32f381bdd2

View file

@ -53,6 +53,18 @@ class VendorView(CoreOfficeMasterView):
'contact',
]
form_fields = [
'id',
'name',
'abbreviation',
'discount_rate',
'phone',
'fax',
'email',
'website',
'notes',
]
def configure_grid(self, g):
super(VendorView, self).configure_grid(g)