Skip to content

[FW][16.0][Backport] [FIX] safe_eval: 3.11 compatibility#156700

Closed
fw-bot wants to merge 1 commit intoodoo:saas-16.1from
odoo-dev:saas-16.1-16.0-missing-3.11-opcodes-X_k0-fw
Closed

[FW][16.0][Backport] [FIX] safe_eval: 3.11 compatibility#156700
fw-bot wants to merge 1 commit intoodoo:saas-16.1from
odoo-dev:saas-16.1-16.0-missing-3.11-opcodes-X_k0-fw

Conversation

@fw-bot
Copy link
Copy Markdown
Contributor

@fw-bot fw-bot commented Mar 6, 2024

Backport of #136943 to 16.0 branch

Description of the issue/feature this PR addresses: This fixes the issue #149524

Current behavior before PR: When creating a server action with 16.0 branch throws the error:

forbidden opcode(s) in 'lambda': POP_JUMP_FORWARD_IF_NOT_NONE, POP_JUMP_FORWARD_IF_NONE

Desired behavior after PR is merged: Server actions created without problemas


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

Forward-Port-Of: #156438

Complement on 1e35315 (odoo#112450):
alongside the split between forwards and backwards jump we missed that
3.11 has a specialized version of each for the `is None` and `is not
None` cases. A use of that was added in standard in 16.5 (odoo#120446) but
more generally it makes sense that server actions would support
conditional tests against `None`, probably...

X-original-commit: 22ad0a3
@robodoo
Copy link
Copy Markdown
Contributor

robodoo commented Mar 6, 2024

Pull request status dashboard.

@fw-bot
Copy link
Copy Markdown
Contributor Author

fw-bot commented Mar 6, 2024

This PR targets saas-16.1 and is part of the forward-port chain. Further PRs will be created up to master.

More info at https://github.com/odoo/odoo/wiki/Mergebot#forward-port

@robodoo robodoo added the forwardport This PR was created by @fw-bot label Mar 6, 2024
@C3POdoo C3POdoo added the RD research & development, internal work label Mar 6, 2024
@fw-bot
Copy link
Copy Markdown
Contributor Author

fw-bot commented Mar 6, 2024

@hugosantosred @xmo-odoo the next pull request (#156713) is in conflict. You can merge the chain up to here by saying

@fw-bot r+

More info at https://github.com/odoo/odoo/wiki/Mergebot#forward-port

@xmo-odoo
Copy link
Copy Markdown
Collaborator

xmo-odoo commented Mar 6, 2024

@fw-bot r+

robodoo pushed a commit that referenced this pull request Mar 6, 2024
Complement on 1e35315 (#112450):
alongside the split between forwards and backwards jump we missed that
3.11 has a specialized version of each for the `is None` and `is not
None` cases. A use of that was added in standard in 16.5 (#120446) but
more generally it makes sense that server actions would support
conditional tests against `None`, probably...

closes #156700

X-original-commit: 22ad0a3
Signed-off-by: Xavier Morel (xmo) <xmo@odoo.com>
@robodoo robodoo closed this Mar 6, 2024
@fw-bot fw-bot deleted the saas-16.1-16.0-missing-3.11-opcodes-X_k0-fw branch March 20, 2024 16:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

forwardport This PR was created by @fw-bot RD research & development, internal work

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants