Link to product record, for New Product batch row
also fix a typo
This commit is contained in:
parent
8be7dac33b
commit
bc8b5a8d32
2 changed files with 4 additions and 5 deletions
|
@ -2,7 +2,7 @@
|
|||
################################################################################
|
||||
#
|
||||
# Rattail -- Retail Software Framework
|
||||
# Copyright © 2010-2022 Lance Edgar
|
||||
# Copyright © 2010-2023 Lance Edgar
|
||||
#
|
||||
# This file is part of Rattail.
|
||||
#
|
||||
|
@ -24,8 +24,6 @@
|
|||
Views for new product batches
|
||||
"""
|
||||
|
||||
from __future__ import unicode_literals, absolute_import
|
||||
|
||||
from rattail.db import model
|
||||
|
||||
from tailbone.views.batch import BatchMasterView
|
||||
|
@ -165,7 +163,7 @@ class NewProductBatchView(BatchMasterView):
|
|||
return 'notice'
|
||||
|
||||
def configure_row_form(self, f):
|
||||
super(NewProductBatchView, self).configure_row_form(f)
|
||||
super().configure_row_form(f)
|
||||
|
||||
f.set_readonly('product')
|
||||
f.set_readonly('vendor')
|
||||
|
@ -177,6 +175,7 @@ class NewProductBatchView(BatchMasterView):
|
|||
|
||||
f.set_type('upc', 'gpc')
|
||||
|
||||
f.set_renderer('product', self.render_product)
|
||||
f.set_renderer('vendor', self.render_vendor)
|
||||
f.set_renderer('department', self.render_department)
|
||||
f.set_renderer('subdepartment', self.render_subdepartment)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue