Expose default custorder discount for Departments
This commit is contained in:
parent
3bdc7175a3
commit
a40add8f41
|
@ -59,6 +59,7 @@ class DepartmentView(MasterView):
|
|||
'tax',
|
||||
'food_stampable',
|
||||
'exempt_from_gross_sales',
|
||||
'default_custorder_discount',
|
||||
'allow_product_deletions',
|
||||
'employees',
|
||||
]
|
||||
|
@ -114,6 +115,9 @@ class DepartmentView(MasterView):
|
|||
# TODO: make this editable
|
||||
f.set_readonly('tax')
|
||||
|
||||
# default_custorder_discount
|
||||
f.set_type('default_custorder_discount', 'percent')
|
||||
|
||||
def render_employees(self, department, field):
|
||||
route_prefix = self.get_route_prefix()
|
||||
permission_prefix = self.get_permission_prefix()
|
||||
|
|
Loading…
Reference in a new issue