Search 1.9 billion lines of Odoo code on GitHub

abandoned_carts

Author: Nitrokey GmbH, Odoo Community Association (OCA)
License: AGPL-3
Branch: 12.0
Repository: Nitrokey/odoo-modules
Dependencies: account, calendar, crm, project, sale, and website_sale
Languages: HTML (356, 40.6%), Python (240, 27.4%), XML (187, 21.3%), and reStructuredText (93, 10.6%)
Other branches: 12-fix-account_invoice_pdf_export, 12.0-abandoned_carts-code, 12.0-abandoned_carts-sale-order-queue, 12.0-debug_payment_bitcoin, 12.0-email_restrict_autoreply, 12.0-fix-abandoned_carts, 12.0-fix-merge_duplicate_contacts, 12.0-logger_payment_bitcoin, 12.0-merge_duplicate_contacts, 12.0-phone_validation_e164, 12.0-pre-commit, 12.0-product_creation_prevention, 12.0-stock_tracking_validation, 15.0, 15.0-mig-account_invoice_pdf_export, 15.0-mig-configure_product, 15.0-mig-delivery_carrier_info, 15.0-mig-ecommerce_first_last_name, 15.0-mig-helpdesk_mgmt_category_team, 15.0-mig-limit_to_employees, 15.0-mig-mass_mailing_double_opt_in, 15.0-mig-nitrokey_partial_picking, 15.0-mig-partner_delivery_link, 15.0-mig-partner_user_status, 15.0-mig-product_cost_automatic, 15.0-mig-product_label_image, 15.0-mig-sale_payment, 15.0-mig-stock_picking_unbuild, 15.0-mig-vat_online_validation, 15.0-mig-website_menu_url_translate, 8.0, fix-12.0-merge_duplicate_contacts, fix-exclude-child-contact, improvement-abandoned_carts, issue-1044, and master
Other repositories: Nitrokey/odoo-sale-workflow

<h1 class="title">Abandoned Carts</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/OCA/odoo-modules/tree/12.0/abandoned_carts"><img alt="OCA/odoo-modules" src="https://img.shields.io/badge/github-OCA%2Fodoo--modules-lightgray.png?logo=github" /></a> <a class="reference external" href="https://translation.odoo-community.org/projects/odoo-modules-12-0/odoo-modules-12-0-abandoned_carts"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a></p> <p>This module allows to delete Quotations and related partner records when those are older than a definable retention period.</p> <p>Features:</p> <ul class="simple"> <li>Configure a retention period of x hours (default: 48 hours)</li> <li>Specify a maximum of abandoned items to be deleted at a time (default: 2000 items) in order to avoid unresponsive server</li> <li>A log for reviewing purposes</li> </ul> <a name="algorithm"></a> <h2>Algorithm</h2> <p>This module identifies orders as abandoned (and to be deleted) if all of the following is true:</p> <p><cite>&quot;state = draft&quot; and &quot;sales = website_sales&quot; and &quot;date_of_order &lt;= hours_from_retention_period&quot;</cite></p> <p>These orders will be displayed in &quot;Abandoned orders&quot; and can be deleted manually.</p> <p>Customers, which have</p> <p><cite>&quot;orders = 0&quot; and &quot;lead = 0&quot; and &quot;meetings = 0&quot; and &quot;opportunities = 0&quot; and &quot;calls = 0&quot; and &quot;invoice = 0&quot; and &quot;tasks = 0&quot; and &quot;active = 0&quot; and &quot;is_customer = true&quot;</cite></p> <p>will be displayed in &quot;Abandoned customers&quot; and can be deleted manually.</p> <p>A cron job can be configured to delete abandoned orders and abandoned customers automatically.</p> <p>Deleted items are listed with name, date, model &amp; user in &quot;Removed Log&quot; for verification purposes.</p> <a name="configuration"></a> <h2>Configuration</h2> <p>Under Settings -&gt; Configuration -&gt; Sales -&gt; Retention Period set hours and maximum abandoned items:</p> <img alt="images/1_settings.png" src="images/1_settings.png" /> <p><strong>How to set automation (cron job) to delete orders?</strong></p> <p>Go to settings -&gt; Activate the developer mode, Technical: Automation -&gt; Scheduled Actions.</p> <p>Type in Name, Interval Number, Next Execution Date and Inverval Unit. The cron job will be executed at Next Execution Date. In Number of calls you can determine how many intervals it has to run.</p> <p>For example:</p> <p>&quot;Number of calls = 1&quot;, &quot;Interval Unit = Days&quot; and &quot;next Execution Date = 12/16/2019 15:45:44&quot; means: It runs only one day beginning with this date.</p> <p>&quot;Number of calls = 7&quot;, &quot;Interval Unit = Days&quot; and &quot;next Execution Date = 12/16/2019 15:45:44&quot; means: It runs seven days beginning with this date.</p> <p>&quot;Number of calls is negative&quot; means that this process will run every day.</p> <img alt="images/2_cron_job.png" src="images/2_cron_job.png" /> <a name="usage"></a> <h2>Usage</h2> <p><strong>How to find removable orders with draft-status?</strong></p> <p>Go to Sales -&gt; Abandoned Log: Abandoned Order. When you click on the &quot;bin&quot; Symbol on the right side, you can skip the order from the removing-process. If you scroll down and click on the red remove button, all listed orders will be deleted.</p> <img alt="images/3_abandoned_order.png" src="images/3_abandoned_order.png" /> <p><strong>How to see which data was deleted?</strong></p> <p>Go to Sales -&gt; Abandoned Log: Removed Log</p> <img alt="images/4_removed_log.png" src="images/4_removed_log.png" /> <p>You can export the data to a CSV file if you activate the check box on the left side and go to more -&gt; export.</p> <img alt="images/5_export.png" src="images/5_export.png" /> <p><strong>How to view and delete customers with zero orders?</strong></p> <p>After deleting abandoned orders, customers will not be removed automatically. In order to do so go to Sales -&gt; Abandoned Log: Abandoned Customer. When you click on the &quot;bin&quot; Symbol on the right side, you can skip the customer from the removing process. If you scroll down and click on the red remove button, all listed customers will be deleted.</p> <img alt="images/6_abandoned_customer.png" src="images/6_abandoned_customer.png" /> <p><strong>Table of contents</strong></p> <a name="bug-tracker"></a> <h2>Bug Tracker</h2> <p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/odoo-modules/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/OCA/odoo-modules/issues/new?body=module:%20abandoned_carts%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>Credits</h2> <a name="authors"></a> <h3>Authors</h3> <ul class="simple"> <li>Nitrokey GmbH</li> </ul> <a name="maintainers"></a> <h3>Maintainers</h3> <p>This module is maintained by the OCA.</p> <a class="reference external image-reference" href="https://odoo-community.org"><img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" /></a> <p>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.</p> <p>This module is part of the <a class="reference external" href="https://github.com/OCA/odoo-modules/tree/12.0/abandoned_carts">OCA/odoo-modules</a> project on GitHub.</p> <p>You are welcome to contribute. To learn how please visit <a class="reference external" href="https://odoo-community.org/page/Contribute">https://odoo-community.org/page/Contribute</a>.</p>