mirror of
https://github.com/inventree/inventree-app.git
synced 2025-06-16 12:15:31 +00:00
PO Contact (#305)
* Bug fix in API forms - Allow form fields to specify custom filters at runtime * Add "contact" model to purchase order edit form * Add action to create new purchase order from list widget * widget updates for purchase order
This commit is contained in:
@ -26,11 +26,21 @@ class InvenTreePurchaseOrder extends InvenTreeModel {
|
||||
Map<String, dynamic> formFields() {
|
||||
return {
|
||||
"reference": {},
|
||||
"supplier": {
|
||||
"filters": {
|
||||
"is_supplier": true,
|
||||
},
|
||||
},
|
||||
"supplier_reference": {},
|
||||
"description": {},
|
||||
"target_date": {},
|
||||
"link": {},
|
||||
"responsible": {},
|
||||
"contact": {
|
||||
"filters": {
|
||||
"company": supplierId,
|
||||
}
|
||||
},
|
||||
};
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user