Item image in print view

This commit is contained in:
Nabin Hait 2015-05-14 12:26:27 +05:30
parent 2f243f4d08
commit 90fc19ed9a
8 changed files with 29 additions and 22 deletions

View File

@ -97,7 +97,7 @@
"label": "Image",
"permlevel": 0,
"precision": "",
"print_hide": 1
"print_hide": 0
},
{
"fieldname": "image_view",
@ -105,7 +105,8 @@
"label": "Image View",
"options": "image",
"permlevel": 0,
"precision": ""
"precision": "",
"print_hide": 1
},
{
"fieldname": "quantity_and_rate",
@ -536,7 +537,7 @@
],
"idx": 1,
"istable": 1,
"modified": "2015-03-23 16:12:29.821493",
"modified": "2015-05-14 14:54:16.899713",
"modified_by": "Administrator",
"module": "Buying",
"name": "Purchase Order Item",

View File

@ -81,7 +81,7 @@
"label": "Image",
"permlevel": 0,
"precision": "",
"print_hide": 1
"print_hide": 0
},
{
"fieldname": "image_view",
@ -89,7 +89,8 @@
"label": "Image View",
"options": "image",
"permlevel": 0,
"precision": ""
"precision": "",
"print_hide": 1
},
{
"fieldname": "quantity_and_rate",
@ -411,7 +412,7 @@
],
"idx": 1,
"istable": 1,
"modified": "2015-03-23 15:28:03.712608",
"modified": "2015-05-14 14:54:36.253819",
"modified_by": "Administrator",
"module": "Buying",
"name": "Supplier Quotation Item",

View File

@ -108,7 +108,7 @@
"options": "",
"permlevel": 0,
"precision": "",
"print_hide": 1
"print_hide": 0
},
{
"fieldname": "image_view",
@ -116,7 +116,8 @@
"label": "Image View",
"options": "image",
"permlevel": 0,
"precision": ""
"precision": "",
"print_hide": 1
},
{
"fieldname": "basic_rate",
@ -133,7 +134,7 @@
],
"idx": 1,
"istable": 1,
"modified": "2015-04-02 22:04:26.867653",
"modified": "2015-05-14 14:55:18.325286",
"modified_by": "Administrator",
"module": "CRM",
"name": "Opportunity Item",

View File

@ -73,7 +73,7 @@
"label": "Image",
"permlevel": 0,
"precision": "",
"print_hide": 1
"print_hide": 0
},
{
"fieldname": "image_view",
@ -81,7 +81,8 @@
"label": "Image View",
"options": "image",
"permlevel": 0,
"precision": ""
"precision": "",
"print_hide": 1
},
{
"fieldname": "quantity_and_rate",
@ -388,7 +389,7 @@
],
"idx": 1,
"istable": 1,
"modified": "2015-03-23 00:48:08.477241",
"modified": "2015-05-14 14:51:21.557189",
"modified_by": "Administrator",
"module": "Selling",
"name": "Quotation Item",

View File

@ -82,7 +82,7 @@
"label": "Image",
"permlevel": 0,
"precision": "",
"print_hide": 1
"print_hide": 0
},
{
"fieldname": "image_view",
@ -90,7 +90,8 @@
"label": "Image View",
"options": "image",
"permlevel": 0,
"precision": ""
"precision": "",
"print_hide": 1
},
{
"fieldname": "quantity_and_rate",
@ -496,7 +497,7 @@
],
"idx": 1,
"istable": 1,
"modified": "2015-05-07 08:45:19.554719",
"modified": "2015-05-14 14:51:46.978580",
"modified_by": "Administrator",
"module": "Selling",
"name": "Sales Order Item",

View File

@ -88,7 +88,7 @@
"label": "Image",
"permlevel": 0,
"precision": "",
"print_hide": 1
"print_hide": 0
},
{
"fieldname": "image_view",
@ -96,7 +96,8 @@
"label": "Image View",
"options": "image",
"permlevel": 0,
"precision": ""
"precision": "",
"print_hide": 1
},
{
"fieldname": "quantity_and_rate",
@ -521,7 +522,7 @@
],
"idx": 1,
"istable": 1,
"modified": "2015-03-23 12:21:17.028911",
"modified": "2015-05-14 14:52:20.610748",
"modified_by": "Administrator",
"module": "Stock",
"name": "Delivery Note Item",

View File

@ -71,7 +71,7 @@
"label": "Image",
"permlevel": 0,
"precision": "",
"print_hide": 1
"print_hide": 0
},
{
"fieldname": "image_view",
@ -79,7 +79,8 @@
"label": "Image View",
"options": "image",
"permlevel": 0,
"precision": ""
"precision": "",
"print_hide": 1
},
{
"fieldname": "received_and_accepted",
@ -640,7 +641,7 @@
],
"idx": 1,
"istable": 1,
"modified": "2015-03-23 15:19:26.294450",
"modified": "2015-05-14 14:54:02.462587",
"modified_by": "Administrator",
"module": "Stock",
"name": "Purchase Receipt Item",

View File

@ -1,4 +1,4 @@
{% if doc.in_format_data("image") and doc.get("image") -%}
{% if doc.in_format_data("image") and doc.get("image") and not doc.is_print_hide("image")-%}
<div class="pull-left" style="max-width: 20%; margin-right: 10px;">
<img src="{{ doc.image }}" style="max-width: 100%">
</div>