Metadata-Version: 2.1
Name: odoo-addon-base_optional_quick_create
Version: 18.0.1.0.1.2
Requires-Python: >=3.10
Requires-Dist: odoo==18.0.*
Summary: Avoid "quick create" on m2o fields, on a "by model" basis
Home-page: https://github.com/OCA/server-ux
License: AGPL-3
Author: Agile Business Group,Odoo Community Association (OCA)
Author-email: support@odoo-community.org
Classifier: Programming Language :: Python
Classifier: Framework :: Odoo
Classifier: Framework :: Odoo :: 18.0
Classifier: License :: OSI Approved :: GNU Affero General Public License v3
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

=====================
Optional quick create
=====================

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

.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
    :target: https://odoo-community.org/page/development-status
    :alt: Beta
.. |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%2Fserver--ux-lightgray.png?logo=github
    :target: https://github.com/OCA/server-ux/tree/18.0/base_optional_quick_create
    :alt: OCA/server-ux
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
    :target: https://translation.odoo-community.org/projects/server-ux-18-0/server-ux-18-0-base_optional_quick_create
    :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/server-ux&target_branch=18.0
    :alt: Try me on Runboat

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

This module allows to avoid to *quick create* new records, through
many2one fields, for a specific model. You can configure which models
should allow *quick create*. When specified, the *quick create* option
will always open the standard create form.

Got the idea from https://twitter.com/nbessi/status/337869826028605441

**Table of contents**

.. contents::
   :local:

Usage
=====

To use this module, you need to:

   - go into the menu of *ir_model*,
   - select the model for which you want to disable the quick create
     option,
   - enable the option *Avoid quick create*.

Known issues / Roadmap
======================

Issues
======

- The module is implemented by patching the method ``name_create``. When
  used, it may break odoo standard code.
- There is a known issue when we activate the option on ``res.partner``
  and using the module helpdesk.

If you do so, you will break the feature of creating an
``helpdesk.ticket`` when receiving an email. When we receive an email.
If the contact doesn't exist, odoo will use the method ``name_create``.
This module will raise a UserError and prevent the creation of both:
``helpdesk.ticket`` and ``res.partner``.

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

Bugs are tracked on `GitHub Issues <https://github.com/OCA/server-ux/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/server-ux/issues/new?body=module:%20base_optional_quick_create%0Aversion:%2018.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
-------

* Agile Business Group

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

- Jonathan Nemry jonathan.nemry@acsone.eu
- Lorenzo Battistini lorenzo.battistini@agilebg.com
- Alexis de Lattre alexis.delattre@akretion.com
- Gilles Meyomesse gilles.meyomesse@acsone.eu (https://acsone.eu)
- Carmen Rondon Regalado crondon@archeti.com

Other credits
-------------

This module is maintained by: \* Odoo Community Association

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.

This module is part of the `OCA/server-ux <https://github.com/OCA/server-ux/tree/18.0/base_optional_quick_create>`_ project on GitHub.

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