Author: |
Akretion, Odoo Community Association (OCA) |
License: |
AGPL-3 |
Branch: |
12.0-stock_orderpoint_impex |
Repository: |
akretion/ak-odoo-incubator |
Dependencies: |
base |
Languages: |
HTML (339, 82.9%),
Python (35, 8.6%),
and
reStructuredText (35, 8.6%) |
Other branches: |
12-acc-move-exp-traceab,
12-be2bill-account-move-import,
12-mig-payplug,
12-migr-project-client,
12-proxy_action,
12-purchase_automatic_supplier_delay,
12-repl-component,
12-social,
12.0,
12.0-add-database_age_cron,
12.0-asset-in-db,
12.0-base_multicompany_submit,
12.0-base_rule_global_to_local,
12.0-mig-atos-move-import,
12.0-mig-base_custom_attribute,
12.0-mig-label_wizard,
12.0-mig-mail_via,
12.0-mig-product_custom_attribute,
12.0-mig-product_supplier_intercompany,
12.0-mig-stock_inventory_simple_valuation,
12.0-product_multicompany_submit,
12.0-project-estimation-step,
12.0-tmp-travis-error,
14-account-statem-pay,
14-project-estimation-step,
14.0,
14.0-add-account_move_line_export_reconcile_info,
14.0-add-product_supplier_per_attribute_value,
14.0-mig-forbid_record_creation,
14.0-mig-stock_inventory_simple_valuation,
14.0-queue-job-extra,
14.0_add_purchase_requisition_proposal,
15-tmp,
16-sale-lot,
and
statel-inv-link |
Other repositories: |
0yik/ak-odoo-incubator,
RL-OtherApps/ak-odoo-incubator,
camptocamp/ak-odoo-incubator,
hadjerBachiri/ak-odoo-incubator,
kevinkhao/ak-odoo-incubator,
magnuscolors/ak-odoo-incubator,
and
vidtsin/ak-odoo-incubator |
<h1 class="title">Forbid Record Creation</h1>
<p><a class="reference external" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external" href="https://github.com/akretion/ak-odoo-incubator/tree/12.0/forbid_record_creation"><img alt="akretion/ak-odoo-incubator" src="https://img.shields.io/badge/github-akretion%2Fak--odoo--incubator-lightgray.png?logo=github" /></a></p>
<p>Forbide to create Odoo objects by raising an alert to the user.
This module is only useful before to reach 'production' step of ERP implementation project.</p>
<p><strong>Table of contents</strong></p>
<div class="contents local topic" id="contents">
<ul class="simple">
<li><a class="reference internal" href="#configuration" id="id1">Configuration</a></li>
<li><a class="reference internal" href="#bug-tracker" id="id2">Bug Tracker</a></li>
<li><a class="reference internal" href="#credits" id="id3">Credits</a><ul>
<li><a class="reference internal" href="#authors" id="id4">Authors</a></li>
<li><a class="reference internal" href="#contributors" id="id5">Contributors</a></li>
<li><a class="reference internal" href="#maintainers" id="id6">Maintainers</a></li>
</ul>
</li>
</ul>
</div>
<a name="configuration"></a>
<h2><a class="toc-backref" href="#id1">Configuration</a></h2>
<p>Put this code in your custom module according to model
you want forbid creation.</p>
<pre>
<code lang="python">class AccountInvoice(models.Model):
_inherit = ['account.invoice', 'forbidden.model']
_name = 'account.invoice'
class PosOrder(models.Model):
_inherit = ['pos.order', 'forbidden.model']
_name = 'pos.order'</code>
</pre>
<a name="bug-tracker"></a>
<h2><a class="toc-backref" href="#id2">Bug Tracker</a></h2>
<p>Bugs are tracked on <a class="reference external" href="https://github.com/akretion/ak-odoo-incubator/issues">GitHub Issues</a>.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us smashing it by providing a detailed and welcomed
<a class="reference external" href="https://github.com/akretion/ak-odoo-incubator/issues/new?body=module:%20forbid_record_creation%0Aversion:%2012.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
<p>Do not contact contributors directly about support or help with technical issues.</p>
<a name="credits"></a>
<h2><a class="toc-backref" href="#id3">Credits</a></h2>
<a name="authors"></a>
<h3><a class="toc-backref" href="#id4">Authors</a></h3>
<ul class="simple">
<li>Akretion</li>
</ul>
<a name="contributors"></a>
<h3><a class="toc-backref" href="#id5">Contributors</a></h3>
<ul class="simple">
<li>David Beal <<a class="reference external" href="mailto:david.beal@akretion.com">david.beal@akretion.com</a>></li>
</ul>
<a name="maintainers"></a>
<h3><a class="toc-backref" href="#id6">Maintainers</a></h3>
<p>This module is part of the <a class="reference external" href="https://github.com/akretion/ak-odoo-incubator/tree/12.0/forbid_record_creation">akretion/ak-odoo-incubator</a> project on GitHub.</p>
<p>You are welcome to contribute.</p>