[FIX] snailmail: send the contact_address
Before this commit, the param contact_address was not sent to the service. However, the service need it to correctly send the letter if the format is wrong. OPW-1981168 closes odoo/odoo#33855 Signed-off-by: Pierre Rousseau (pro) <pro@odoo.com>
This commit is contained in:
@@ -138,6 +138,7 @@ class SnailmailLetter(models.Model):
|
||||
'letter_id': letter.id,
|
||||
'res_model': letter.model,
|
||||
'res_id': letter.res_id,
|
||||
'contact_address': letter.partner_id.with_context(snailmail_layout=True, show_address=True).name_get()[0][1],
|
||||
'address': {
|
||||
'name': letter.partner_id.name,
|
||||
'street': letter.partner_id.street,
|
||||
|
||||
Reference in New Issue
Block a user