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:30 +01:00
parent 02ea62a5cd
commit 543426517b
14 changed files with 273 additions and 287 deletions

View file

@ -40,7 +40,6 @@ msgstr "Prikazani naziv"
#. module: product_pack
#: model:ir.model.fields,field_description:product_pack.field_product_product__used_in_pack_line_ids
#: model:ir.model.fields,field_description:product_pack.field_product_template__used_in_pack_line_ids
msgid "Found in packs"
msgstr "Pronađeno u paketima"
@ -51,11 +50,12 @@ msgstr "ID"
#. module: product_pack
#: model:ir.model.fields,help:product_pack.field_product_product__pack_modifiable
#: model:ir.model.fields,help:product_pack.field_product_template__pack_modifiable
msgid ""
"If you check this field yo will be able to edit sale/purchase order line "
"relate to its component"
msgstr ""
"If you check this field yo will be able to edit sale/purchase order line "
"relate to its component"
#. module: product_pack
#: model:ir.model.fields.selection,name:product_pack.selection__product_template__pack_component_price__ignored
@ -64,13 +64,11 @@ msgstr "Ignorisano"
#. module: product_pack
#: model:ir.model.fields,field_description:product_pack.field_product_product__pack_ok
#: model:ir.model.fields,field_description:product_pack.field_product_template__pack_ok
msgid "Is Pack?"
msgstr "Je li paket?"
#. module: product_pack
#: model:ir.model.fields,help:product_pack.field_product_product__pack_ok
#: model:ir.model.fields,help:product_pack.field_product_template__pack_ok
msgid "Is a Product Pack?"
msgstr "Je li paket proizvoda?"
@ -96,22 +94,27 @@ msgstr "Nedetaljno"
#. module: product_pack
#: model:ir.model.fields,help:product_pack.field_product_product__pack_component_price
#: model:ir.model.fields,help:product_pack.field_product_template__pack_component_price
msgid ""
"On sale orders or purchase orders:\n"
"* Detailed per component: Detail lines with prices.\n"
"* Totalized in main product: Detail lines merging lines prices on pack (don't show component prices).\n"
"* Ignored: Use product pack price (ignore detail line prices)."
msgstr ""
"On sale orders or purchase orders:\n"
"* Detailed per component: Detail lines with prices.\n"
"* Totalized in main product: Detail lines merging lines prices on pack (don't show component prices).\n"
"* Ignored: Use product pack price (ignore detail line prices)."
#. module: product_pack
#: model:ir.model.fields,help:product_pack.field_product_product__pack_type
#: model:ir.model.fields,help:product_pack.field_product_template__pack_type
msgid ""
"On sale orders or purchase orders:\n"
"* Detailed: Display components individually in the sale order.\n"
"* Non Detailed: Do not display components individually in the sale order."
msgstr ""
"On sale orders or purchase orders:\n"
"* Detailed: Display components individually in the sale order.\n"
"* Non Detailed: Do not display components individually in the sale order."
#. module: product_pack
#: model_terms:ir.ui.view,arch_db:product_pack.product_template_form_view
@ -140,25 +143,21 @@ msgstr "Pack CPU (Non Detailed - Totalized Components Price)"
#. module: product_pack
#: model:ir.model.fields,field_description:product_pack.field_product_product__pack_component_price
#: model:ir.model.fields,field_description:product_pack.field_product_template__pack_component_price
msgid "Pack Component Price"
msgstr "Cijena komponente paketa"
#. module: product_pack
#: model:ir.model.fields,field_description:product_pack.field_product_product__pack_type
#: model:ir.model.fields,field_description:product_pack.field_product_template__pack_type
msgid "Pack Display Type"
msgstr "Vrsta prikaza paketa"
#. module: product_pack
#: model:ir.model.fields,field_description:product_pack.field_product_product__pack_modifiable
#: model:ir.model.fields,field_description:product_pack.field_product_template__pack_modifiable
msgid "Pack Modifiable"
msgstr "Paket se može mijenjati"
#. module: product_pack
#: model:ir.model.fields,field_description:product_pack.field_product_product__pack_modifiable_invisible
#: model:ir.model.fields,field_description:product_pack.field_product_template__pack_modifiable_invisible
msgid "Pack Modifiable Invisible"
msgstr "Pack Modifiable Invisible"
@ -184,24 +183,20 @@ msgstr "Linija paketa proizvoda"
#. module: product_pack
#: model:ir.model.fields,field_description:product_pack.field_product_product__pack_line_ids
#: model:ir.model.fields,field_description:product_pack.field_product_template__pack_line_ids
#: model_terms:ir.ui.view,arch_db:product_pack.nan_product_pack_form
#: model_terms:ir.ui.view,arch_db:product_pack.product_template_only_form_view
msgid "Pack Products"
msgstr "Paket proizvoda"
#. module: product_pack
#. odoo-python
#: code:addons/product_pack/models/product_template.py:0
#: code:addons/product_pack/models/product_template.py:0
#: code:addons/product_pack/models/product_template.py
#, python-format
msgid ""
"Pack lines products company must be the same as the parent product company"
msgstr ""
"Pack lines products company must be the same as the parent product company"
#. module: product_pack
#: model:ir.model.fields,help:product_pack.field_product_product__used_in_pack_line_ids
#: model:ir.model.fields,help:product_pack.field_product_template__used_in_pack_line_ids
msgid "Packs where product is used."
msgstr "Packs where product is used."
@ -212,7 +207,6 @@ msgstr "Nadređeni proizvod"
#. module: product_pack
#: model:ir.model,name:product_pack.model_product_template
#: model:ir.model.fields,field_description:product_pack.field_product_pack_line__product_id
msgid "Product"
msgstr "Artikal"
@ -233,7 +227,6 @@ msgstr "Linija paketa proizvoda"
#. module: product_pack
#: model:ir.model.fields,help:product_pack.field_product_product__pack_line_ids
#: model:ir.model.fields,help:product_pack.field_product_template__pack_line_ids
msgid "Products that are part of this pack."
msgstr "Proizvodi koji su dio ovog paketa"
@ -244,11 +237,12 @@ msgstr "Količina"
#. module: product_pack
#: model:ir.model.fields,help:product_pack.field_product_product__pack_modifiable_invisible
#: model:ir.model.fields,help:product_pack.field_product_template__pack_modifiable_invisible
msgid ""
"Technical field in order to compute the availability of the Pack Modifiable "
"field"
msgstr ""
"Technical field in order to compute the availability of the Pack Modifiable "
"field"
#. module: product_pack
#: model:ir.model.fields.selection,name:product_pack.selection__product_template__pack_component_price__totalized
@ -257,12 +251,14 @@ msgstr "Ukupno u glavnom proizvodu"
#. module: product_pack
#. odoo-python
#: code:addons/product_pack/models/product_pack_line.py:0
#: code:addons/product_pack/models/product_pack_line.py
#, python-format
msgid ""
"You cannot set recursive packs.\n"
"Product id: %s"
msgstr ""
"You cannot set recursive packs.\n"
"Product id: %s"
#. module: product_pack
#: model_terms:ir.ui.view,arch_db:product_pack.product_template_only_form_view