Metadata-Version: 2.1
Name: odoo-addon-l10n_ro_pos_partner
Version: 19.0.1.1.0
Requires-Dist: odoo-addon-l10n_ro_partner_create_by_vat==19.0.*
Requires-Dist: odoo-addon-l10n_ro_pos==19.0.*
Requires-Dist: odoo==19.0.*
Summary: Search a customer by CUI in the Point of Sale and create it from ANAF
Home-page: https://github.com/OCA/l10n-romania
License: AGPL-3
Author: NextERP Romania,Odoo Community Association (OCA)
Author-email: support@odoo-community.org
Classifier: Programming Language :: Python
Classifier: Framework :: Odoo
Classifier: Framework :: Odoo :: 19.0
Classifier: License :: OSI Approved :: GNU Affero General Public License v3
Classifier: Development Status :: 3 - Alpha
Description-Content-Type: text/x-rst

.. image:: https://odoo-community.org/readme-banner-image
   :target: https://odoo-community.org/get-involved?utm_source=readme
   :alt: Odoo Community Association

===============================
Romania - Point of Sale Partner
===============================

.. 
   !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
   !! This file is generated by oca-gen-addon-readme !!
   !! changes will be overwritten.                   !!
   !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
   !! source digest: sha256:e34bca780f4a0cdbe4437593c060887dc8fc1059b80c3eb1ae0722dd48a6c102
   !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |badge1| image:: https://img.shields.io/badge/maturity-Alpha-red.png
    :target: https://odoo-community.org/page/development-status
    :alt: Alpha
.. |badge2| image:: https://img.shields.io/badge/license-AGPL--3-blue.png
    :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
    :alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fl10n--romania-lightgray.png?logo=github
    :target: https://github.com/OCA/l10n-romania/tree/19.0/l10n_ro_pos_partner
    :alt: OCA/l10n-romania
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
    :target: https://translation.odoo-community.org/projects/l10n-romania-19-0/l10n-romania-19-0-l10n_ro_pos_partner
    :alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
    :target: https://runboat.odoo-community.org/builds?repo=OCA/l10n-romania&target_branch=19.0
    :alt: Try me on Runboat

|badge1| |badge2| |badge3| |badge4| |badge5|

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.

.. IMPORTANT::
   This is an alpha version, the data model and design can change at any time without warning.
   Only for development or testing purpose, do not use in production.
   `More details on development status <https://odoo-community.org/page/development-status>`_

**Table of contents**

.. contents::
   :local:

Configuration
=============

Nothing to configure in the Point of Sale. The lookup uses the ANAF web
service configured for *Romania - Partner Create by VAT*, so a company
customer added at the till is the same record the back office would have
created from the partner form.

Usage
=====

In the *Choose customer* dialog of the Point of Sale, type the
customer's CUI, with or without the ``RO`` prefix.

If a customer is already on file under that code, they show up in the
list as usual. If none does, the dialog offers **Create from ANAF**: it
fetches the company from ANAF, creates it with its registered name and
address, and puts it on the current order.

A CUI that ANAF does not know is refused with that reason, and no
customer is created -- the receipt should not go out to a company named
after a number.

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/l10n-romania/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 <https://github.com/OCA/l10n-romania/issues/new?body=module:%20l10n_ro_pos_partner%0Aversion:%2019.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

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

Credits
=======

Authors
-------

* NextERP Romania

Contributors
------------

- `NextERP Romania <https://www.nexterp.ro>`__:

  - Fekete Mihai <feketemihai@nexterp.ro>
  - Sima Elisabeta <elisabeta.sima@nexterp.ro>

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

Maintainers
-----------

This module is maintained by the OCA.

.. image:: https://odoo-community.org/logo.png
   :alt: Odoo Community Association
   :target: https://odoo-community.org

OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.

.. |maintainer-feketemihai| image:: https://github.com/feketemihai.png?size=40px
    :target: https://github.com/feketemihai
    :alt: feketemihai

Current `maintainer <https://odoo-community.org/page/maintainer-role>`__:

|maintainer-feketemihai| 

This module is part of the `OCA/l10n-romania <https://github.com/OCA/l10n-romania/tree/19.0/l10n_ro_pos_partner>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
