Skip to content

Commit

Permalink
[DEL] l10n_es_pos: deleting duplicated field
Browse files Browse the repository at this point in the history
  • Loading branch information
suker committed Mar 28, 2023
1 parent e546f36 commit 31b725c
Showing 1 changed file with 6 additions and 19 deletions.
25 changes: 6 additions & 19 deletions l10n_es_pos/views/res_config_settings_views.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,24 +25,6 @@
name="pos_l10n_es_simplified_invoice_sequence_id"
invisible="1"
/>
<div
class="content-group mt16"
attrs="{'invisible': [('pos_iface_l10n_es_simplified_invoice', '=', False)]}"
>
<div class="row mt16">
<label
string="Invoice Journal"
for="pos_invoice_journal_id"
class="col-lg-3 o_light_label"
/>
<field
name="pos_invoice_journal_id"
domain="[('company_id', '=', company_id), ('type', '=', 'sale')]"
attrs="{'required': [('pos_l10n_es_simplified_invoice_sequence_id', '=', True)]}"
context="{'default_company_id': company_id, 'default_type': 'sale'}"
/>
</div>
</div>
</div>
</div>
<div
Expand All @@ -67,6 +49,11 @@
</div>
</div>
</xpath>

<xpath expr="//field[@name='pos_invoice_journal_id']" position="attributes">
<attribute name="attrs">{'required': ['|', ('pos_company_has_template', '=', True), ('pos_l10n_es_simplified_invoice_sequence_id', '=', True)]}</attribute>
</xpath>

</field>
</record>
</odoo>
</odoo>

0 comments on commit 31b725c

Please sign in to comment.