[IMP] snailmail: adding dbuuid to the request for free credits
change the payload of a request to adapt to 2cd0b6acf1e22642607edf05a220f5ab8af12164.
This commit is contained in:
@@ -127,6 +127,7 @@ class SnailmailLetter(models.Model):
|
||||
}
|
||||
"""
|
||||
account_token = self.env['iap.account'].get('snailmail').account_token
|
||||
dbuuid = self.env['ir.config_parameter'].sudo().get_param('database.uuid')
|
||||
documents = []
|
||||
|
||||
batch = len(self) > 1
|
||||
@@ -186,6 +187,7 @@ class SnailmailLetter(models.Model):
|
||||
|
||||
return {
|
||||
'account_token': account_token,
|
||||
'dbuuid': dbuuid,
|
||||
'documents': documents,
|
||||
'options': {
|
||||
'color': self and self[0].color,
|
||||
|
||||
Reference in New Issue
Block a user