From 547ce9f9c81ff2e7c2129f0ba502b7c9206dcec3 Mon Sep 17 00:00:00 2001 From: Anand Doshi Date: Tue, 20 Mar 2012 12:11:38 +0530 Subject: [PATCH] POS Invoice fix --- erpnext/patches/mar_2012/__init__.py | 0 erpnext/patches/mar_2012/pos_invoice_fix.py | 5 +++++ 2 files changed, 5 insertions(+) create mode 100644 erpnext/patches/mar_2012/__init__.py create mode 100644 erpnext/patches/mar_2012/pos_invoice_fix.py diff --git a/erpnext/patches/mar_2012/__init__.py b/erpnext/patches/mar_2012/__init__.py new file mode 100644 index 0000000000..e69de29bb2 diff --git a/erpnext/patches/mar_2012/pos_invoice_fix.py b/erpnext/patches/mar_2012/pos_invoice_fix.py new file mode 100644 index 0000000000..9905f00617 --- /dev/null +++ b/erpnext/patches/mar_2012/pos_invoice_fix.py @@ -0,0 +1,5 @@ +def execute(): + import webnotes + webnotes.conn.sql("DELETE FROM `tabDocFormat` WHERE format='POS Invoice'") + from webnotes.modules.modules_manager import reload_doc + reload_doc('accounts', 'Print Format', 'POS Invoice')