Skip to content

Commit

Permalink
[FIX] l10n_in_edi_ewaybill: delivery challan in invoice ewaybill
Browse files Browse the repository at this point in the history
Hide the E-Waybill Document Type if the document type is
"delivery challan". Because functionality could not be accessed from
the invoice. So, it's unusable here.

task-3961036

closes odoo#170462

X-original-commit: f3a6729
Signed-off-by: Josse Colpaert <[email protected]>
Signed-off-by: Harsh Modi (hamo) <[email protected]>
  • Loading branch information
hamo-odoo committed Jun 22, 2024
1 parent da434ca commit 75e7047
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addons/l10n_in_edi_ewaybill/views/account_move_views.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<group name="ewaybill_group">
<group string="Transaction Details" name="Transaction_group"
invisible="not l10n_in_edi_ewaybill_direct_api">
<field name="l10n_in_type_id" domain="[('allowed_supply_type', 'in', ('in', 'both'))] if move_type in ('in_invoice', 'in_refund', 'in_receipt') else [('allowed_supply_type', 'in', ('out', 'both'))]"/>
<field name="l10n_in_type_id" domain="[('code', '!=', 'CHL'), ('allowed_supply_type', 'in', ('in', 'both'))] if move_type in ('in_invoice', 'in_refund', 'in_receipt') else [('code', '!=', 'CHL'), ('allowed_supply_type', 'in', ('out', 'both'))]"/>
</group>
<group string="Transportation Details" name="transportation_group">
<field name="l10n_in_mode" widget="radio" options="{'horizontal': True}"/>
Expand Down

0 comments on commit 75e7047

Please sign in to comment.