fix: failing broken patches (#30409)
* fix: failing broken patches * refactor: simpler conditions [skip ci]
This commit is contained in:
parent
788d492757
commit
c4854bb1b1
@ -1,7 +1,7 @@
|
|||||||
[pre_model_sync]
|
[pre_model_sync]
|
||||||
erpnext.patches.v12_0.update_is_cancelled_field
|
erpnext.patches.v12_0.update_is_cancelled_field
|
||||||
erpnext.patches.v13_0.add_bin_unique_constraint
|
|
||||||
erpnext.patches.v11_0.rename_production_order_to_work_order
|
erpnext.patches.v11_0.rename_production_order_to_work_order
|
||||||
|
erpnext.patches.v13_0.add_bin_unique_constraint
|
||||||
erpnext.patches.v11_0.refactor_naming_series
|
erpnext.patches.v11_0.refactor_naming_series
|
||||||
erpnext.patches.v11_0.refactor_autoname_naming
|
erpnext.patches.v11_0.refactor_autoname_naming
|
||||||
execute:frappe.reload_doc("accounts", "doctype", "POS Payment Method") #2020-05-28
|
execute:frappe.reload_doc("accounts", "doctype", "POS Payment Method") #2020-05-28
|
||||||
|
@ -60,7 +60,7 @@ def execute():
|
|||||||
|
|
||||||
def convert_to_seconds(value, unit):
|
def convert_to_seconds(value, unit):
|
||||||
seconds = 0
|
seconds = 0
|
||||||
if value == 0:
|
if not value:
|
||||||
return seconds
|
return seconds
|
||||||
if unit == 'Hours':
|
if unit == 'Hours':
|
||||||
seconds = value * 3600
|
seconds = value * 3600
|
||||||
|
Loading…
Reference in New Issue
Block a user