TIP: You can type at any time to perform a new search.
Romania - Point of Sale Partner
l10n_ro_pos_partner · OCA/l10n-romania
- Repository
- OCA/l10n-romania · module folder · Try on Runboat
- Module version
- 1.1.0
- Category
- Localization
- Folder size
- 0.05 MB
- License
- AGPL-3
- Application
- No
- Auto-installable
- No
- Website
- https://github.com/OCA/l10n-romania
- Last tracking update
- 2026-09-19 11:28:48
- Authors
- Odoo Community Association (OCA), NextERP Romania
- Maintainers
- Odoo Community Association (OCA), NextERP Romania
- Committers
- Mihai Fekete, OCA-git-bot
- Odoo dependencies
- Python dependencies
- None
- System dependencies
- None
- Required by
- None
- Description
A company buying over the counter identifies itself by its CUI, and that code is rarely on file before the first sale. Searching for it in the *Choose customer* dialog of the Point of Sale would normally end on "no customers found" -- yet the company is public record at ANAF. This module turns that dead end into the way company customers are added at the till: - a search that reads as a Romanian CUI is recognised as one, with or without the `RO` prefix, since the customer reading it off a document does not know which of the two the shop keeps; - a customer already on file under that CUI is offered straight away, even when the cashier would never have found them by name; - when there is none, a **Create from ANAF** button fetches the company -- name, VAT status, registration number and registered address -- creates it and puts it on the order in one step. The same ANAF history the partner form keeps is recorded, so it does not matter that the customer came in through the till. Choosing a company as the customer does not turn the receipt into an invoice. In Romania the fiscal receipt is what the till issues and it settles the sale on its own; the invoice is asked for, not assumed.
Code Analysis ⓘ
Views touched (0)
No views found for this module.
HTTP endpoints (0)
No HTTP endpoints found for this module.
Models touched (1)
New fields (0)
No new fields.
Public methods (1)-
l10n_ro_pos_create_partner_from_vat(self, config_id, vat_number)@api.modelReturn the customer holding ``vat_number``, fetching it if needed. Called from the customer search of the POS when nothing local matches the CUI. An already known customer is returned as it is -- the cashier searched by VAT, not by name, so a partner loaded under a name they did not think of is still the right one.