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:34 +01:00
parent f16e38e259
commit 4c3046d5ae
34 changed files with 965 additions and 817 deletions

View file

@ -19,7 +19,10 @@ msgid ""
"<span class=\"text-warning\" attrs=\"{'invisible': [('no_record', '=', False)]}\">No records\n"
" </span>"
msgstr ""
"<span class=\"text-warning\" attrs=\"{'invisible': [('no_record', '=', False)]}\">Nema zapisa\n"
" </span>"
# taken from hr.po
#. module: base_comment_template
#: model:ir.model.fields,field_description:base_comment_template.field_base_comment_template__active
msgid "Active"
@ -75,6 +78,7 @@ msgstr "Odaberite motor:"
msgid "Choose an example"
msgstr "Odaberite neki primjer"
# taken from hr.po
#. module: base_comment_template
#: model_terms:ir.ui.view,arch_db:base_comment_template.view_base_comment_template_form
msgid "Comment"
@ -82,18 +86,12 @@ msgstr "Komentar"
#. module: base_comment_template
#: model:ir.model.fields,field_description:base_comment_template.field_comment_template__comment_template_ids
#: model:ir.model.fields,field_description:base_comment_template.field_ir_model__is_comment_template
msgid "Comment Template"
msgstr "Predložak komentara"
# taken from hr.po
#. module: base_comment_template
#: model:ir.actions.act_window,name:base_comment_template.action_base_comment_template
#: model:ir.model.fields,field_description:base_comment_template.field_res_partner__base_comment_template_ids
#: model:ir.model.fields,field_description:base_comment_template.field_res_users__base_comment_template_ids
#: model:ir.ui.menu,name:base_comment_template.reports_base_comment_template_menuitem
#: model_terms:ir.ui.view,arch_db:base_comment_template.view_base_comment_template_form
#: model_terms:ir.ui.view,arch_db:base_comment_template.view_base_comment_template_search
#: model_terms:ir.ui.view,arch_db:base_comment_template.view_partner_form
msgid "Comment Templates"
msgstr "Predlošci komentara"
@ -102,25 +100,27 @@ msgstr "Predlošci komentara"
msgid "Comments Template"
msgstr "Šablon komentara"
# taken from hr.po
#. module: base_comment_template
#: model:ir.model.fields,field_description:base_comment_template.field_base_comment_template__company_id
msgid "Company"
msgstr "Tvrtka"
# taken from hr.po
#. module: base_comment_template
#: model:ir.model,name:base_comment_template.model_res_partner
msgid "Contact"
msgstr "Kontakt"
# taken from hr.po
#. module: base_comment_template
#: model:ir.model.fields,field_description:base_comment_template.field_base_comment_template__create_uid
#: model:ir.model.fields,field_description:base_comment_template.field_base_comment_template_preview__create_uid
msgid "Created by"
msgstr "Kreirao"
# taken from hr.po
#. module: base_comment_template
#: model:ir.model.fields,field_description:base_comment_template.field_base_comment_template__create_date
#: model:ir.model.fields,field_description:base_comment_template.field_base_comment_template_preview__create_date
msgid "Created on"
msgstr "Kreirano"
@ -129,9 +129,9 @@ msgstr "Kreirano"
msgid "Discard"
msgstr "Napusti"
# taken from hr.po
#. module: base_comment_template
#: model:ir.model.fields,field_description:base_comment_template.field_base_comment_template__display_name
#: model:ir.model.fields,field_description:base_comment_template.field_base_comment_template_preview__display_name
msgid "Display Name"
msgstr "Prikaži naziv"
@ -152,13 +152,11 @@ msgstr "Globalni šablon"
#. module: base_comment_template
#: model:ir.model.fields,field_description:base_comment_template.field_base_comment_template__id
#: model:ir.model.fields,field_description:base_comment_template.field_base_comment_template_preview__id
msgid "ID"
msgstr "ID"
#. module: base_comment_template
#: model:ir.model.fields,field_description:base_comment_template.field_base_comment_template__model_ids
#: model:ir.model.fields,field_description:base_comment_template.field_base_comment_template_preview__model_ids
msgid "IR Model"
msgstr "IR model"
@ -168,6 +166,8 @@ msgid ""
"If set, the comment template will be available only for the selected "
"company."
msgstr ""
"Ako je postavljeno, predložak komentara će biti dostupan samo za odabranu "
"kompaniju."
#. module: base_comment_template
#: model:ir.model.fields,help:base_comment_template.field_base_comment_template__partner_ids
@ -175,6 +175,8 @@ msgid ""
"If set, the comment template will be available only for the selected "
"partner."
msgstr ""
"Ako je postavljeno, predložak komentara će biti dostupan samo za odabranog "
"partnera."
#. module: base_comment_template
#: model:ir.model.fields.selection,name:base_comment_template.selection__base_comment_template__engine__inline_template
@ -186,21 +188,21 @@ msgstr "Inline šablon"
msgid "Inline template"
msgstr "Inline šablon"
# taken from hr.po
#. module: base_comment_template
#: model:ir.model.fields,field_description:base_comment_template.field_base_comment_template____last_update
#: model:ir.model.fields,field_description:base_comment_template.field_base_comment_template_preview____last_update
msgid "Last Modified on"
msgstr "Zadnje mijenjano"
# taken from hr.po
#. module: base_comment_template
#: model:ir.model.fields,field_description:base_comment_template.field_base_comment_template__write_uid
#: model:ir.model.fields,field_description:base_comment_template.field_base_comment_template_preview__write_uid
msgid "Last Updated by"
msgstr "Zadnji ažurirao"
# taken from hr.po
#. module: base_comment_template
#: model:ir.model.fields,field_description:base_comment_template.field_base_comment_template__write_date
#: model:ir.model.fields,field_description:base_comment_template.field_base_comment_template_preview__write_date
msgid "Last Updated on"
msgstr "Zadnje ažurirano"
@ -211,14 +213,12 @@ msgstr "Model"
#. module: base_comment_template
#: model:ir.model,name:base_comment_template.model_ir_model
#: model:ir.model.fields,field_description:base_comment_template.field_base_comment_template__models
msgid "Models"
msgstr "Modeli"
# taken from hr.po
#. module: base_comment_template
#: model:ir.model.fields,field_description:base_comment_template.field_base_comment_template__name
#: model_terms:ir.ui.view,arch_db:base_comment_template.view_base_comment_template_form
#: model_terms:ir.ui.view,arch_db:base_comment_template.view_partner_form
msgid "Name"
msgstr "Naziv"
@ -237,6 +237,7 @@ msgstr "Nema zapisa"
msgid "Partner"
msgstr "Partner"
# taken from hr.po
#. module: base_comment_template
#: model:ir.model.fields,field_description:base_comment_template.field_base_comment_template__position
msgid "Position on document"
@ -254,7 +255,6 @@ msgstr "Pregled"
#. module: base_comment_template
#: model:ir.model.fields.selection,name:base_comment_template.selection__base_comment_template__engine__qweb
#: model:ir.model.fields.selection,name:base_comment_template.selection__base_comment_template_preview__engine__qweb
msgid "QWeb"
msgstr "QWeb"
@ -280,14 +280,13 @@ msgstr "Sekvenca"
#. module: base_comment_template
#. odoo-python
#: code:addons/base_comment_template/models/base_comment_template.py:0
#: code:addons/base_comment_template/models/base_comment_template.py
#, python-format
msgid "Some model (%s) not found"
msgstr "Neki model (%s) nije pronađen"
#. module: base_comment_template
#: model:ir.model.fields,help:base_comment_template.field_res_partner__base_comment_template_ids
#: model:ir.model.fields,help:base_comment_template.field_res_users__base_comment_template_ids
msgid "Specific partner comments that can be included in reports"
msgstr "Specifični komentari partnera koji se mogu uključiti u izvještaje"
@ -318,11 +317,12 @@ msgstr "Manji broj = Viši prioritet"
#. module: base_comment_template
#: model:ir.model.fields,help:base_comment_template.field_base_comment_template__model_ids
#: model:ir.model.fields,help:base_comment_template.field_base_comment_template_preview__model_ids
msgid ""
"This comment template will be available on this models. You can see here "
"only models allowed to set the coment template."
msgstr ""
"Ovaj predložak komentara će biti dostupan na ovim modelima. Ovdje možete "
"vidjeti samo modele kojima je dozvoljeno postavljanje predloška komentara."
#. module: base_comment_template
#: model:ir.model.fields,help:base_comment_template.field_base_comment_template__domain
@ -330,12 +330,16 @@ msgid ""
"This comment template will be available only for objects that satisfy the "
"condition"
msgstr ""
"Ovaj predložak komentara će biti dostupan samo za objekte koji zadovoljavaju"
" uslov"
#. module: base_comment_template
#: model:ir.model.fields,help:base_comment_template.field_base_comment_template__engine
msgid ""
"This field allows to select the engine to use for rendering the template."
msgstr ""
"Ovo polje omogućava odabir engine-a za korištenje pri renderovanju "
"predloška."
#. module: base_comment_template
#: model:ir.model.fields,help:base_comment_template.field_base_comment_template__position
@ -363,6 +367,8 @@ msgid ""
"base.comment.template to put header and footer in reports based on created "
"comment templates"
msgstr ""
"base.comment.template za postavljanje zaglavlja i podnožja u izvještajima na"
" osnovu kreiranih predložaka komentara"
#. module: base_comment_template
#: model_terms:ir.ui.view,arch_db:base_comment_template.base_comment_template_preview_form