Needed for the lint job of the CI to go green. Mostly automatic hook fixes (black, isort, prettier, pyupgrade, autoflake, whitespace). By hand: - flake8: two unused imports, an ambiguous variable name `l`. - pylint-odoo mandatory: manifest keys equal to their default value (installable, application, data, external_dependencies). - end-of-file-fixer skips *.patch too, like trailing-whitespace: the upstream patches stay as git format-patch wrote them. No behaviour change. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
18 lines
924 B
XML
18 lines
924 B
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
|
|
<record id="res_config_settings_view_form_membership_signup" model="ir.ui.view">
|
|
<field name="name">res.config.settings.view.form.inherit.membership.signup</field>
|
|
<field name="model">res.config.settings</field>
|
|
<field name="inherit_id" ref="website_sale.res_config_settings_view_form"/>
|
|
<field name="arch" type="xml">
|
|
<xpath expr="//setting[@id='website_checkout_registration']" position="after">
|
|
<setting string="Membership signup required"
|
|
help="When enabled, anonymous visitors trying to add a membership product to cart are redirected to /web/signup before the product is added. Applies per-website, only in b2b (guest checkout) mode.">
|
|
<field name="membership_signup_required"/>
|
|
</setting>
|
|
</xpath>
|
|
</field>
|
|
</record>
|
|
|
|
</odoo>
|