Fix template/styles for v3 grid views, add purchasing batch status

This commit is contained in:
Lance Edgar 2017-07-14 15:45:31 -05:00
parent c774d6c8e3
commit c18774e5e5
6 changed files with 62 additions and 34 deletions

View file

@ -52,6 +52,18 @@ class BatchMasterView2(MasterView2, BatchMasterView):
'executed_by',
]
def get_fallback_templates(self, template, mobile=False):
if mobile:
return [
'/mobile/newbatch/{}.mako'.format(template),
'/mobile/master/{}.mako'.format(template),
]
return [
'/newbatch/{}.mako'.format(template),
'/master2/{}.mako'.format(template),
'/master/{}.mako'.format(template),
]
def configure_grid(self, g):
super(BatchMasterView2, self).configure_grid(g)