mirror of
				https://github.com/inventree/InvenTree.git
				synced 2025-10-30 20:55:42 +00:00 
			
		
		
		
	* Add JS for qrcodejs Ref: https://davidshimjs.github.io/qrcodejs/ * Simple function for rendering a QR code * Refactor QR code view for Part * Replace QR code view for SupplierPart * Refactor QR codes for stock item and stock location models * Remove base QRCodeView entirely
		
			
				
	
	
		
			34 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			34 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			Python
		
	
	
	
	
	
| """URL lookup for Company app."""
 | |
| 
 | |
| from django.urls import include, re_path
 | |
| 
 | |
| from . import views
 | |
| 
 | |
| company_urls = [
 | |
| 
 | |
|     # Detail URLs for a specific Company instance
 | |
|     re_path(r'^(?P<pk>\d+)/', include([
 | |
|         re_path(r'^.*$', views.CompanyDetail.as_view(), name='company-detail'),
 | |
|     ])),
 | |
| 
 | |
|     re_path(r'suppliers/', views.CompanyIndex.as_view(), name='supplier-index'),
 | |
|     re_path(r'manufacturers/', views.CompanyIndex.as_view(), name='manufacturer-index'),
 | |
|     re_path(r'customers/', views.CompanyIndex.as_view(), name='customer-index'),
 | |
| 
 | |
|     # Redirect any other patterns to the 'company' index which displays all companies
 | |
|     re_path(r'^.*$', views.CompanyIndex.as_view(), name='company-index'),
 | |
| ]
 | |
| 
 | |
| manufacturer_part_urls = [
 | |
| 
 | |
|     re_path(r'^(?P<pk>\d+)/', views.ManufacturerPartDetail.as_view(template_name='company/manufacturer_part.html'), name='manufacturer-part-detail'),
 | |
| ]
 | |
| 
 | |
| supplier_part_urls = [
 | |
|     re_path(r'^(?P<pk>\d+)/', include([
 | |
|         re_path('^.*$', views.SupplierPartDetail.as_view(template_name='company/supplier_part.html'), name='supplier-part-detail'),
 | |
|     ]))
 | |
| 
 | |
| 
 | |
| ]
 |