Answers for "how to return value in new record to odoo"

0

how to return value in new record to odoo

def computeremainingFeeds(self):
        for rec in self:
            if rec.feed_received_kg != 0:
                rec.remaining_feed_credit = rec.feed_received_kg - rec.feed_consumed_kg
            elif rec.remaining_feed_credit != 0:
                rec.remaining_feed_credit = rec.remaining_feed_credit - rec.feed_consumed_kg
        return remaining_feed_credit
Posted by: Guest on December-21-2020

Code answers related to "how to return value in new record to odoo"

Python Answers by Framework

Browse Popular Code Answers by Language