[IMP] l10n_in_edi: check ship from address name is must set
Current behaviour before PR: 1.Go to Company Partner 2.Create a shipping address 3.Set this shipping address in the warehouse 4.Create a sale order with that warehouse 5.Create an Invoice Then that invoice can't be send because the address name is empty. Current behaviour after PR: If anyone creates a contact under the company as the shipping address and if the name is empty then in this case it assigns the company name Task:3259223 closes odoo/odoo#119896 X-original-commit: 2f395a9baab057293b158fab34f5108786889d7d Signed-off-by: Brice Bartoletti (bib) <bib@odoo.com>
This commit is contained in:
@@ -276,7 +276,7 @@ class AccountEdiFormat(models.Model):
|
||||
"GSTIN": partner.vat or "URP",
|
||||
})
|
||||
else:
|
||||
partner_details.update({"Nm": partner.name})
|
||||
partner_details.update({"Nm": partner.name or partner.commercial_partner_id.name})
|
||||
# For no country I would suppose it is India, so not sure this is super right
|
||||
if is_overseas and (not partner.country_id or partner.country_id.code != 'IN'):
|
||||
partner_details.update({
|
||||
|
||||
Reference in New Issue
Block a user