Skip to content

Comments

CYMO - Technical training 19.0#1172

Draft
MrRose765 wants to merge 16 commits intoodoo:19.0from
odoo-dev:19.0-training-cymo
Draft

CYMO - Technical training 19.0#1172
MrRose765 wants to merge 16 commits intoodoo:19.0from
odoo-dev:19.0-training-cymo

Conversation

@MrRose765
Copy link

No description provided.

@robodoo
Copy link

robodoo commented Feb 16, 2026

Pull request status dashboard

@MrRose765 MrRose765 changed the title CYMO - Technical training 2026 CYMO - Technical training 19.0 Feb 16, 2026
@ltinel ltinel self-requested a review February 16, 2026 15:19
Copy link

@ltinel ltinel 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 :) A few "FYIs", but nothing to say really

Copy link

@ltinel ltinel left a comment

Choose a reason for hiding this comment

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

Great work 😄

FYI, if you scroll to the bottom of your PR, you'll find some Runbot links, among which the ci/style check. In there, you'll find a few styling suggestions (typically incorrect use of whitespace or newlines). Could you implement those to make the check pass?

@MrRose765
Copy link
Author

Thank you for your feedback !

FYI, if you scroll to the bottom of your PR, you'll find some Runbot links, among which the ci/style check. In there, you'll find a few styling suggestions (typically incorrect use of whitespace or newlines). Could you implement those to make the check pass?

I don't have access to the runbot at the moment 😔. Sysadmins told me that I have to check with HR... I will try to change asap to pass the checks.

Chapter 7 - Relations Between Models
@MrRose765 MrRose765 force-pushed the 19.0-training-cymo branch 3 times, most recently from 6b43021 to 8cd5978 Compare February 19, 2026 08:24
Copy link

@ltinel ltinel 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 :)

- Add Python constraint to ensure selling price is acceptable relative to expected price.
- Add SQL constraints for unique property names and positive prices.
- Add decorations (colors) to the property list view based on status.
- Add 'Offers' stat button to the property form view.
- Set default ordering for property types and tags.

Chapter 11 - Add The Sprinkles
Copy link

@ltinel ltinel left a comment

Choose a reason for hiding this comment

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

Great work! 🤩

export class Card extends Component {
static template = "awesome_owl.Card";
static props = {
title: { type: String, required: true },
Copy link

Choose a reason for hiding this comment

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

I don't think there's any support for required 😅 Props are required by default. You can, however, make props optional via optional: true.

Suggested change
title: { type: String, required: true },
title: String,

Copy link

Choose a reason for hiding this comment

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

<?xml version="1.0" encoding="UTF-8" ?>
<templates xml:space="preserve">
<t t-name="awesome_owl.TodoItem">
<div t-att-class="props.todo.isCompleted ? 'text-decoration-line-through' : ''">
Copy link

Choose a reason for hiding this comment

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

I think the line-through should only apply to the id and description, but not the checkbox nor the remove button

Comment on lines 18 to 20
onChanged() {
this.props.toggleState(this.props.todo.id);
}
Copy link

Choose a reason for hiding this comment

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

I'm fine with this, but I'd do the same for both methods: either call both of them directly in the view (and remove this), or call both of them here (and simplify the call in the view).

Discover the web framework - Chapter 1 -  Owl components
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