Fixes for align labels right

This commit is contained in:
Nabin Hait 2017-09-14 12:25:01 +05:30
parent cb46380e64
commit 4d4e5dcc02
2 changed files with 2 additions and 2 deletions

View file

@ -11,7 +11,7 @@ def execute():
update
`tabPrint Format`
set
align_labels_left = 0, line_breaks = 0, show_section_headings = 0
align_labels_right = 0, line_breaks = 0, show_section_headings = 0
where
custom_format = 1
""")

View file

@ -43,7 +43,7 @@ frappe.ui.form.on("Print Format", {
},
custom_format: function(frm) {
var value = frm.doc.custom_format ? 0:1;
frm.set_value('align_labels_left', value);
frm.set_value('align_labels_right', value);
frm.set_value('show_section_headings', value);
frm.set_value('line_breaks', value);
frm.trigger('render_buttons');