Skip to content

[FIX] give all arguments to Editor to be able to use them#3

Open
lse-odoo wants to merge 1 commit intomainfrom
main-imp_allow_editor_child_access_command-lse
Open

[FIX] give all arguments to Editor to be able to use them#3
lse-odoo wants to merge 1 commit intomainfrom
main-imp_allow_editor_child_access_command-lse

Conversation

@lse-odoo
Copy link

@lse-odoo lse-odoo commented Nov 8, 2025

Description

Before this commit:
Overriding the EditorCommand to add new parameters/arguments to the command would work. But it would not be accessible from Editor class as only the repository was given from the args

After this commit:
Forward to the Editor all commands arguments

! This is potentially unstable if __init__ is overridden by Editor subclasses

Linked Issues

Link the issues that this PR solves, if any: Nope!

Compliance

  • I have read the contribution guide
  • I made sure the documentation is up-to-date both in doctrings and the docs directory
  • I have added or modified unit tests where necessary
  • I have added new libraries to the requirements.txt file, if any
  • I have incremented the version number according the versioning guide
  • The PR contains my changes only and no other external commit

Before this commit:
Overriding the `EditorCommand` to add new parameters/arguments to the command would work. But it would not be accessible from `Editor` class as only the `repository` was given from the args

After this commit:
Forward to the `Editor` all commands arguments

! This is potentially unstable if `__init__` is overridden by `Editor` subclasses
@lse-odoo lse-odoo force-pushed the main-imp_allow_editor_child_access_command-lse branch from 744fd55 to 4765d98 Compare November 8, 2025 00:24
@lse-odoo lse-odoo marked this pull request as ready for review November 8, 2025 00:26
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.

1 participant