Skip to Content
Odoo Menu
  • Sign in
  • Try it free
  • Apps
    Finance
    • Accounting
    • Invoicing
    • Expenses
    • Spreadsheet (BI)
    • Documents
    • Sign
    Sales
    • CRM
    • Sales
    • POS Shop
    • POS Restaurant
    • Subscriptions
    • Rental
    Websites
    • Website Builder
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Supply Chain
    • Inventory
    • Manufacturing
    • PLM
    • Purchase
    • Maintenance
    • Quality
    Human Resources
    • Employees
    • Recruitment
    • Time Off
    • Appraisals
    • Referrals
    • Fleet
    Marketing
    • Social Marketing
    • Email Marketing
    • SMS Marketing
    • Events
    • Marketing Automation
    • Surveys
    Services
    • Project
    • Timesheets
    • Field Service
    • Helpdesk
    • Planning
    • Appointments
    Productivity
    • Discuss
    • Approvals
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    Third party apps Odoo Studio Odoo Cloud Platform
  • Industries
    Retail
    • Book Store
    • Clothing Store
    • Furniture Store
    • Grocery Store
    • Hardware Store
    • Toy Store
    Food & Hospitality
    • Bar and Pub
    • Restaurant
    • Fast Food
    • Guest House
    • Beverage Distributor
    • Hotel
    Real Estate
    • Real Estate Agency
    • Architecture Firm
    • Construction
    • Property Management
    • Gardening
    • Property Owner Association
    Consulting
    • Accounting Firm
    • Odoo Partner
    • Marketing Agency
    • Law firm
    • Talent Acquisition
    • Audit & Certification
    Manufacturing
    • Textile
    • Metal
    • Furnitures
    • Food
    • Brewery
    • Corporate Gifts
    Health & Fitness
    • Sports Club
    • Eyewear Store
    • Fitness Center
    • Wellness Practitioners
    • Pharmacy
    • Hair Salon
    Trades
    • Handyman
    • IT Hardware & Support
    • Solar Energy Systems
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    Others
    • Nonprofit Organization
    • Environmental Agency
    • Billboard Rental
    • Photography
    • Bike Leasing
    • Software Reseller
    Browse all Industries
  • Community
    Learn
    • Tutorials
    • Documentation
    • Certifications
    • Training
    • Blog
    • Podcast
    Empower Education
    • Education Program
    • Scale Up! Business Game
    • Visit Odoo
    Get the Software
    • Download
    • Compare Editions
    • Releases
    Collaborate
    • Github
    • Forum
    • Events
    • Translations
    • Become a Partner
    • Services for Partners
    • Register your Accounting Firm
    Get Services
    • Find a Partner
    • Find an Accountant
    • Meet an advisor
    • Implementation Services
    • Customer References
    • Support
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Get a demo
  • Pricing
  • Help
You need to be registered to interact with the community.
All Posts People Badges
Tags (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Tags (View all)
odoo accounting v14 pos v15
About this forum
Help

Emailing Purchase Orders

Subscribe

Get notified when there's activity on this post

This question has been flagged
emailv7supplierpurchases
4 Replies
14625 Views
Avatar
rishi kesh

I do not have an option to send a purchase order by email to a supplier. Are there any workarounds for this?

2
Avatar
Discard
Avatar
Ray Carnes
Best Answer

I just created a brand new database on today's release of 7.0 and installed JUST the Purchases module.

The option was there and the only time it isn't is if the purchase order is already approved.

If this is the case for you, you need to PRINT the PO and email the PDF.


EDIT:

Regarding your comment "But i still don't see that option in openerp demo site. "

I do - what I see is below - I think you are looking in a different place, or I don't understand your problem.

image description


EDIT:

The visibility of the email button is controlled by the form view definition.

To change the view definition:

1) Enter debug mode (From the About OpenERP window).

2) Open an approved Purchase Order.

3) Go to the debug menu (top left).

4) Select Edit Form View.

5) Change:

<button 
 name="wkf_send_rfq" 
 states="sent" 
 string="Send by Email" 
 type="object" 
 context="{'send_rfq':True}"/>

to

<button 
 name="wkf_send_rfq" 
 states="sent" 
 string="Send RFQ by Email" 
 type="object" 
 context="{'send_rfq':True}"/>

6) Add a new button:

<button 
 name="wkf_send_rfq" 
 states="approved" 
 string="Send PO by Email" 
 type="object" 
 context="{'send_rfq':False}"/>

To persist these changes through upgrades, inherit and override this view either via the UI or in a module.

4
Avatar
Discard
rishi kesh
Author

Thats a good news. But i still don't see that option in openerp demo site. Is there any easy way to update to the latest build?

Ray Carnes

See the edit to my answer above.

rishi kesh
Author

