[19.0][ADD] product_plan_code #6

Open
odoo wants to merge 1 commit from odoo/19.0-product_plan_code into 19.0 AGit
Owner

A unique technical code per product variant, read by the onk.style entitlement controller (cluster-moby docs/entitlements-spec.md). 6 tests, pre-commit clean. 🤖 Generated with Claude Code

A unique technical code per product variant, read by the onk.style entitlement controller (cluster-moby docs/entitlements-spec.md). 6 tests, pre-commit clean. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
A system that grants access from what was sold (the onk.style
entitlement controller) needs a stable key per product variant, not a
product name. The code lives on product.product because a plan is a
variant ("Photo 100" and "Photo 200" of "Photo"), and on single-variant
templates it is edited on the template, exactly like default_code.

Unique, and never copied: duplicating a product that grants something
would otherwise produce a second product claiming the same entitlement.
Copying a variant always goes through its template, so the guarantee
that matters is the template's; the test duplicates a template.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin +refs/pull/6/head:odoo/19.0-product_plan_code
git switch odoo/19.0-product_plan_code

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 19.0
git merge --no-ff odoo/19.0-product_plan_code
git switch odoo/19.0-product_plan_code
git rebase 19.0
git switch 19.0
git merge --ff-only odoo/19.0-product_plan_code
git switch odoo/19.0-product_plan_code
git rebase 19.0
git switch 19.0
git merge --no-ff odoo/19.0-product_plan_code
git switch 19.0
git merge --squash odoo/19.0-product_plan_code
git switch 19.0
git merge --ff-only odoo/19.0-product_plan_code
git switch 19.0
git merge odoo/19.0-product_plan_code
git push origin 19.0
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
odoo/odooapps!6
No description provided.