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
      • 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. Point of Sale
  3. Deltatech ECR Connect (shared) v 19.0
  4. Sales Conditions FAQ

Deltatech ECR Connect (shared)

by Terrabit https://www.terrabit.ro , Dorin Hongu https://www.terrabit.ro
Odoo

$ 11.42

v 19.0 Third Party
Apps purchases are linked to your Odoo account, please sign in or sign up first.
You bought this module and need support? Click here!
  • Description
  • Manifest
  • License
Odoo Partner  •  Terrabit

Deltatech ECR Connect (shared)

Shared fiscal document model, ECR format converter and Terrabit Connect sender

Odoo 19.0 Online • Odoo.sh • On-premise Optional support

Shared building blocks for sending fiscal documents to cash registers (ECR) through the Terrabit Connect local agent.

Until now the knowledge of cash-register formats was duplicated: in JavaScript (deltatech_pos) and in Python (deltatech_sale_store). This module centralizes the moving parts so any producer module can reuse them:

  • Standardized fiscal document
    (ecr_document.esm.js) — a cash-register neutral JSON contract (header, lines, payments, options) that producer modules build from their own data (a POS order, an invoice, …).
  • Format converter
    (ecr_format.esm.js) — the single source of truth for the per-device templates (Datecs/FiscalWire, FiscalNet, Incotex, Optima, Daisy, Succes), plus formatEcrDocument(doc, ecrType) which turns the standardized document into the device-specific content.
  • Terrabit Connect sender
    (ecr_connect.esm.js) — sendEcrToConnect() posts the content to the local agent (http://127.0.0.1:8765/print), handles the synchronous result, the error dialog (retry / manual / cancel) and the fallback to a file download when the agent is unreachable.

Producer modules (deltatech_pos, deltatech_sale_store) depend on this module, build the standardized document and delegate the conversion + sending here.

Use Cases / Context

Background

Romanian fiscal law requires every retail sale to be registered on a certified cash register (ECR — Electronic Cash Register). The ECR receives a structured command stream over a serial or network interface; each manufacturer uses a proprietary line protocol. Before this module existed, the command-generation logic was duplicated: once in JavaScript inside deltatech_pos (for the Point-of-Sale terminal) and once in Python inside deltatech_sale_store (for invoice-based store sales). Any protocol fix or new device had to be applied in two places.

Architecture: producer / library / agent

Producer module          Library (this module)           Local agent
──────────────           ─────────────────────────       ───────────────
deltatech_pos      ──►   ecr_document.esm.js             Terrabit Connect
deltatech_sale     ──►   ecr_format.esm.js          ──►  http://127.0.0.1:8765/print
  _store                 ecr_connect.esm.js

Producer modules own the business data (POS order, invoice). They call emptyEcrDocument(), fill in the lines/payments, and pass the result to formatEcrDocument(doc, ecrType).

This library owns the encoding knowledge. ecr_format.esm.js contains the per-device templates for all supported protocols and converts the device-neutral JSON into the byte stream the cash register understands. ecr_connect.esm.js posts that stream to the local Terrabit Connect agent and handles the full error lifecycle.

Terrabit Connect is the local Windows/Linux agent (deltatech_tc / FiscalWire) that relays the command stream to the physical cash register over serial/USB/TCP.

Supported device protocols

ecrType value Protocol family Notes
datecs Datecs / FiscalWire classic 18-char product name, no UoM
datecs18 / dxprint Datecs / FiscalWire extended 72-char name, UoM field
fiscalnet FiscalNet Amounts in bani (×100), qty ×1000
incotex Incotex R_TRP commands, negative lines OK
succes Succes R_TRP variant, positive only
daisy Daisy E sale command, department prefix 9x
optima Optima Semicolon-delimited, amounts ×100

VAT rate mapping

Romanian VAT reform 2025 changed standard rate from 19 % to 21 % and reduced rate from 9 % to 11 %. The formatter maps both old and new rates to the same device fiscal group (21 → group of 19, 11 → group of 9), so existing cash register fiscal group programming is preserved. For Datecs/DXPrint the VAT code is derived directly from the rate value (vatCode = "{rate}%"), so no re-programming of the device is needed.

Error handling flow

When sendEcrToConnect() receives an error response from the agent it presents FiscalErrorDialog with three choices:

  • Retry
    — resends the same command stream (idempotent uuid prevents duplicate receipts on the agent side).
  • Manual intervention
    — downloads the .prn file so the cashier can deliver it to the agent manually.
  • Cancel
    — aborts the fiscal operation; the caller decides whether to roll back the sale.

When the agent is completely unreachable (network timeout after 40 s) the module falls back silently to the file download, so mixed fleets (some tills with a local agent, some without) keep working.

Bug Tracker

Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us to smash it by providing a detailed and welcomed feedback.

Do not contact contributors directly about support or help with technical issues.

Credits

Authors

  • Terrabit
  • Dorin Hongu

Maintainers

Current maintainer:

dhongu

This module is part of the terrabit-ro/bitshop project on GitHub.

You are welcome to contribute.

Need help getting started?

We are an Odoo partner building apps for the Romanian market (SAGA & WinMentor export; Romanian accounting localization in progress). Direct support from the team that built the module.

Contact Terrabit →
TERRABIT
© Terrabit Solutions SRL  •  terrabit.ro  •  Odoo apps for Romania, Ireland & Moldova
Availability
Odoo Online
Odoo.sh
On Premise
Lines of code 400
Technical Name deltatech_ecr_connect
LicenseOPL-1
Websitehttps://www.terrabit.ro
Odoo Proprietary License v1.0

This software and associated files (the "Software") may only be used (executed,
modified, executed after modifications) if you have purchased a valid license
from the authors, typically via Odoo Apps, or if you have received a written
agreement from the authors of the Software (see the COPYRIGHT file).

You may develop Odoo modules that use the Software as a library (typically
by depending on it, importing it and using its resources), but without copying
any source code or material from the Software. You may distribute those
modules under the license of your choice, provided that this license is
compatible with the terms of the Odoo Proprietary License (For example:
LGPL, MIT, or proprietary licenses similar to this one).

It is forbidden to publish, distribute, sublicense, or sell copies of the Software
or modified copies of the Software.

The above copyright notice and this permission notice must be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.

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