2
0
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:
Oliver
2023-04-10 16:59:45 +10:00
committed by GitHub
parent 8631fedbfb
commit 020cc4497c
6 changed files with 85 additions and 20 deletions

View File

@ -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,
}
},
};
}