[IMP] l10n_in_edi_ewaybill: transporter id must have GST number
In this commit, when user has created a transporter from the invoice view and if it's forget to enter GSTIN Then we throws error to set GSTIN in transporter transporter always have GSTIN, without having GSTIN any one is not allowed to transport goods in India. task - 3262215 closes odoo/odoo#120183 X-original-commit: d09c9358f721add6f585735670085d16bcf2766c Signed-off-by: Quentin De Paoli <qdp@odoo.com> Signed-off-by: Xavier Dollé (xdo) <xdo@odoo.com>
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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"))
|
||||
|
||||
Reference in New Issue
Block a user