fix: update description field to be optional in POS and Landed Cost Item

This commit is contained in:
ljain112
2025-11-12 18:15:32 +05:30
parent b9affe0cd8
commit 5cfa71fa47
4 changed files with 6 additions and 7 deletions

View File

@@ -160,7 +160,6 @@
"oldfieldname": "description", "oldfieldname": "description",
"oldfieldtype": "Text", "oldfieldtype": "Text",
"print_width": "200px", "print_width": "200px",
"reqd": 1,
"width": "200px" "width": "200px"
}, },
{ {
@@ -858,13 +857,14 @@
], ],
"istable": 1, "istable": 1,
"links": [], "links": [],
"modified": "2024-05-07 15:56:53.343317", "modified": "2025-11-12 18:11:11.818015",
"modified_by": "Administrator", "modified_by": "Administrator",
"module": "Accounts", "module": "Accounts",
"name": "POS Invoice Item", "name": "POS Invoice Item",
"naming_rule": "Random", "naming_rule": "Random",
"owner": "Administrator", "owner": "Administrator",
"permissions": [], "permissions": [],
"row_format": "Dynamic",
"sort_field": "creation", "sort_field": "creation",
"sort_order": "DESC", "sort_order": "DESC",
"states": [] "states": []

View File

@@ -36,7 +36,7 @@ class POSInvoiceItem(SalesInvoiceItem):
delivered_by_supplier: DF.Check delivered_by_supplier: DF.Check
delivered_qty: DF.Float delivered_qty: DF.Float
delivery_note: DF.Link | None delivery_note: DF.Link | None
description: DF.TextEditor description: DF.TextEditor | None
discount_amount: DF.Currency discount_amount: DF.Currency
discount_percentage: DF.Percent discount_percentage: DF.Percent
distributed_discount_amount: DF.Currency distributed_discount_amount: DF.Currency

View File

@@ -42,7 +42,6 @@
"oldfieldtype": "Data", "oldfieldtype": "Data",
"print_width": "300px", "print_width": "300px",
"read_only": 1, "read_only": 1,
"reqd": 1,
"width": "120px" "width": "120px"
}, },
{ {
@@ -145,7 +144,7 @@
"idx": 1, "idx": 1,
"istable": 1, "istable": 1,
"links": [], "links": [],
"modified": "2025-06-11 08:53:38.096761", "modified": "2025-11-12 18:12:47.107898",
"modified_by": "Administrator", "modified_by": "Administrator",
"module": "Stock", "module": "Stock",
"name": "Landed Cost Item", "name": "Landed Cost Item",

View File

@@ -17,7 +17,7 @@ class LandedCostItem(Document):
amount: DF.Currency amount: DF.Currency
applicable_charges: DF.Currency applicable_charges: DF.Currency
cost_center: DF.Link | None cost_center: DF.Link | None
description: DF.TextEditor description: DF.TextEditor | None
is_fixed_asset: DF.Check is_fixed_asset: DF.Check
item_code: DF.Link item_code: DF.Link
parent: DF.Data parent: DF.Data