Avoid making discounts data if missing field, for trainwreck item view
This commit is contained in:
parent
59a9d2cf86
commit
031d97aea3
|
@ -268,6 +268,8 @@ class TransactionView(MasterView):
|
|||
def template_kwargs_view_row(self, **kwargs):
|
||||
use_buefy = self.get_use_buefy()
|
||||
if use_buefy:
|
||||
form = kwargs['form']
|
||||
if 'discounts' in form:
|
||||
|
||||
app = self.get_rattail_app()
|
||||
item = kwargs['instance']
|
||||
|
|
Loading…
Reference in a new issue