[docs]classProductView(CoreOpMasterView):# pylint: disable=abstract-method""" Master view for :class:`~pycorepos:corepos.db.office_op.model.Product`; route prefix is ``corepos_products``. Notable URLs provided by this class: * ``/corepos/products/`` * ``/corepos/products/XXX`` """model_class=Productmodel_title="CORE-POS Product"route_prefix="corepos_products"url_prefix="/corepos/products"# nb. this is just for readonly lookupcreatable=Falseeditable=Falsedeletable=Falselabels={"upc":"UPC",}grid_columns=["upc","brand","description","size","department","vendor","normal_price",]filter_defaults={"upc":{"active":True,"verb":"contains"},"brand":{"active":True,"verb":"contains"},"description":{"active":True,"verb":"contains"},}sort_defaults="upc"defconfigure_grid(self,grid):# pylint: disable=empty-docstring""" """g=gridsuper().configure_grid(g)# normal_priceg.set_renderer("normal_price","currency")# linksg.set_link("upc")g.set_link("brand")g.set_link("description")g.set_link("size")