diff --git a/addons/l10n_in_edi_ewaybill/i18n/l10n_in_edi_ewaybill.pot b/addons/l10n_in_edi_ewaybill/i18n/l10n_in_edi_ewaybill.pot index 770e03b57d7..67c734f41b9 100644 --- a/addons/l10n_in_edi_ewaybill/i18n/l10n_in_edi_ewaybill.pot +++ b/addons/l10n_in_edi_ewaybill/i18n/l10n_in_edi_ewaybill.pot @@ -33,6 +33,12 @@ msgstr "" msgid "- Document Type" msgstr "" +#. module: l10n_in_edi_ewaybill +#: code:addons/l10n_in_edi_ewaybill/models/account_edi_format.py:0 +#, python-format +msgid "- Selected Transporter is missing GSTIN" +msgstr "" + #. module: l10n_in_edi_ewaybill #: code:addons/l10n_in_edi_ewaybill/models/account_edi_format.py:0 #, python-format diff --git a/addons/l10n_in_edi_ewaybill/models/account_edi_format.py b/addons/l10n_in_edi_ewaybill/models/account_edi_format.py index 572d17c6baa..14ffa9af31c 100755 --- a/addons/l10n_in_edi_ewaybill/models/account_edi_format.py +++ b/addons/l10n_in_edi_ewaybill/models/account_edi_format.py @@ -87,6 +87,8 @@ class AccountEdiFormat(models.Model): error_message.append(_("- Transportation Mode")) elif move.l10n_in_mode == "0" and not move.l10n_in_transporter_id: error_message.append(_("- Transporter is required when E-waybill is managed by transporter")) + elif move.l10n_in_mode == "0" and move.l10n_in_transporter_id and not move.l10n_in_transporter_id.vat: + error_message.append(_("- Selected Transporter is missing GSTIN")) elif move.l10n_in_mode == "1": if not move.l10n_in_vehicle_no and move.l10n_in_vehicle_type: error_message.append(_("- Vehicle Number and Type is required when Transportation Mode is By Road"))