Link to product record, for New Product batch row

also fix a typo
This commit is contained in:
Lance Edgar 2023-08-25 09:08:33 -05:00
parent 8be7dac33b
commit bc8b5a8d32
2 changed files with 4 additions and 5 deletions

View file

@ -50,7 +50,7 @@
<h3 class="block is-size-3">Handling</h3>
<div class="block" style="padding-left: 2rem;">
<b-field message="If set, GPC values like 002XXXXXYYYYY-Z will be converted to 002XXXXX00000-Z for lokkup">
<b-field message="If set, GPC values like 002XXXXXYYYYY-Z will be converted to 002XXXXX00000-Z for lookup">
<b-checkbox name="rattail.products.convert_type2_for_gpc_lookup"
v-model="simpleSettings['rattail.products.convert_type2_for_gpc_lookup']"
native-value="true"

View file

@ -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)