Sales order button fix (#4782)

* Add (empty) set of API filters for contact table

* Fix typo
This commit is contained in:
Oliver 2023-05-06 18:49:21 +10:00 committed by GitHub
parent 5886415aa7
commit 3b3ce81d11
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 1 deletions

View File

@ -390,7 +390,7 @@
});
{% endif %}
{% if roles.salse_order.add %}
{% if roles.sales_order.add %}
$("#new-sales-order").click(function() {
createSalesOrder({

View File

@ -669,6 +669,12 @@ function getPartTableFilters() {
}
// Return a dictionary of filters for the "contact" table
function getContactFilters() {
return {};
}
// Return a dictionary of filters for the "company" table
function getCompanyFilters() {
return {
@ -699,6 +705,8 @@ function getAvailableTableFilters(tableKey) {
return getPartCategoryFilters();
case 'company':
return getCompanyFilters();
case 'contact':
return getContactFilters();
case 'customerstock':
return getCustomerStockFilters();
case 'bom':