Odoo Help

Welcome!

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.

0

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

By
Landy
on 5/12/14, 1:28 PM 896 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 = {}
    cur_obj=self.pool.get('res.currency')
    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 ?

0

Ahmed M.Elmubarak

--Ahmed M.Elmubarak--
2988
| 5 3 5
Sudan
--Ahmed M.Elmubarak--


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

Hello,

You can start with the technical memento

Regards..

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

0 follower(s)

Stats

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