[fix] show item description in form grid based on in_list_view
This commit is contained in:
parent
ecf220a721
commit
5105f909d6
@ -58,7 +58,7 @@
|
||||
"fieldname": "description",
|
||||
"fieldtype": "Small Text",
|
||||
"in_filter": 1,
|
||||
"in_list_view": 1,
|
||||
"in_list_view": 0,
|
||||
"label": "Description",
|
||||
"oldfieldname": "description",
|
||||
"oldfieldtype": "Small Text",
|
||||
@ -498,7 +498,7 @@
|
||||
],
|
||||
"idx": 1,
|
||||
"istable": 1,
|
||||
"modified": "2015-05-27 02:47:15.134435",
|
||||
"modified": "2015-07-02 05:37:29.289574",
|
||||
"modified_by": "Administrator",
|
||||
"module": "Selling",
|
||||
"name": "Sales Order Item",
|
||||
|
@ -100,7 +100,7 @@
|
||||
{
|
||||
"fieldname": "description",
|
||||
"fieldtype": "Text",
|
||||
"in_list_view": 1,
|
||||
"in_list_view": 0,
|
||||
"label": "Description",
|
||||
"oldfieldname": "description",
|
||||
"oldfieldtype": "Text",
|
||||
@ -344,7 +344,7 @@
|
||||
],
|
||||
"idx": 1,
|
||||
"istable": 1,
|
||||
"modified": "2015-02-25 04:31:21.801200",
|
||||
"modified": "2015-07-02 05:32:56.511570",
|
||||
"modified_by": "Administrator",
|
||||
"module": "Stock",
|
||||
"name": "Stock Entry Detail",
|
||||
|
@ -9,5 +9,7 @@
|
||||
{%= doc.get_formatted(df.fieldname) %}
|
||||
</div>
|
||||
</div>
|
||||
{% } else if (df.fieldname==="description") { %}
|
||||
<p>{{ doc.description }}</p>
|
||||
{% } %}
|
||||
{% }); %}
|
||||
|
@ -1,4 +1,6 @@
|
||||
{% var visible_columns = row.get_visible_columns(["item_code", "qty", "rate", "amount", "stock_uom", "uom", "discount_percentage", "schedule_date", "warehouse", "against_sales_order", "sales_order"]); %}
|
||||
{% var visible_columns = row.get_visible_columns(["item_code", "qty", "rate", "amount",
|
||||
"stock_uom", "uom", "discount_percentage", "schedule_date", "warehouse",
|
||||
"against_sales_order", "sales_order"]); %}
|
||||
|
||||
{% if(!doc) { %}
|
||||
<div class="row">
|
||||
@ -48,12 +50,7 @@
|
||||
|
||||
{% if(doc.item_name != doc.item_code && in_list(visible_column_fieldnames, "item_name")) { %}
|
||||
<br>{%= doc.item_name %}{% } %}
|
||||
|
||||
{% if((doc.description != doc.item_code != doc.item_name) &&
|
||||
in_list(visible_column_fieldnames, "description")) { %}
|
||||
<br>
|
||||
<strong>Description: </strong>
|
||||
{%= doc.get_formatted("description") %}{% } %}
|
||||
|
||||
{% include "templates/form_grid/includes/visible_cols.html" %}
|
||||
</div>
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user