Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Singleton Error #31

Closed
vst opened this issue Dec 18, 2014 · 1 comment
Closed

Singleton Error #31

vst opened this issue Dec 18, 2014 · 1 comment

Comments

@vst
Copy link

vst commented Dec 18, 2014

I have a self-referential one2many relationship on my product.product model.

I received a weird "Expected singleton" exception when showing the product page (form) and somehow managed to solve it by changing @api.multi to @api.one on https://github.com/OCA/stock-logistics-warehouse/blob/8.0/stock_reserve/model/product.py#L63. This probably applies to product.template as well.

What do you say?

PS: Still find it weird as the stock_reserve's button should apply to the single product.product instance in the domain, anyway.

@pedrobaeza
Copy link
Member

I don't see any problem in current code, so the problem should be in your side. Closing this.

gschrott-osi referenced this issue in ursais/stock-logistics-warehouse Jun 5, 2023
AlexPForgeFlow pushed a commit to ForgeFlow/stock-logistics-warehouse that referenced this issue Sep 20, 2023
[IMP] stock_inventory: Avoid two fields with same label
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants