[minor] [customer login] renamed order template to sale and use it for order, invoice and delivery note

This commit is contained in:
Anand Doshi
2013-09-04 15:07:00 +05:30
parent 0e23929740
commit d5c18d46d0
5 changed files with 131 additions and 19 deletions

View File

@@ -286,22 +286,6 @@ class DocType(SellingController):
def on_update(self):
pass
def get_website_args():
customer = webnotes.conn.get_value("Contact", {"email_id": webnotes.session.user},
"customer")
bean = webnotes.bean("Sales Order", webnotes.form_dict.name)
if bean.doc.customer != customer:
return {
"doc": {"name": "Not Allowed"}
}
else:
return {
"doc": bean.doc,
"doclist": bean.doclist,
"webnotes": webnotes,
"utils": webnotes.utils,
}
def set_missing_values(source, target):
bean = webnotes.bean(target)
bean.run_method("onload_post_render")