Skip to content

Commit af183e7

Browse files
committed
[IMP] partner_autocomplete: send db version and lang to IAP
task-4746445 X-original-commit: f34cc5c Part-of: odoo#215210 Signed-off-by: Ruben Gomes (rugo) <[email protected]> Signed-off-by: Ricardo Gomes Rodrigues (rigr) <[email protected]>
1 parent 2a157ae commit af183e7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

addons/partner_autocomplete/models/iap_autocomplete_api.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
import logging
55

6-
from odoo import api, models, exceptions, _
6+
from odoo import api, models, exceptions, _, release
77
from odoo.addons.iap.tools import iap_tools
88
from requests.exceptions import HTTPError
99

@@ -24,6 +24,8 @@ def _contact_iap(self, local_endpoint, action, params, timeout=15):
2424
raise ValueError(_('No account token'))
2525
params.update({
2626
'db_uuid': self.env['ir.config_parameter'].sudo().get_param('database.uuid'),
27+
'db_version': release.version,
28+
'db_lang': self.env.lang,
2729
'account_token': account.account_token,
2830
'country_code': self.env.company.country_id.code,
2931
'zip': self.env.company.zip,

0 commit comments

Comments
 (0)