Skip to content

Conversation

yava-odoo
Copy link
Contributor

In this PR,

  • Set the default department for the Plans smart button.
  • If there is no plan, it will open the form view.

Task-4356557

@robodoo
Copy link
Contributor

robodoo commented Dec 18, 2024

Pull request status dashboard

@C3POdoo C3POdoo added the RD research & development, internal work label Dec 18, 2024
@yava-odoo yava-odoo force-pushed the 17.0-hr-department-activity-plans-yava branch from 2efd062 to 03f1287 Compare December 25, 2024 07:17
Copy link
Contributor

@abdelrahmankhaledg abdelrahmankhaledg left a comment

Choose a reason for hiding this comment

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

Hello Yash, thanks for your work. I've left one comment.

@yava-odoo yava-odoo force-pushed the 17.0-hr-department-activity-plans-yava branch from 03f1287 to ff8c166 Compare December 30, 2024 12:47
Comment on lines 135 to 147
Copy link
Contributor

@abdelrahmankhaledg abdelrahmankhaledg Dec 30, 2024

Choose a reason for hiding this comment

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

The domain should have the '|' right?

Suggested change
domain = [
('department_id', '=', False),
('department_id', '=', self.id),
]
domain = [
'|',
('department_id', '=', False),
('department_id', '=', self.id),
]

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Opps 🙈

I've fixed it 😇

Copy link
Contributor

@abdelrahmankhaledg abdelrahmankhaledg Dec 31, 2024

Choose a reason for hiding this comment

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

Hello Yash, the number of plans on the button on the department form view doesn't take into account the plans whose department is False. I know it wasn't part of the spec but I've discussed that with Sumanth and given that we show these plans, then the count should be updated.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done 👍

@yava-odoo yava-odoo force-pushed the 17.0-hr-department-activity-plans-yava branch 3 times, most recently from 84ff9f0 to 70f70d7 Compare December 31, 2024 10:44
@yava-odoo yava-odoo force-pushed the 17.0-hr-department-activity-plans-yava branch from 70f70d7 to 3d21ba9 Compare January 28, 2025 12:45
@tivisse tivisse marked this pull request as ready for review February 3, 2025 19:51
In this commit,
- Set the default department for the Plans smart button.
- If there is no plan, it will open the form view.

Task-4356557
@C3POdoo C3POdoo requested review from a team February 3, 2025 19:53
@tivisse tivisse force-pushed the 17.0-hr-department-activity-plans-yava branch from 3d21ba9 to 6fb298b Compare February 3, 2025 19:53
@tivisse
Copy link
Contributor

tivisse commented Feb 3, 2025

@robodoo r+

robodoo pushed a commit that referenced this pull request Feb 3, 2025
In this commit,
- Set the default department for the Plans smart button.
- If there is no plan, it will open the form view.

Task-4356557

closes #190938

Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
@robodoo
Copy link
Contributor

robodoo commented Feb 3, 2025

@yava-odoo @tivisse staging failed: ci/runbot on b47d0b74595d1142eb857950a6f63b42c91ad630 (view more at https://runbot.odoo.com/runbot/build/74443264)

@tivisse
Copy link
Contributor

tivisse commented Feb 4, 2025

@robodoo retry

robodoo pushed a commit that referenced this pull request Feb 4, 2025
In this commit,
- Set the default department for the Plans smart button.
- If there is no plan, it will open the form view.

Task-4356557

closes #190938

Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
@robodoo robodoo closed this Feb 4, 2025
@fw-bot fw-bot deleted the 17.0-hr-department-activity-plans-yava branch February 18, 2025 07:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
RD research & development, internal work
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants