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.

1

Include project name on purchase order

By
Anthony
on 3/18/15, 5:43 AM 719 views

Hi,

We are a consultancy and all of our work is on projects for clients. We often buy parts to build prototypes for our customers. When I write a purchase order for the parts, how do I include a reference to the project I am working on? I'd eventually like to see all of the purchase orders written for a given project.

Thanks for your help.

1

Vasanth

--Vasanth--
3458
| 5 3 8
Pondicherry, India
--Vasanth--
Vasanth
On 3/18/15, 9:43 AM

Hi Anthony,

you have to define a many2one or selection or a text fields with default value contains your project reference in the purchase.order class and also defines it in xml view.It helps you every time if you create a purchase order, you can select you project reference also

for example:

for selection field:

'project_ref': fields.selection([('ref1','Reference1'),('ref2','Reference2')], 'Project Reference',),

_defaults = {

'project_ref': 'ref1', 

}

for text or char field:

'project_ref':fields.char('Project Reference', size=64),

_defaults = {

'project_ref': 'Reference1',

}


0
Anthony
On 4/9/15, 8:38 PM

Thanks for your help. It took me quite a while to learn enough of odoo to understand your answer. I think I get it now!

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

1 follower(s)

Stats

Asked: 3/18/15, 5:43 AM
Seen: 719 times
Last updated: 4/9/15, 8:38 PM