Fix template/styles for v3 grid views, add purchasing batch status
This commit is contained in:
parent
c774d6c8e3
commit
c18774e5e5
6 changed files with 62 additions and 34 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue