Hide irrelevant fields for Line Item Extraction rules

- Make target_field hidden and not required for line_item rules
- Hide Pattern Matching section for line_item rules
- Hide Data Type and Parsing section for line_item rules
- Hide stop_on_match field for line_item rules
- Hide Transformation and Validation tabs for line_item rules
- Clean up model: remove required=True from target_field and match_pattern

Version: 16.0.1.0.20

🤖 assisted by claude

🤖 assisted by claude
This commit is contained in:
Ernad Husremovic 2025-11-05 23:02:32 +01:00
parent 1c779d211b
commit 6af9cfd92c
79 changed files with 741 additions and 953 deletions

View file

@ -21,6 +21,10 @@ msgid ""
"You purchase a product by packaging of 5 products.\n"
"When the user will put 3 as quantity, the system can force the quantity to the superior unit (5 for this example)."
msgstr ""
"Determine if during the creation of a purchase order line, the quantity should be forced with a multiple of the packaging.\n"
"Example:\n"
"You purchase a product by packaging of 5 products.\n"
"When the user will put 3 as quantity, the system can force the quantity to the superior unit (5 for this example)."
#. module: purchase_only_by_packaging
#: model:ir.model.fields,field_description:purchase_only_by_packaging.field_product_packaging__force_purchase_qty
@ -34,32 +38,33 @@ msgstr "Level management for product.packaging"
#. module: purchase_only_by_packaging
#: model:ir.model.fields,field_description:purchase_only_by_packaging.field_product_product__min_purchasable_qty
#: model:ir.model.fields,field_description:purchase_only_by_packaging.field_product_template__min_purchasable_qty
msgid "Min Purchasable Qty"
msgstr "Min Purchasable Qty"
#. module: purchase_only_by_packaging
#: model:ir.model.fields,help:purchase_only_by_packaging.field_product_product__min_purchasable_qty
#: model:ir.model.fields,help:purchase_only_by_packaging.field_product_template__min_purchasable_qty
msgid ""
"Minimum purchasable quantity, according to the available packagings, if Only"
" Purchase by Packaging is set."
msgstr ""
"Minimum purchasable quantity, according to the available packagings, if Only"
" Nabavni by Packaging is set."
#. module: purchase_only_by_packaging
#: model:ir.model.fields,field_description:purchase_only_by_packaging.field_product_product__purchase_only_by_packaging
#: model:ir.model.fields,field_description:purchase_only_by_packaging.field_product_template__purchase_only_by_packaging
msgid "Only purchase by packaging"
msgstr "Only purchase by packaging"
#. module: purchase_only_by_packaging
#. odoo-python
#: code:addons/purchase_only_by_packaging/models/product_packaging_level.py:0
#: code:addons/purchase_only_by_packaging/models/product_packaging_level.py
#, python-format
msgid ""
"Packaging level \"{}\" must stay with \"Can be purchased\", at least one "
"product configured as \"purchase only by packaging\" is using it."
msgstr ""
"Packaging level \"{}\" must stay with \"Can be purchased\", at least one "
"product configured as \"purchase only by packaging\" is using it."
#. module: purchase_only_by_packaging
#: model:ir.model,name:purchase_only_by_packaging.model_product_template
@ -68,29 +73,34 @@ msgstr "Artikal"
#. module: purchase_only_by_packaging
#. odoo-python
#: code:addons/purchase_only_by_packaging/models/purchase_order_line.py:0
#: code:addons/purchase_only_by_packaging/models/purchase_order_line.py
#, python-format
msgid ""
"Product %s can only be purchased with a packaging and a packaging quantity."
msgstr ""
"Proizvod %s can only be purchased with a packaging and a packaging quantity."
#. module: purchase_only_by_packaging
#. odoo-python
#: code:addons/purchase_only_by_packaging/models/product_template.py:0
#: code:addons/purchase_only_by_packaging/models/product_template.py
#, python-format
msgid ""
"Product %s cannot be defined to be purchased only by packaging if it cannot "
"be purchased."
msgstr ""
"Proizvod %s cannot be defined to be purchased only by packaging if it cannot"
" be purchased."
#. module: purchase_only_by_packaging
#. odoo-python
#: code:addons/purchase_only_by_packaging/models/product_template.py:0
#: code:addons/purchase_only_by_packaging/models/product_template.py
#, python-format
msgid ""
"Product %s cannot be defined to be purchased only by packaging if it does "
"not have any packaging that can be purchased defined."
msgstr ""
"Proizvod %s cannot be defined to be purchased only by packaging if it does "
"not have any packaging that can be purchased defined."
#. module: purchase_only_by_packaging
#: model:ir.model,name:purchase_only_by_packaging.model_product_packaging
@ -109,8 +119,9 @@ msgstr "Stavka naloga za nabavu"
#. module: purchase_only_by_packaging
#: model:ir.model.fields,help:purchase_only_by_packaging.field_product_product__purchase_only_by_packaging
#: model:ir.model.fields,help:purchase_only_by_packaging.field_product_template__purchase_only_by_packaging
msgid ""
"Restrict the usage of this product on purchase order lines without packaging"
" defined"
msgstr ""
"Restrict the usage of this product on purchase order lines without packaging"
" defined"