Skip to content

rohar - Technical Training#1242

Open
rohar-odoo wants to merge 11 commits intoodoo:19.0from
odoo-dev:19.0-onboarding-rohar
Open

rohar - Technical Training#1242
rohar-odoo wants to merge 11 commits intoodoo:19.0from
odoo-dev:19.0-onboarding-rohar

Conversation

@rohar-odoo
Copy link
Copy Markdown

No description provided.

@robodoo
Copy link
Copy Markdown

robodoo commented Apr 21, 2026

Pull request status dashboard

@Mathilde411 Mathilde411 self-requested a review April 22, 2026 06:56
@rohar-odoo rohar-odoo force-pushed the 19.0-onboarding-rohar branch from bcfd4ea to a6d47e1 Compare April 22, 2026 08:06
Copy link
Copy Markdown

@Mathilde411 Mathilde411 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pretty good so far !
Runbot is green so good job !
Also would you be able to squash your commits so that you only have one per chapter ?

Comment thread estate/models/estate_property.py Outdated
Comment thread estate/models/estate_property.py Outdated
Comment thread estate/models/estate_property.py
Comment thread estate/models/estate_property.py Outdated
Comment thread estate/security/ir.model.access.csv Outdated
@@ -0,0 +1,2 @@
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
estate.access_estate_property,access_estate_property,estate.model_estate_property,base.group_user,1,1,1,1 No newline at end of file
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
estate.access_estate_property,access_estate_property,estate.model_estate_property,base.group_user,1,1,1,1
estate_property_access_user,estate.property.user,model_estate_property,base.group_user,1,1,1,1

Comments for each column:
1st column is the XMLid of the access right, it should be <model_name>_access_<concerned_group> (similarly to record rules in https://www.odoo.com/documentation/19.0/contributing/development/coding_guidelines.html#xml-ids-and-naming)
second column is the name
2nd column is the name of the rule, the one that will be displayed in the ui, should say the model name and the targeted group (there is not really a fixed way, but a common one is with dots, like suggested)
3rd one is the xmlid of the model targeted, you don't need to add the module name in front if the xmlid is from the same module as you, same for 4th column that represents the targetted group

Comment thread estate/__manifest__.py Outdated
Comment thread estate/__manifest__.py Outdated
Comment thread estate/__manifest__.py Outdated
Comment thread estate/__manifest__.py Outdated
Comment thread estate/__manifest__.py Outdated
@rohar-odoo rohar-odoo force-pushed the 19.0-onboarding-rohar branch from 23066b8 to 9687c2b Compare April 23, 2026 08:39
@rohar-odoo rohar-odoo force-pushed the 19.0-onboarding-rohar branch from 9687c2b to 31493f7 Compare April 23, 2026 09:24
Copy link
Copy Markdown

@Mathilde411 Mathilde411 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good job here !
Here are a few things that I'd have done another way :)

Comment thread estate/models/estate_property.py Outdated
Comment thread estate/models/estate_property.py Outdated
Comment thread estate/models/estate_property.py Outdated
Comment thread estate/models/estate_property.py Outdated
Comment thread estate/models/estate_property.py Outdated
Comment thread estate/views/estate_menus.xml Outdated
Comment thread estate/views/estate_property_offer_views.xml Outdated
Comment thread estate/views/estate_property_tag_views.xml Outdated
Comment thread estate/views/estate_property_views.xml Outdated
Comment thread estate/views/estate_property_views.xml Outdated
@rohar-odoo rohar-odoo force-pushed the 19.0-onboarding-rohar branch from 1c48673 to c200402 Compare April 27, 2026 06:56
@rohar-odoo rohar-odoo force-pushed the 19.0-onboarding-rohar branch from 46eaf24 to 93e04e6 Compare April 28, 2026 12:35
vandroogenbd and others added 4 commits April 28, 2026 15:46
This commit is here to introduce the testing framework of Odoo. Try running the
tests using `--test-tags :TestEstateProperty`.

Doc:
https://www.odoo.com/documentation/18.0/developer/reference/backend/testing.html?highlight=tests#invocation

The tests were made such that the first one should work but the second one
should fail. Your job is to ensure both tests pass in the end. You should update
the behaviour of the appropriate models.

If you want, you can also add a small test of your own to get a feel for it.
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

Successfully merging this pull request may close these issues.

4 participants