Skip to content

[18.0][MIG] helpdesk_mgmt_stock: Migration to 18.0 - #1008

Open
david-banon-tecnativa wants to merge 12 commits into
OCA:18.0from
Tecnativa:18.0-mig-helpdesk_mgmt_stock
Open

david-banon-tecnativa wants to merge 12 commits into
OCA:18.0from
Tecnativa:18.0-mig-helpdesk_mgmt_stock

Conversation

@david-banon-tecnativa

Copy link
Copy Markdown
Contributor

A migration from this PR to 18.0, changes:

  • Removed helpdesk_motive dependency
  • Migration to v18.

cc @Tecnativa
ping @rousseldenis

@OCA-git-bot OCA-git-bot added series:18.0 mod:helpdesk_product Module helpdesk_product mod:helpdesk_mgmt_stock Module helpdesk_mgmt_stock labels May 25, 2026
@david-banon-tecnativa
david-banon-tecnativa force-pushed the 18.0-mig-helpdesk_mgmt_stock branch from 0671e74 to 0636de5 Compare May 25, 2026 13:52
@OCA-git-bot OCA-git-bot removed the mod:helpdesk_product Module helpdesk_product label May 25, 2026

@ChristianSantamaria ChristianSantamaria left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Funcional and code review, LGTM 👍 👍

But i detect a minor changes:

Comment thread helpdesk_mgmt_stock/views/stock_move.xml Outdated
Comment thread helpdesk_mgmt_stock/views/stock_picking.xml Outdated
Comment thread helpdesk_mgmt_stock/models/stock_picking_type.py Outdated
@david-banon-tecnativa
david-banon-tecnativa force-pushed the 18.0-mig-helpdesk_mgmt_stock branch 2 times, most recently from 3d772c0 to c72d599 Compare May 26, 2026 11:20

@ChristianSantamaria ChristianSantamaria left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

👍 👍

@eduezerouali-tecnativa eduezerouali-tecnativa left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Just two minor things. Everything else LGTM

Comment thread helpdesk_mgmt_stock/views/stock_picking.xml Outdated
Comment thread helpdesk_mgmt_stock/tests/test_stock_helpdesk.py
Comment thread helpdesk_mgmt_stock/tests/test_stock_helpdesk.py
@eduezerouali-tecnativa

Copy link
Copy Markdown
Contributor

ping @david-banon-tecnativa can you attend the comments please?

@rousseldenis

Copy link
Copy Markdown

/ocabot migration helpdesk_mgmt_stock

@OCA-git-bot

Copy link
Copy Markdown
Contributor

Sorry @rousseldenis you are not allowed to mark the addon to be migrated.

To do so you must either have push permissions on the repository, or be a declared maintainer of all modified addons.

If you wish to adopt an addon and become it's maintainer, open a pull request to add your GitHub login to the maintainers key of its manifest.

Comment thread helpdesk_mgmt_stock/models/helpdesk_ticket.py Outdated
)
helpdesk_tickets_count = fields.Integer(
compute="_compute_helpdesk_tickets_count",
helpdesk_ticket_count = fields.Integer(

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

IMHO this change is not needed as there are possibly several tickets

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I think its better semantically, the same way we do helpdesk_ticket_ids and not helpdesk_tickets_ids, i think count fields should be singular. Example: helpdesk_mgmt_project

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Indeed, we should avoid plurals everywhere where possible as stated in guidelines, and more in between the whole field name. count in this case already references the goal.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

We defined that for modules but not for fields...

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Nevertheless, this should be done in another commit

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

The rule is for every identified in general. And this should go in the same migration commit, including the migration script with rename_fields cc @david-banon-tecnativa

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Don't agree on that. In order to backport the changes to previous version. Thanks

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

The rule is for every identified in general.

Where ? I just see : https://github.com/OCA/odoo-community.org/blob/master/website/Contribution/CONTRIBUTING.rst#11modules

If it is a rule you enforced, please do a PR to improve.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

OK, if you enforce this, we don't change the variable name, but it's a constant source of misspellings.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Rename done in a separate commit if you want to backport to v16 @rousseldenis

Comment thread helpdesk_mgmt_stock/models/stock_picking_type.py Outdated
Comment thread helpdesk_mgmt_stock/models/helpdesk_ticket_motive.py Outdated
rousseldenis and others added 9 commits July 24, 2026 12:42
Labels went missing in form view due to a new group being created inside an already existing group (odoo only renders the labels for leaf groups).
Add the "action" prefix to the method called by the wizard "Create Ticket" button in order to signify more clearly that this returns an action.
Pass default picking/move id in context of the different tickets views opened in order to allow to pre-populate those fields when the user creates a new ticket from there.
@david-banon-tecnativa
david-banon-tecnativa force-pushed the 18.0-mig-helpdesk_mgmt_stock branch from 862b2a9 to 6dc7de3 Compare July 27, 2026 14:42
@OCA-git-bot OCA-git-bot added the mod:helpdesk_mgmt_stock_motive Module helpdesk_mgmt_stock_motive label Jul 27, 2026
@pedrobaeza

Copy link
Copy Markdown
Member

/ocabot migration helpdesk_mgmt_stock

@OCA-git-bot OCA-git-bot added this to the 18.0 milestone Jul 30, 2026
@OCA-git-bot OCA-git-bot mentioned this pull request Jul 30, 2026
10 tasks

@pedrobaeza pedrobaeza left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@david-banon-tecnativa the commit containing the new module helpdesk_mgmt_stock should include the removal of the things in the existing one and the addition, instead of doing the removal in the migration commit.

@eduezerouali-tecnativa eduezerouali-tecnativa left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

"views/helpdesk_ticket_motive_views.xml",
"wizards/stock_helpdesk_ticket_create_views.xml",
],
"demo": [],

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
"demo": [],

can be remove

@OCA-git-bot

Copy link
Copy Markdown
Contributor

This PR has the approved label and has been created more than 5 days ago. It should therefore be ready to merge by a maintainer (or a PSC member if the concerned addon has no declared maintainer). 🤖

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants