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

ahta - Server framework 101 #209

Open
wants to merge 21 commits into
base: 18.0
Choose a base branch
from
Open

Conversation

ataha1
Copy link

@ataha1 ataha1 commented Dec 16, 2024

No description provided.

@robodoo
Copy link

robodoo commented Dec 16, 2024

Pull request status dashboard

Copy link

@kfr-odoo kfr-odoo left a comment

Choose a reason for hiding this comment

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

Keep going, just a few remarks

  • Ensure your commits respects Odoo's guidelines
  • Configure your IDE to get ride of EOF issues. "Insert Final Newline" in VScode.

estate/models/estate_property.py Outdated Show resolved Hide resolved
estate/security/ir.model.access.csv Outdated Show resolved Hide resolved
@ataha1 ataha1 requested a review from kfr-odoo December 17, 2024 21:34
.vscode/settings.json Show resolved Hide resolved
estate/models/estate_property.py Outdated Show resolved Hide resolved
<record id="estate_property_type_action" model="ir.actions.act_window">
<field name="name">Property Types</field>
<field name="res_model">estate.property.type</field>
<field name="view_mode">list,form</field>

Choose a reason for hiding this comment

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

FYI: this is the default. Not a bad practice to have it here anyway. ref

estate/models/estate_property.py Outdated Show resolved Hide resolved
estate/models/estate_property_offer.py Outdated Show resolved Hide resolved
estate/models/estate_property_offer.py Outdated Show resolved Hide resolved
@kfr-odoo
Copy link

@ataha1 The CI tool is still red, please try to fix the issues

@ataha1 ataha1 force-pushed the 18.0-training-ahta branch from 75e607d to ebc6946 Compare December 20, 2024 09:17
estate/models/estate_property.py Outdated Show resolved Hide resolved
estate/models/estate_property_offer.py Outdated Show resolved Hide resolved
estate/views/estate_property_views.xml Outdated Show resolved Hide resolved
estate/models/estate_property.py Outdated Show resolved Hide resolved
estate/models/estate_property_offer.py Outdated Show resolved Hide resolved
Comment on lines +12 to +13
if (this.props.onChange) {
this.props.onChange();

Choose a reason for hiding this comment

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

FYI: this syntax works also

Suggested change
if (this.props.onChange) {
this.props.onChange();
this.props.onChange?.();

@api.model_create_multi
def create(self, vals_list):
for vals in vals_list:
property = self.env["estate.property"].browse(vals["property_id"])

Choose a reason for hiding this comment

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

Suggested change
property = self.env["estate.property"].browse(vals["property_id"])
property = self.env["estate.property"].browse(vals["property_id"]).exists()

@@ -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

Choose a reason for hiding this comment

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

This record rule already exist

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.

3 participants