Odoo Help

0
1
Henry Lim
On 11/6/13, 1:09 AM

I have solved my issue:

def _get_total_cost(self, cr, uid, ids, field_name, arg, context):
        result = {}

        for bom_line_obj in self.browse(cr, uid, ids, context=context):
            result[bom_line_obj.id] = (bom_line_obj.product_id.product_tmpl_id.standard_price or 0.00) * (bom_line_obj.product_qty or 0.00)
        return result

About This Community

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

Question tools

1 follower(s)

Stats

Asked: 11/4/13, 10:28 PM
Seen: 2935 times
Last updated: 3/16/15, 8:10 AM