Deepesh Garg
3 years ago
committed by
GitHub
7 changed files with 57 additions and 21 deletions
@ -1,16 +1,25 @@ |
|||
name: Backport |
|||
on: |
|||
pull_request: |
|||
pull_request_target: |
|||
types: |
|||
- closed |
|||
- labeled |
|||
|
|||
jobs: |
|||
backport: |
|||
runs-on: ubuntu-18.04 |
|||
name: Backport |
|||
main: |
|||
runs-on: ubuntu-latest |
|||
steps: |
|||
- name: Backport |
|||
uses: tibdex/backport@v1 |
|||
- name: Checkout Actions |
|||
uses: actions/checkout@v2 |
|||
with: |
|||
github_token: ${{ secrets.GITHUB_TOKEN }} |
|||
repository: "ankush/backport" |
|||
path: ./actions |
|||
ref: develop |
|||
- name: Install Actions |
|||
run: npm install --production --prefix ./actions |
|||
- name: Run backport |
|||
uses: ./actions/backport |
|||
with: |
|||
token: ${{secrets.BACKPORT_BOT_TOKEN}} |
|||
labelsToAdd: "backport" |
|||
title: "{{originalTitle}}" |
|||
|
@ -0,0 +1,10 @@ |
|||
import frappe |
|||
|
|||
def execute(): |
|||
""" Correct amount in child table of required items table.""" |
|||
|
|||
frappe.reload_doc("manufacturing", "doctype", "work_order") |
|||
frappe.reload_doc("manufacturing", "doctype", "work_order_item") |
|||
|
|||
frappe.db.sql("""UPDATE `tabWork Order Item` SET amount = rate * required_qty""") |
|||
|
@ -0,0 +1,16 @@ |
|||
|
|||
|
|||
frappe.ui.form.on("Contact", { |
|||
refresh(frm) { |
|||
frm.set_query('link_doctype', "links", function() { |
|||
return { |
|||
query: "frappe.contacts.address_and_contact.filter_dynamic_link_doctypes", |
|||
filters: { |
|||
fieldtype: ["in", ["HTML", "Text Editor"]], |
|||
fieldname: ["in", ["contact_html", "company_description"]], |
|||
} |
|||
}; |
|||
}); |
|||
frm.refresh_field("links"); |
|||
} |
|||
}); |
Loading…
Reference in new issue