Odoo Help


This community 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.


sum of minutes not calculated in customized timesheet

on 4/28/16, 5:34 AM 268 views

cretaed customized timesheet need to get the total minutes and hour ..but minutes are not showing in total only hour caluculated accuratly.this is my code

def amount_all(self, cr, uid, ids, field, arg, context=None):  res = {}  for order in self.browse(cr, uid, ids, context=context):        res[order.id] = {'total_line_sum': 'duration',}        val = 0        for line in order.order_line:            val += line.duration            res[order.id] = val  return res

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)


Asked: 4/28/16, 5:34 AM
Seen: 268 times
Last updated: 4/28/16, 5:53 AM