Odoo Hilfe


2 Answers
Jose Vasquez
05.05.16, 09:04

Hi John Doe, try this:

from openerp.exceptions import UserError

res = self.search([('type','=',inv_type),('number','=',str(number_down)),('date_invoice','>',date_invoice)])
raise osv.except_osv(_('Title'),_(res))

or to see in your log:

import logging
_logger = logging.getLogger(__name__)

res = self.search([('type','=',inv_type),('number','=',str(number_down)),('date_invoice','>',date_invoice)])
logger.info('Content: %r',res)

I hope it helps you, regards.

Dr Obx
05.05.16, 09:48

res = self.search([('type','=',inv_type),('number','=',str(number_down)),('date_invoice','>',date_invoice)])raise osv.except_osv(_('Title'),_(res)
#If you want just see what's inside of your res add
print res
then in console you will see what's in there
this is the easiest thing you can do. I think ...

Fragen Sie
Keep Informed
1 Verfolger
About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

Odoo Training Center

Access to our eLearning platform and experience all Odoo Apps through learning videos, use cases and quizzes.

Test it now