Yes but i am talking about the purchase orders page. Once you confirm an order you have no option to send that to your customer.

Ray Carnes

Re-read my answer. I posted "The option was there and the only time it isn't is if the purchase order is already approved". You are correct. I also posted "If this is the case for you, you need to PRINT the PO and email the PDF." Do you mean 'Supplier' a PO is when you purchase something, not sell something.

Gilles Lehoux

I'm also wishing there was a button "Send by Email" for a confirmed PO. In general, a "Send by email' button makes a process doable from my smart phone or tablet because the alternative (save a pdf, rename a pdf, write an email, attach the pdf) can be quite a drag.

Ray Carnes

See my edit above

Gilles Lehoux

The code change in the form view, as provided in the answer above, creates a "Send by Email" button. The email template is correct for sending a PO but the attached file is the RFQ instead of the PO.

Ray Carnes

I edited my answer to create a second button instead.

Gilles Lehoux

The button "Send RFQ by Email" doesn't appear either in the RFQ or the PO view. There is still the original "Send by Email" button in the RFQ view. The "Send PO by Email" appears in the PO view but the attachment is the RFQ.

Ray Carnes

OK. It is more complicated than I originally thought. Getting the correct report will require some coding. I will look at this if I have some spare time this week.

Avatar
Fabian Semal
Best Answer

You can override the method wfk_send_rfq. Jsut add a conditional statement on the order status to change the value of default_template_id:       

def wkf_send_rfq(self, cr, uid, ids, context=None):
            '''
            This function opens a window to compose an email, with the edi purchase template message loaded by default
            '''
            ir_model_data = self.pool.get('ir.model.data')
            try:
                template_id = ir_model_data.get_object_reference(cr, uid, 'purchase', 'email_template_edi_purchase')[1]
            except ValueError:
                template_id = False
            try:
                compose_form_id = ir_model_data.get_object_reference(cr, uid, 'mail', 'email_compose_message_wizard_form')[1]
            except ValueError:
                compose_form_id = False 
            ctx = dict(context)
            ctx.update({
                'default_model': 'purchase.order',
                'default_res_id': ids[0],
                'default_use_template': bool(template_id),
                'default_template_id': template_id,
                'default_composition_mode': 'comment',
            })
            return {
                'type': 'ir.actions.act_window',
                'view_type': 'form',
                'view_mode': 'form',
                'res_model': 'mail.compose.message',
                'views': [(compose_form_id, 'form')],
                'view_id': compose_form_id,
                'target': 'new',
                'context': ctx, 
            }

 

1
Avatar
Discard
Avatar
Mike Lindsay
Best Answer

I'm just starting my testing of OpenERP 7 today. So far I have learned some of the email functions are controlled by the Chatter module, have you looked at that yet?

0
Avatar
Discard
Ray Carnes

Good Thinking - but you can't install the Purchases module without the modules that is depends on to work - stock, procurement, product, account and mail (Social Networking/Chatter).

Avatar
G Reyes
Best Answer

Try trought Email templates in Configuration-Tecnical-Email

0
Avatar
Discard
Enjoying the discussion? Don't just read, join in!

Create an account today to enjoy exclusive features and engage with our awesome community!

Sign up
Related Posts Replies Views Activity
Any solution for when I click in button "Send to Suppliers" the many suppliers receive a email?
email v7 supplier quotation
Avatar
Avatar
1
Mar 15
5120
How to disable automatic mail ? Solved
email v7
Avatar
Avatar
Avatar
Avatar
Avatar
7
Apr 24
48308
How can I set custom from and reply-to addresses in email templates? Solved
email v7
Avatar
Avatar
Avatar
Avatar
Avatar
6
Jul 23
28144
what is the difference between mail.message and mail.mail? Solved
email v7
Avatar
Avatar
Avatar
Avatar
3
Aug 24
22630
email - how to filter or prevent spam coming into OpenERP?
email v7
Avatar
Avatar
Avatar
Avatar
3
Oct 25
12583
Community
  • Tutorials
  • Documentation
  • Forum
Open Source
  • Download
  • Github
  • Runbot
  • Translations
Services
  • Odoo.sh Hosting
  • Support
  • Upgrade
  • Custom Developments
  • Education
  • Find an Accountant
  • Find a Partner
  • Become a Partner
About us
  • Our company
  • Brand Assets
  • Contact us
  • Jobs
  • Events
  • Podcast
  • Blog
  • Customers
  • Legal • Privacy
  • Security
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk slovenščina Español (América Latina) Español Svenska ภาษาไทย Türkçe українська Tiếng Việt

Odoo is a suite of open source business apps that cover all your company needs: CRM, eCommerce, accounting, inventory, point of sale, project management, etc.

Odoo's unique value proposition is to be at the same time very easy to use and fully integrated.

Website made with

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now