diff --git a/patches/patch.py b/patches/patch.py index 66e08e9aa4..de77b2d374 100644 --- a/patches/patch.py +++ b/patches/patch.py @@ -1146,4 +1146,4 @@ def execute(patch_no): reload_doc('accounts', 'search_criteria', 'itemwise_sales_register') reload_doc('accounts', 'search_criteria', 'itemwise_purchase_register') elif patch_no == 287: - sql("update `tabDocField` set no_copy = 1 where firlname in ('per_received', 'per_billed', 'per_delivered') and parent in ('Purchase Order', 'Purchase Receipt', 'Sales Order', 'Delivery Note')") + sql("update `tabDocField` set no_copy = 1 where fieldname in ('per_received', 'per_billed', 'per_delivered') and parent in ('Purchase Order', 'Purchase Receipt', 'Sales Order', 'Delivery Note')")