Merge pull request #11506 from saurabh6790/test_patches
[travis] run patches by restoring v7 database
This commit is contained in:
commit
5add4897a5
@ -64,4 +64,10 @@ jobs:
|
|||||||
- bench execute erpnext.setup.utils.enable_all_roles_and_domains
|
- bench execute erpnext.setup.utils.enable_all_roles_and_domains
|
||||||
- bench run-ui-tests --app erpnext
|
- bench run-ui-tests --app erpnext
|
||||||
env: Client Side Test
|
env: Client Side Test
|
||||||
|
- # stage
|
||||||
|
script:
|
||||||
|
- wget http://build.erpnext.com/20171108_190013_955977f8_database.sql.gz
|
||||||
|
- bench --force restore ~/frappe-bench/20171108_190013_955977f8_database.sql.gz --mariadb-root-password travis
|
||||||
|
- bench migrate
|
||||||
|
env: Patch Testing
|
||||||
|
|
||||||
|
@ -334,6 +334,7 @@ execute:frappe.reload_doctype('Employee') #2016-10-18
|
|||||||
execute:frappe.db.sql("update `tabEmployee` set prefered_contact_email = IFNULL(prefered_contact_email,'') ")
|
execute:frappe.db.sql("update `tabEmployee` set prefered_contact_email = IFNULL(prefered_contact_email,'') ")
|
||||||
execute:frappe.reload_doctype("Salary Slip")
|
execute:frappe.reload_doctype("Salary Slip")
|
||||||
execute:frappe.db.sql("update `tabSalary Slip` set posting_date=creation")
|
execute:frappe.db.sql("update `tabSalary Slip` set posting_date=creation")
|
||||||
|
execute:frappe.reload_doc("stock", "doctype", "stock_settings")
|
||||||
erpnext.patches.v8_0.create_domain_docs #16-05-2017
|
erpnext.patches.v8_0.create_domain_docs #16-05-2017
|
||||||
erpnext.patches.v7_1.update_portal_roles
|
erpnext.patches.v7_1.update_portal_roles
|
||||||
erpnext.patches.v7_1.set_total_amount_currency_in_je
|
erpnext.patches.v7_1.set_total_amount_currency_in_je
|
||||||
|
@ -7,7 +7,9 @@ import frappe
|
|||||||
def execute():
|
def execute():
|
||||||
doctype = 'POS Profile'
|
doctype = 'POS Profile'
|
||||||
frappe.reload_doc('accounts', 'doctype', doctype)
|
frappe.reload_doc('accounts', 'doctype', doctype)
|
||||||
frappe.reload_doc('accounts', 'doctype', 'POS Profile User')
|
frappe.reload_doc('accounts', 'doctype', 'pos_profile_user')
|
||||||
|
frappe.reload_doc('accounts', 'doctype', 'pos_item_group')
|
||||||
|
frappe.reload_doc('accounts', 'doctype', 'pos_customer_group')
|
||||||
|
|
||||||
for doc in frappe.get_all(doctype):
|
for doc in frappe.get_all(doctype):
|
||||||
_doc = frappe.get_doc(doctype, doc.name)
|
_doc = frappe.get_doc(doctype, doc.name)
|
||||||
@ -19,4 +21,7 @@ def execute():
|
|||||||
'user': user
|
'user': user
|
||||||
})
|
})
|
||||||
_doc.pos_profile_name = user + ' - ' + _doc.company
|
_doc.pos_profile_name = user + ' - ' + _doc.company
|
||||||
|
_doc.flags.ignore_validate = True
|
||||||
|
_doc.flags.ignore_mandatory = True
|
||||||
_doc.save()
|
_doc.save()
|
||||||
|
|
||||||
|
@ -5,8 +5,8 @@ from __future__ import unicode_literals
|
|||||||
import frappe
|
import frappe
|
||||||
|
|
||||||
def execute():
|
def execute():
|
||||||
frappe.reload_doc('schools', 'doctype', 'Student Admission Program')
|
frappe.reload_doc('schools', 'doctype', 'student_admission_program')
|
||||||
frappe.reload_doctype('Student Admission')
|
frappe.reload_doc('schools', 'doctype', 'student_admission')
|
||||||
|
|
||||||
if "program" not in frappe.db.get_table_columns("Student Admission"):
|
if "program" not in frappe.db.get_table_columns("Student Admission"):
|
||||||
return
|
return
|
||||||
|
Loading…
Reference in New Issue
Block a user