Odoo Help

2

sum of minutes not calculated in customized timesheet

By
aneesh ATEES Infomedia Pvt Ltd
on 4/28/16, 5:34 AM 565 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

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

Question tools

1 follower(s)

Stats

Asked: 4/28/16, 5:34 AM
Seen: 565 times
Last updated: 11/24/16, 1:58 AM