Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
The Question has been closedby
how can I write a def _getdaysbetween fot timedelta between 2 date in a module?
my .py code (for a webkit report) is:
def _getdaysbetween(self, date_start, write_date):
sql = "SELECT write_date - date_start from purchase_requisition as pr
where pr.date_start = \'%s\' AND pr.write_date = \'%s\' " %(date_start, write_date)
but when I want to create a report from purchase requisition, this error show:
SyntaxError: EOL while scanning string literal
I don't know what is problem?
Thanks for your help
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.Register
Odoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.Test it now
|Asked: 1/21/16, 1:04 AM|
|Seen: 242 times|
|Last updated: 1/21/16, 1:38 AM|