Skip to content

Commit

Permalink
[IMP] l10n_it_account_tax_kind: allow to search and group taxes by ki…
Browse files Browse the repository at this point in the history
…nd_id

Forward port of OCA#2322, solution for OCA#2323

Co-authored-by: eLBati <lb@takobi.online>
  • Loading branch information
TheMule71 and eLBati committed Nov 2, 2022
1 parent 0580290 commit ef91a23
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
1 change: 1 addition & 0 deletions l10n_it_account_tax_kind/i18n/l10n_it_account_tax_kind.pot
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ msgstr ""

#. module: l10n_it_account_tax_kind
#: model:ir.model.fields,field_description:l10n_it_account_tax_kind.field_account_tax__kind_id
#: model_terms:ir.ui.view,arch_db:l10n_it_account_tax_kind.view_account_tax_search_tax_kind
msgid "Exemption Kind"
msgstr ""

Expand Down
20 changes: 20 additions & 0 deletions l10n_it_account_tax_kind/view/account_tax_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,24 @@
</field>
</record>

<record id="view_account_tax_search_tax_kind" model="ir.ui.view">
<field name="name">view_account_tax_search_tax_kind</field>
<field name="model">account.tax</field>
<field name="inherit_id" ref="account.view_account_tax_search" />
<field name="arch" type="xml">
<xpath expr="//filter[@name='inactive']" position="after">
<separator />
<field name="kind_id" />
</xpath>
<xpath expr="//filter[@name='taxapp']" position="after">
<filter
string="Exemption Kind"
name="ex_kind"
domain="[]"
context="{'group_by': 'kind_id'}"
/>
</xpath>
</field>
</record>

</odoo>

0 comments on commit ef91a23

Please sign in to comment.