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
    • Estate 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
      • Get a Tailored Demo
    • Implementation Services
    • Customer References
    • Support
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +32 2 290 34 90
    • Get a Tailored Demo
  • Pricing
  • Help
  1. APPS
  2. Purchases
  3. Purchase Advance Description v 18.0
  4. Sales Conditions FAQ

Purchase Advance Description

by Lucky https://github.com/kurniawanlucky/odoo_addons
Odoo

$ 35.16

v 18.0 Third Party
Apps purchases are linked to your Odoo account, please sign in or sign up first.
Availability
Odoo Online
Odoo.sh
On Premise
Odoo Apps Dependencies • Purchase (purchase)
• Invoicing (account)
• Discuss (mail)
Lines of code 101
Technical Name purchase_advance_description
LicenseLGPL-3
Websitehttps://github.com/kurniawanlucky/odoo_addons
You bought this module and need support? Click here!
Availability
Odoo Online
Odoo.sh
On Premise
Odoo Apps Dependencies • Purchase (purchase)
• Invoicing (account)
• Discuss (mail)
Lines of code 101
Technical Name purchase_advance_description
LicenseLGPL-3
Websitehttps://github.com/kurniawanlucky/odoo_addons
Purchase Advance Description

Inject dynamic purchase line descriptions from product categories

Add short Python snippets on product categories to populate purchase order line descriptions automatically. You get code validation and typo checks before saving.

Purchase shipping banner

What this module does

  • Adds a Purchase Description Code field on product categories.
  • Executes the snippet when a product from that category is added to a purchase order line.
  • Provides validation: syntax check plus a dry-run on dummy data to catch typos.
  • Exposes product_id, product_template_id, purchase_order_line, and sale_order_line in the snippet context.

How to use

  1. Install the module and update the Apps list if needed.
  2. Open any product category > Purchase Description tab.
  3. Enter a Python snippet that assigns the final text to result.
  4. Save the category. Validation will catch syntax errors and obvious typos.
  5. Add a product from that category to a Purchase Order: the line description auto-includes your computed text.

Examples

Scenario Snippet
Internal reference + origin
result = product_id.default_code + " - " + product_id.country_of_origin.name
Template code fallback
result = product_template_id.default_code or product_id.default_code
Include UoM and vendor
result = f"{product_id.display_name} / {purchase_order_line.product_uom.name}"
Conditional note
result = product_id.default_code
if product_id.country_of_origin:
    result += " - " + product_id.country_of_origin.name
Purchase shipping banner

Validation behavior

  • Syntax/opcode check via test_python_expr.
  • Dry-run with dummy product/template/country objects to catch typos (e.g., contry_of_origin).
  • On error, the category save fails with a clear message; fix the snippet and save again.
Purchase shipping banner

Download & install

  1. Place this module directory under your Odoo addons path (see addons_path in odoo.conf).
  2. Update the Apps list (Apps > Update Apps List).
  3. Search for Purchase Advance Description and install it.

If you ship this module elsewhere, include this index.html so users can read the quick guide.

Quick test recipe

  1. Create a category and paste result = product_id.default_code + " - " + product_id.country_of_origin.name.
  2. Assign a product to that category and set its Internal Reference and Country of Origin.
  3. Create a Purchase Order and add the product. The description should show the code and country.

Please log in to comment on this module

  • The author can leave a single reply to each comment.
  • This section is meant to ask simple questions or leave a rating. Every report of a problem experienced while using the module should be addressed to the author directly (refer to the following point).
  • If you want to start a discussion with the author or have a question related to your purchase, please use the support page.
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

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