Odoo Help


purchase.py's program(openerp\addons\purchase) meaning

on 5/12/14, 1:28 PM 966 views

I want to understand the purchase.py's program(openerp\addons\purchase) meaning

e.g......purchase.py contain as follow:

class purchase_order(osv.osv):

def _amount_all(self, cr, uid, ids, field_name, arg, context=None):
    res = {}
    for order in self.browse(cr, uid, ids, context=context):
        res[order.id] = {
            'amount_untaxed': 0.0,
            'amount_tax': 0.0,
            'amount_total': 0.0,

what's this ? I need some data let me know more about the system ?


Ahmed M.Elmubarak

--Ahmed M.Elmubarak--
--Ahmed M.Elmubarak--

Ahmed M.Elmubarak
On 5/13/14, 8:22 AM


You can start with the technical memento


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


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

0 follower(s)


Asked: 5/12/14, 1:28 PM
Seen: 966 times
Last updated: 3/16/15, 8:10 AM