You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"stock" is having an error upon installation if "g2p_registry_base" is install and there are more than 1 company
Error in the screenshot occured if "stock" and "g2p_registry_base" are installed.
The cause of error is because of the company_id field in the file g2p_registry_base/models/registrant.py changing it's parameters to required=True and adding a default value. check below code
this error shows because of a company checker function that will only execute if the model's attribute _check_company_auto is set to True
"stock.warehouse" model's _check_company_auto is set to True that's why _check_company function of base Model is executing.
_check_company checks if the res.company of a res.partner is the same as the res.company of the record that is being updated/created or if the res.company is False.
because of the default value that was added in the company_id field, _check_company is raising an error since it is neither the same company of the record nor it is blank.
@dasunhegoda@jeremi@gonzalesedwin1123 , above is my findings on this issue, i just have a question. Should we be the one to fix this issue or should it be the OpenG2P people?
Instance:
ACF-DEV
Steps to reproduce:
Actual Behavior:
Error after clicking Save manually.
Expected Behavior:
Should be able to create a new Country Office
Screenshot:
![Image](https://private-user-images.githubusercontent.com/138551361/338488746-dcb552ca-29fc-49e2-adb2-fc9bbadb32e2.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjA2Njg0MTAsIm5iZiI6MTcyMDY2ODExMCwicGF0aCI6Ii8xMzg1NTEzNjEvMzM4NDg4NzQ2LWRjYjU1MmNhLTI5ZmMtNDllMi1hZGIyLWZjOWJiYWRiMzJlMi5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwNzExJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDcxMVQwMzIxNTBaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT03ZTQyMjRhYzY4OGYzYWEzMzUwNzdiOWM0Njc5NDQxYmNiMzU3YTgzYzcwOTA1ZGMwZGM4MGE3MGI0YTc5OWE1JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.TMEbO_MZWzAnoJa1fSRKTVZdKIz7MdtCVMe04VCilYo)
The text was updated successfully, but these errors were encountered: