[FIX] l10n_id: show kode transaksi outside accounting
Currently the field `Kode Transaksi` can be found inside the accounting tab. This fix will move it under the tax field. `Kode Transaksi` is a field that should be used in the sale flow and is currently unavailabe for sales team. Steps to reproduce: ------------------- * Install **l10n_id** * Create a company with indonesian localization * Switch to that company * Creat a contact * Toggle the checkbox next to `Tax ID` * Under the `Accounting` tab, you can find `Kode transaksi`. Sales team don't have access to the accounting tab, and thus not to `Kode transaksi` either. Why the fix: ------------ Technically what we want here is to have the field for `Kode Transaksi` after the `vat` field from this view https://github.com/odoo/odoo/blob/04593b265b765f7a6ee079f21bad6a1cf0e5d094/odoo/addons/base/views/res_partner_views.xml#L205-L210 Two possible solutions for this fix: * Fetch the path to `group/group` and put the field inside. * Fetch the path to the `vat` field and put the field after. This would also require to change the priority of the view starting from saas-16.3 because the `vat` field is being moved in this view: https://github.com/odoo/odoo/blob/8ccde3f101cdb6ca41fe29cc5b4252f13745774a/addons/base_vat/views/res_partner_views.xml#L14-L18 By changing the priority, it would allow for `Kode transaksi` to be place after the `vat_vies_container`. Else it would be inside, which does not make sense inthis case. opw-3731357 closes odoo/odoo#156005 X-original-commit: 32f1ae8f54f0d0e78521dab4e6730f39d5b62612 Signed-off-by: de Wouters de Bouchout Jean-Benoît (jbw) <jbw@odoo.com> Signed-off-by: Sarah Bellefroid (sbel) <sbel@odoo.com>
This commit is contained in:
@@ -6,13 +6,13 @@
|
||||
<field name="model">res.partner</field>
|
||||
<field name="inherit_id" ref="base.view_partner_form"/>
|
||||
<field name="arch" type="xml">
|
||||
<field name="vat" position="after">
|
||||
<xpath expr="//group/group" position="inside">
|
||||
<field name="l10n_id_pkp" invisible="country_id and country_code != 'ID'"/>
|
||||
</field>
|
||||
<field name="l10n_id_kode_transaksi" invisible="not l10n_id_pkp"/>
|
||||
</xpath>
|
||||
<page name="accounting" position="inside">
|
||||
<group string="Indonesian Taxes" invisible="not l10n_id_pkp">
|
||||
<group>
|
||||
<field name="l10n_id_kode_transaksi"/>
|
||||
<field name="l10n_id_nik"/>
|
||||
</group>
|
||||
<group>
|
||||
|
||||
Reference in New Issue
Block a user