odoo / odoo/documentation

We can't use prototype inheritance with `product.template` model

Open
#1,796 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
reStructuredText
Stars
1.3k
Forks
12.1k
PR merge metrics
No merged PRs in 30d

Description

Odoo raises TypeError on Many2many fields that set manually the  relation, column1, and column2 like taxes_id, supplier_taxes_id, or route_ids and there are many references to product.template in model fields and methods. Even if you fix that error, the product_tmpl_id field still references the product template model and this will prevent Odoo from creating any record.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the documentation covering prototype inheritance, product.template, and Many2many fields. Review how the examples address manually set relation, column1, column2, and product_tmpl_id references. Done means the relevant documentation clearly explains the limitation and the supported behavior or correction.

Written by the indexing model from the issue text.

Assessment

Domain
documentation
Issue type
Documentation
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.