Guesmi
Guesmi

Reputation: 155

Error %d format , not list

any help please

I have this code (odoo 10)

email_from_ids = self.env['ir.config_parameter'].search(self, [('key', '=', 'auto_backup_from_email_Id')])

I have this error

TypeError: %d format: a number is required, not list

I d'ont understand what mean

Upvotes: 0

Views: 77

Answers (1)

Dayana
Dayana

Reputation: 1548

You could try:

email_from_ids = self.env['ir.config_parameter'].search([('key', '=', 'auto_backup_from_email_Id')]) 

without the self varibale in the search method. I hope this help you.

Upvotes: 1

Related Questions