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

Type hint for OCA components #451

Open
jcfernandez-890825 opened this issue Jan 23, 2024 · 1 comment
Open

Type hint for OCA components #451

jcfernandez-890825 opened this issue Jan 23, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@jcfernandez-890825
Copy link

Following your advice here #342 (comment)

Could be possible to have type hints for OCA components?

For example, for this

class MyComponent(Component):
    _name = 'custom.comp.name'
    _usage = 'custom.comp.usage'

I'm thinking of something like odoo.oca_comp_name.custom_comp_name and/or odoo.oca_comp_usage.custom_comp_usage

What do you think, is it possible?

@trinhanhngoc trinhanhngoc added the enhancement New feature or request label Jan 23, 2024
@trinhanhngoc
Copy link
Member

@jcfernandez-890825 ,

Yes, it's sure possible. Here are my ideas:

  • oca.component.xxx for compoment xxx

@trinhanhngoc trinhanhngoc added this to the 2024.4.0 milestone May 2, 2024
@trinhanhngoc trinhanhngoc modified the milestones: 2024.4.0, 2024.4.1 May 12, 2024
@trinhanhngoc trinhanhngoc removed this from the 2024.4.2 milestone Jun 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants