Skip to content

Conversation

@TudorCalinCS
Copy link

No description provided.

@robodoo
Copy link

robodoo commented Jan 19, 2026

Pull request status dashboard

@TudorCalinCS TudorCalinCS changed the title Chapter 4 - Security Chapter 1 -5 Jan 19, 2026
Copy link

@plha-odoo plha-odoo 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 for the general quality and readability of the code !
A few comments :

  • We try to always leave an empty line at the end of every file.
    If you are using vscode there is an option to automatically do it which is called Insert Final Newline.
  • for the commit message and title we try to always follow these guidelines https://www.odoo.com/documentation/16.0/contributing/development/git_guidelines.html
  • a few styling modifications for which I made local reviews (spaces arround an '=' except when used to define a parameter, spaces after but not before a ':', etc)

Copy link

@plha-odoo plha-odoo 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 for these chapters, for the applying the correct styling almost everywhere and for udpating the code after the first review.
Just a few comments :

  • don't forget to use the proper git commit title convention event if it's an udpate, in which case your title should start with [FIX]
  • two styling for which I did local reviews

@TudorCalinCS TudorCalinCS changed the title Chapter 1 -5 training-tupan Jan 21, 2026
odoo and others added 7 commits January 21, 2026 14:55
Co-authored-by: plha-odoo <plha@odoo.com>
Co-authored-by: plha-odoo <plha@odoo.com>
Co-authored-by: plha-odoo <plha@odoo.com>
Complete chapter 8
Fix naming for view fiels (estate_views.xml -> estate_view.xml)
Remove unsupported '_sql_constraints' from estate_property model
Add missing author and license keys in manifest to remove the warnings
@TudorCalinCS
Copy link
Author

Performed a rebase to align commit history with git guidelines.

Copy link

@plha-odoo plha-odoo 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 on applying the previous reviews and on adapting the previous git commit titles !
I left a few reviews in the code but mostly nitpicking

Copy link

@plha-odoo plha-odoo 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 on applying the previous reviews and on adapting the previous git commit titles !
I left a few reviews in the code but mostly nitpicking

Tudor-Calin Panzaru (tupan) added 3 commits January 23, 2026 11:19
[FIX] estate: fix bug - error for selling price lower than 90% of expected price when creating a new property (selling_price is zero)
Copy link

@plha-odoo plha-odoo 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 ! just a single styling improvement but it's nitpicking

</field>
</record>
</odoo>

No newline at end of file

Choose a reason for hiding this comment

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

your last line contains a space so it's not considered as an extra line by the runbot

Suggested change

Comment on lines +9 to +22
self.env["account.move"].create(
[
{
"partner_id": record.buyer_id.id,
"move_type": "out_invoice",
"invoice_line_ids": [
Command.create(
{"name": record.name, "quantity": 1, "price_unit": record.selling_price * 0.06}
),
Command.create({"name": "Administrative fees", "quantity": 1, "price_unit": 100}),
],
}
]
)

Choose a reason for hiding this comment

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

Suggested change
self.env["account.move"].create(
[
{
"partner_id": record.buyer_id.id,
"move_type": "out_invoice",
"invoice_line_ids": [
Command.create(
{"name": record.name, "quantity": 1, "price_unit": record.selling_price * 0.06}
),
Command.create({"name": "Administrative fees", "quantity": 1, "price_unit": 100}),
],
}
]
)
self.env["account.move"].create({
"partner_id": record.buyer_id.id,
"move_type": "out_invoice",
"invoice_line_ids": [
Command.create(
{"name": record.name, "quantity": 1, "price_unit": record.selling_price * 0.06}
),
Command.create({"name": "Administrative fees", "quantity": 1, "price_unit": 100}),
],
})

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