-
Notifications
You must be signed in to change notification settings - Fork 24
[FIX] Remove unnessary mandatory options #789
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
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## 17.0 #789 +/- ##
==========================================
- Coverage 75.07% 75.07% -0.01%
==========================================
Files 730 730
Lines 19285 19285
Branches 2400 2400
==========================================
- Hits 14479 14478 -1
Misses 4298 4298
- Partials 508 509 +1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
reichie020212
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@shashikala1998 There's no changes in this PR and upon checking the two commits of this PR, it seems that you reverted the changes of your 1st commit.
If that is intended, it is better to close this PR.
|
Something is wrong with the PR, for sure. But I don't understand why it was closed as 1) there should be a difference and 2) the problem still persists in 17.0. One commit 2160d07 fixes the issue, then the other commit 5f87532 undos the fix. Is there a reason why there are two commits @shashikala1998 ? I am reopening this PR. |
|
yes @kneckinator Initial Attempt: Removing required=True Second Attempt: Moving to XML Third Attempt: Post-Install Hook |
|
If the issue is with the delegation inheritance mechanism, why is it used instead of something like this? |
|
Also note that what the If the constraint "required = True" had been properly applied, the database would have prevented me from doing the above. |
|
@kneckinator I suggest @shashikala1998 can work on re-creating the not null constraint in the post_install method of the module but the existing records in res.partner before the module is installed must be populated first with the associated rows to resolve the failing of the constraint creation. By default the "Administrator" and "Default Company" are created upon odoo installation. |
I have tried post_install method but its not working |



Why is this change needed?
Error messages related to the above fields (farm_detail_id, farm_land_rec_id and farmer_id)shown in the OpenSPP log or the database log.
How was the change implemented?
set fields as optional
New unit tests
Unit tests executed by the author
While installing the 'spp_farmer_registry_base' , No Error messages related to the above fields (farm_detail_id, farm_land_rec_id and farmer_id) should be shown in the OpenSPP log or the database log.
How to test manually
Related links
#788