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

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • CRM
  • e-Commerce
  • Accounting
  • Inventory
  • PoS
  • Project
  • MRP
All apps
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

Odoo use by default EAN-13 barcode how to change it's mechanism ?

Subscribe

Get notified when there's activity on this post

This question has been flagged
communityproductbarcodeodooodoo10.0
5 Replies
14041 Views
Avatar
Usman Farzand

example is
i want to generator product bar code according to my wish just like 0147
but odoo put 00000 as prefix and generot ean-13 mechanism...
i want only 0147 barcode into my product not any extra ...
im using #Odoo v10c

2
Avatar
Discard
Avatar
Omar F. Kalson
Best Answer

Dear Raaj Mishra, Your above answer has already helped me alot. Can you please help me what terminology is used to print 2D DataMarix?

0
Avatar
Discard
Avatar
Raaj Mishra
Best Answer

Hi Usman, there are many types other than EAN13 which we can use to print product barcode.

Some of them are : 'Codabar', 'Code11', 'Code128', 'EAN13', 'EAN8', 'Extended39',

        'Extended93', 'FIM', 'I2of5', 'MSI', 'POSTNET', 'QR', 'Standard39', 'Standard93',

        'UPCA', 'USPS_4State'

Just we need to change the params at url which is defined for products report view,by default it is EAN13.

For more informations you can browse the code at report module : addons/report/controllers/main.py

0
Avatar
Discard
Usman Farzand
Author

Thanks Raaj Mishra for reply,

point of sale --------> Configuration --------> Bar code Nomenclatures and then

click on product bar codes (where type is unit product and Encoding method is any)

i changed it from EAN13 to Any but it's can't work for me.

i read code according to your instruction

method is (if I'm not wrong)

def report_barcode(self, type, value, width=600, height=100, humanreadable=0):

if i will change it like this, is it work?

def report_barcode(self, type='EAN8', value, width=600, height=100, humanreadable=0):

Raaj Mishra

Hi Usman,Yes that's right method you picked, but I am not sure about type='EAN8', need to give a try for that.

Usman Farzand
Author

Thanks Raaj Mishra again reply...

i changed it but can't work...

now i change in xml file where pass parameter... From this code to

<tr style="width: 1in;">

<td style="border: 2px solid black;text-align: center; vertical-align: middle;" class="col-xs-5">

<img t-if="product.barcode" t-att-src="'/report/barcode/?type=%s&amp;value=%s&amp;width=%s&amp;height=%s' % ('EAN13', product.barcode, 600, 150)" style="width:100%;height:20%;"/>

<span t-field="product.barcode"/>

</td>

To this code

<tr style="width: 1in;">

<td style="border: 2px solid black;text-align: center; vertical-align: middle;" class="col-xs-5">

<img t-if="product.barcode" t-att-src="'/report/barcode/?type=%s&amp;value=%s&amp;width=%s&amp;height=%s' % ('EAN8', product.barcode, 600, 150)" style="width:100%;height:20%;"/>

<span t-field="product.barcode"/>

</td>

but still generating EAN13 code as too

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
Request for Customization of Product List Display in Odoo Community 17
community product odoo
Avatar
Avatar
Avatar
2
Jun 25
2876
How I can do Setting From Company for Barcode Generate
product barcode odoo
Avatar
0
Dec 19
2990
Apply multiple vouchers (barcodes) to POS Order
community pos barcode odoo10.0
Avatar
0
May 17
3631
How i can Use Barcode without EAN13 in OdooV10c?
community product barcode odoo10
Avatar
0
Apr 17
3005
Barcode not scanned (Code128) V 11 Quality Issue
community product barcodescanner barcode v11
Avatar
0
Oct 20
1135
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 ภาษาไทย 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