From 1c9883ecc721658a93857bbdf330072c9fa999c2 Mon Sep 17 00:00:00 2001 From: Ali <010109ali@gmail.com> Date: Wed, 24 Jun 2026 15:24:46 +0000 Subject: [PATCH] refactor(item): move Agricultural Goods checkbox into the flags column Place the Item agricultural_goods checkbox next to the other Item flags (after is_fixed_asset) on the Details tab instead of among the link fields. Co-Authored-By: Claude Opus 4.8 (1M context) --- jey_erp/custom_fields.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/jey_erp/custom_fields.py b/jey_erp/custom_fields.py index e47a6a3..947ec0a 100644 --- a/jey_erp/custom_fields.py +++ b/jey_erp/custom_fields.py @@ -1091,12 +1091,13 @@ def create_custom_fields(): ), # Marks an item as agricultural goods. A document can be flagged # agricultural while only some of its items actually count as - # agricultural goods for tax reporting. + # agricultural goods for tax reporting. Placed in the checkbox + # column on the Details tab, next to the other Item flags. dict( fieldname='agricultural_goods', label='Agricultural Goods', fieldtype='Check', - insert_after='product_category', + insert_after='is_fixed_asset', default=0, in_standard_filter=1 ),