feat: temp barcode templates
This commit is contained in:
8
barcodes/attributes/client_name_attribute_getter.py
Normal file
8
barcodes/attributes/client_name_attribute_getter.py
Normal file
@@ -0,0 +1,8 @@
|
||||
from barcodes.attributes import BaseAttributeGetter
|
||||
from models import Product, Client
|
||||
|
||||
|
||||
class ClientNameAttributeGetter(BaseAttributeGetter):
|
||||
def get_value(self, product: Product):
|
||||
client: Client = product.client
|
||||
return client.name
|
||||
Reference in New Issue
Block a user