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. Romania
  3. Romania - SGR on Purchases v 19.0
  4. Sales Conditions FAQ

Romania - SGR on Purchases

by NextERP Romania https://www.nexterp.ro
Odoo

$ 232.86

v 19.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)
• Inventory (stock)
Community Apps Dependencies Show
Romania - SGR Base
Lines of code 1331
Technical Name nexterp_sgr_purchase
LicenseOPL-1
Websitehttps://www.nexterp.ro
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)
• Inventory (stock)
Community Apps Dependencies Show
Romania - SGR Base
Lines of code 1331
Technical Name nexterp_sgr_purchase
LicenseOPL-1
Websitehttps://www.nexterp.ro
  • Description
  • License
Romania - SGR on Purchases icon

Romania - SGR on Purchases

Automatic SGR deposit child line on purchase.order.line.

v 19.0.1.0.0 Localization/RomaniaOPL-1
  • Overview
  • Features
  • Configuration
  • How it works
  • Versions

Overview

Get the SGR deposit on purchase orders right the first time. Adding a beverage line subject to SGR appends a child line under it with the matching SGR product, the deposit rate effective on the order date and zero taxes — exactly the structure RetuRO expects on the vendor's invoice.

The two lines stay in sync: changing the quantity or product on the parent updates the SGR child; removing the parent removes the child through ondelete='cascade'. On reception, the beverage and its SGR companion land in stock as separate moves, so quantities of bottles and empties are tracked independently and reorder rules work the way you'd expect.

The is_sgr_line flag is propagated through to the vendor bill via _prepare_account_move_line, so when the bill arrives through e-factura or manual entry and nexterp_sgr_account is installed, the SGR line is recognized and adopted instead of duplicated.


NextERP Romania

Built & supported by NextERP Romania

Romanian Odoo specialists, here for the long run — from implementation to localization and day-to-day production support.

10+
Years of Odoo experience per team member
80%+
of Romanian Localization maintained on Odoo Apps
19.0
Tracking every Odoo major release

What we do

⚙️

Odoo Solutions

From quick-start rollouts to multi-company deployments and custom modules built for your processes.

🇷🇴

Romanian Localization

SAF-T (D406), e-Factura, e-Transport, D300 / D390 / D394, ANAF integration, full chart of accounts and fiscal positions.

🛟

Our Services

Implementation, customization, migration, integration, support and consultancy — Romanian-speaking, SLA-backed.

Features

  • Auto SGR child line on every PO line — adding a beverage with an sgr_product_id to a purchase order instantly appends a paired purchase.order.line with the matching SGR product, the deposit rate effective on date_order and zero taxes.
  • Parent/child sync — quantity, product and UoM changes on the parent propagate to the SGR child; removing the parent cascades to the child via ondelete='cascade'.
  • No duplication on cross-module flows — if the line was created by an upstream sync that already carries an SGR sibling, the module links it via sgr_parent_line_id instead of creating a duplicate.
  • Separate stock moves on receipt — the beverage and its SGR packaging come in on independent stock moves so reorder rules and on-hand quantities of empties are accurate.
  • Vendor-bill propagation — _prepare_account_move_line carries is_sgr_line=True to the resulting bill line, so the SGR line is recognized by nexterp_sgr_account and adopted instead of duplicated.
  • Per-PO opt-out — purchase.order.sgr_auto_lines adds an Auto-add SGR Lines boolean after Vendor Reference, defaulting from the company setting. Disable when the SGR line is already in the vendor catalog or upstream EDI feed.
  • Tracks the SGR pair — is_sgr_line and sgr_parent_line_id fields on purchase.order.line make deposits easy to filter, group and report on.

Configuration

1. Link beverage products to their SGR companion

On each beverage SKU subject to SGR, open the product in Inventory → Products and set the SGR Deposit field to the matching SGR product (the one carrying the correct category — Glass Small, Plastic Large, Metal, etc.). This is the standard field provided by nexterp_sgr; the purchase module does not add a new field on the product itself.

From that moment on, every purchase line referencing this beverage will receive an automatic SGR child line.

2. Default behavior on new POs

Every purchase.order carries an Auto-add SGR Lines boolean displayed after the Vendor Reference field on the order form. It defaults from the company-wide setting found at Settings → Inventory → SGR → Auto-add SGR Lines.

  • Keep it enabled for hand-keyed POs and orders generated by reordering rules — the SGR child line will be added under each beverage line automatically.
  • Disable it on POs whose lines come pre-populated with SGR rows from an EDI feed, a vendor catalog import or any upstream system. The orphan SGR sibling is then adopted by its parent line on save, without creating a duplicate.

3. Account flow on the vendor bill

If nexterp_sgr_account is installed and the company SGR Liability Account (462 / 461) is configured, the SGR component on the resulting bill posts to the liability account instead of the regular expense account — keeping the deposit out of the P&L. Nothing extra to set here, the propagation happens through _prepare_account_move_line.

How it works

Creating a PO with beverages

  1. Create a purchase order and add one or more beverage products subject to SGR.
  2. As each beverage line is saved, an SGR child line is appended under it with the matching SGR product, the deposit rate effective on the order date as Unit Price and zero taxes.
  3. Change the parent line quantity, product or UoM — the SGR child follows. Remove the parent — the SGR child is removed automatically.
  4. Confirm the PO and plan the reception normally.

Receiving the goods

On reception, the beverage and its SGR packaging land in stock as two separate stock moves, even when they were on a single PO line pair:

  • The beverage hits the warehouse input location like any other good.
  • The SGR product hits the same destination but on its own move, so the on-hand quantity of empties stays accurate and visible.

This is exactly what is needed for SGR reporting — the two products have to be tracked independently because their stock will diverge as soon as consumer returns start (empties come back; beverages don't).

Vendor bill

When the vendor bill arrives — either through e-factura import or as a manual entry — both the beverage and the SGR line carry over with the deposit on a non-taxable line. If nexterp_sgr_account is also installed, the SGR line is recognized and linked to its parent via sgr_parent_line_id, so the bill never duplicates the deposit.

Opt-out per PO

If a vendor's catalog already includes the SGR row on every beverage line, untick Auto-add SGR Lines on the PO header. The module then leaves the upstream lines alone and only attaches orphan SGR siblings to their parent beverage lines for traceability.

Versions

19.0.1.0.0 (2026-05-25)

  • Changelog tracking starts at this release.

Discover the NextERP suite

Other modules from the same publisher, built to work together.

RO
Romania - SGR Base
Localization/Romania

Romanian SGR (Sistem Garanție-Returnare) base: deposit as a stockable product with category, rate history and stock tracking. Retailer-oriented.

RO
Romania - SGR RetuRO Operations
Localization/Romania

Seals, pickup events and stock-move generation for handing over collected SGR packaging to RetuRO.

RO
Romania - SGR at Point of Sale
Localization/Romania

Automatic SGR deposit line on POS orders and handling of empty-packaging returns at the till.

RO
Romania - SGR in Manufacturing
Localization/Romania

Auto-consume an SGR packaging component on manufacturing orders for bottled / canned beverages.

RO
Romania - SGR on Invoices
Localization/Romania

Automatic SGR deposit child line on account.move.line (manual invoices and refunds).

RO
Romania - SGR on Sales
Localization/Romania

Automatic SGR deposit child line on sale.order.line.

PO
POS - Product Card Price
Point of Sale

Show the products price in the POS App

PO
POS - Screen Presets Smart Buttons
Point of Sale

Easily select the preset in POS App

NextERP Romania

Odoo implementation, customization, Romanian localization and long-term support since 2018.

nexterp.ro
All apps
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