Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: project filters on Delivery Note and Sales Order #39212

Merged

Conversation

ruthra-kumar
Copy link
Member

Make use of individual document level query filters[1, 2] for Project.

  1. frm.set_query('project', function(doc) {
    return {
    query: "erpnext.controllers.queries.get_project_name",
    filters: {
    'customer': doc.customer
    }
    }
    })
  2. frm.set_query('project', function(doc, cdt, cdn) {
    return {
    query: "erpnext.controllers.queries.get_project_name",
    filters: {
    'customer': doc.customer
    }
    }
    });

@ruthra-kumar ruthra-kumar linked an issue Jan 8, 2024 that may be closed by this pull request
@ruthra-kumar ruthra-kumar merged commit 210d771 into frappe:develop Jan 8, 2024
5 of 6 checks passed
@ruthra-kumar ruthra-kumar linked an issue Jan 8, 2024 that may be closed by this pull request
ruthra-kumar added a commit that referenced this pull request Jan 11, 2024
…-39212

fix: project filters on Delivery Note and Sales Order (backport #39212)
ruthra-kumar added a commit that referenced this pull request Jan 11, 2024
…-39212

fix: project filters on Delivery Note and Sales Order (backport #39212)
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 26, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Project field filters broken in all DocTypes
1 participant