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

how to store bar code result in to odoo from flutter

Subscribe

Get notified when there's activity on this post

This question has been flagged
odoo11
5 Replies
5667 Views
Avatar
Nirmala Sudhir

Hi,

    I have an bar code scanner app with front end as flutter and backend as odoo. I want to know how to store the scanned bar/qr code from flutter to odoo with a configurable email addres. how to create a odoo backend for this situation.?

waiting for replies.

thank in advance

0
Avatar
Discard
Cybrosys Techno Solutions Pvt.Ltd

Hi,

Are you using Google mobile vision API?

OdooBot
Hi Keval Mehta,
     Can you please edit your answer in odoo forum.

You can use different packages of flutter which helps you to connect with different scripting languages like python, java, .net, etc.

For example you can check this : \Flutter\ package\\\

Likewise\ you\ can\&nbsp\;get\ reference\ from\ this\ link\ also\ \:\&nbsp\;\Python\ Web\ services\ for\ Flutter\ App\\\

Also\ you\ can\ get\ library\ of\ python\ for\ flutter\ also\ \:\&nbsp\;\Python package for Flutter


the above link doesn't work. 

And I have idea how to connect flutter with odoo. I need to know is there any video tutorial for storing bar code in odoo with a configurable email address.


thanks


On Tue, Dec 17, 2019 at 3:37 PM Keval Mehta <mehtakevalaf@gmail.com> wrote:

A new answer on how to store bar code result in to odoo from flutter has been posted. Click here to access the post :

See post

Sent by Odoo S.A. using Odoo.

Muhammed Nishad

Hi Cybrosys,

    Nope. I am not using Google mobile vision API. I even dont have any idea about it. I referred the below link for bar code scanning in flutter.

​https://github.com/https://github.com/iampawan/FlutterQRScanner-App/blob/master/lib/main.dartiampawan/FlutterQRScanner-App/blob/master/lib/main.dart

I can able to scan the bar code and stored it in variable. Now I would like to send the store data to odoo with a configrable mail address. How can I achieve this is in odoo?

Note: Main purpose is  Often invoices to be paid are received as per email as a pdf attachements. These mails are then forwarded to odoo using a configurable mail address.

thanks


Avatar
Cybrosys Techno Solutions Pvt.Ltd
Best Answer

Hi Nirmala,
There are a number of options to do this, you can either use Odoo's builtin APIs or if you want to be more flexible you can write a an http or JSON route in Odoo to handle the request.

for eg:

# custom route for json
from odoo import http
from odoo.http import request
import json


class InvoiceBarcodeConfirm(http.Controller):

@http.route('/invoice/barcode/confirm', type='json', auth='public', website=False)
def confirm_invoice(self, **data):
# assuming that the data recieved from flutter has the following structure
# {'user_login': value,'user_pwd':password, 'invoice_barcode': barcode}
if 'user_login' in data and 'user_pwd' in data and 'invoice_barcode' in data:
uid = request.session.authenticate(request.env.cr.dbname, data['user_login'], data['user_pwd'])
if uid.id:
invoice = request.env['account.invoice'].search([('barcode', '=', data['invoice_barcode'])])
if invoice.id:
invoice.action_invoice_open()
return json.dumps({'status': 'success'})
else:
return json.dumps({'status': 'no matching invoice'})
else:
return json.dumps({'status': 'authentication failed'})
else:
return json.dumps({'status': 'not enough parameters received'})​

the code is just an illustration to how you can create a custom handler for your request.In case you just need to get your mail and attachments in odoo, you can simply configure external incoming email server from the configurations.

Hope it helped.

0
Avatar
Discard
Avatar
Keval Mehta
Best Answer

You can use different packages of flutter which helps you to connect with different scripting languages like python, java, .net, etc.​

For example you can check this : \Flutter\ package\\\

Likewise\ you\ can\&nbsp\;get\ reference\ from\ this\ link\ also\ \:\&nbsp\;\Python\ Web\ services\ for\ Flutter\ App\\\

Also\ you\ can\ get\ library\ of\ python\ for\ flutter\ also\ \:\&nbsp\;\Python package for Flutter

-1
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
create backorder odoo after validate purchase shipment ? Solved
odoo11
Avatar
Avatar
1
Oct 25
12101
I can't create any sub-task
odoo11
Avatar
Avatar
Avatar
2
Jul 24
3694
odoo 11 display calendar widget in website layout
odoo11
Avatar
Avatar
1
Jun 24
6003
Get field's value from another model
odoo11
Avatar
Avatar
1
Oct 23
98
413 Request Entity Too Large Solved
odoo11
Avatar
Avatar
1
Aug 23
2194
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