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

[FIX] account_peppol: hide ocr button correctly #163507

Conversation

aliyatastemirova
Copy link
Contributor

The recent commit https://github.com/odoo/enterprise/commit/b12fc61af033f8914529d86a3edb464fc951f7dc changed the way a move is created during the import of a new peppol document. Before, we were passing a default value for extract_can_show_send_button, but now we try to set this field to False directly in create values. However, this field only exists in enterprise and thus things break if a user is only using community. Also, it's a computed readonly field, so it is better to use is_in_extractable_state for this purpose.

no task, fixing the error highlighted by tests


I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr

The recent commit odoo/enterprise@b12fc61
changed the way a move is created during the import of a new peppol document.
Before, we were passing a default value for `extract_can_show_send_button`,
but now we try to set this field to `False` directly in create values.
However, this field only exists in enterprise and thus things break if a user is only using community.
Also, it's a computed readonly field, so it is better to use `is_in_extractable_state` for this purpose.

no task, fixing the error highlighted by tests
@robodoo
Copy link
Contributor

robodoo commented Apr 26, 2024

@aliyatastemirova aliyatastemirova marked this pull request as ready for review April 26, 2024 10:06
@C3POdoo C3POdoo added the RD research & development, internal work label Apr 26, 2024
Copy link
Contributor

@smetl smetl left a comment

Choose a reason for hiding this comment

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

robodoo pushed a commit that referenced this pull request Apr 26, 2024
The recent commit odoo/enterprise@b12fc61
changed the way a move is created during the import of a new peppol document.
Before, we were passing a default value for `extract_can_show_send_button`,
but now we try to set this field to `False` directly in create values.
However, this field only exists in enterprise and thus things break if a user is only using community.
Also, it's a computed readonly field, so it is better to use `is_in_extractable_state` for this purpose.

no task, fixing the error highlighted by tests

closes #163507

Signed-off-by: Laurent Smet (las) <las@odoo.com>
@robodoo robodoo closed this Apr 26, 2024
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.

None yet

4 participants