OdooWiki OCA HUB

Require accepting legal terms to checkout

website_sale_require_legal folder_open OCA/e-commerce open_in_new
Website License: AGPL-3

This module extends your e-commerce legal compliance options.

Standard Odoo can require accepting legal terms before payment. This module complements that behavior by allowing legal terms to be required earlier, when creating or editing an address during checkout.

  • Require accepting legal terms before submitting a new address.
  • Log a note in the partner when such terms are accepted.
  • Log a note in the sale order when terms are accepted before payment (done for every online payment, it is an upstream feature).

auto_awesome What this module does

AI-generated from the code · Odoo 19.0

Adds an optional checkbox to the e-commerce address form so customers must accept the terms & conditions before saving an address during checkout. When accepted, a note with the customer's IP address, browser and language is logged on the contact and on the order.

This module extends the online shop checkout so that legal terms can be required earlier than the standard payment step — specifically when a customer creates or edits a delivery or billing address.

  • A checkbox "I agree to the terms & conditions" (with a link to /terms) is added to the address form on the website checkout.
  • The requirement is optional and off by default: it is enabled from the website builder with the option "Require Legal Terms on Address Form".
  • When enabled, submitting the address form without ticking the box is rejected with the message "You must accept the terms & conditions to continue."
  • If the customer accepts while editing an existing address, a note is posted on the related contact (res.partner) recording the acceptance metadata: IP address, browser user agent and accepted language.
  • When the standard Odoo option to accept terms before payment is active, the same acceptance metadata note is also posted on the sale order (sale.order) at payment time.

The module touches the website checkout address form and the payment transaction flow, and logs notes on contacts and sale orders.

Depends on

website_sale

Text generated by AI (DeepSeek) from reading the Odoo 19.0 code on GitHub; it may contain mistakes, so check the code before deciding. View the code on GitHub

Availability by version

Reviewed: 2026-11-03
Confirmed (verified in repository and branch) Estimated (unverified) No information

Confirmation status: 8 confirmed, 1 with no information of 9 versions.

Sources · Odoo 16.0

Confirmed on 2026-11-03 in branch 16.0 of OCA/e-commerce.

terminal Installation and usage

OCA documentation · Odoo 19.0

To configure this module, you need to:

  • Install it.
  • Set up your legal pages.
  • Go to your e-commerce and make a sample checkout.
  • Visit /shop/address and enable in the web editor Customize \> Require Legal Terms Acceptance. This will require acceptance before recording a new address, and log visitor's acceptance.
  • Visit /shop/payment and enable in the web editor Customize \> Accept Terms & Conditions (upstream Odoo feature). This will require acceptance before paying the sale order, and log visitor's acceptance.

To use this module, you need to:

  • Buy something from your website.

No verified information in OCA: Installation.

info

Data imported from GitHub: this sheet reflects the latest catalog review, not a live lookup. Always check the module documentation and staging before installing in production.