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

[16.0] [FIX] base_import_async: remove default values from context when creating the attachment #528

Merged

Conversation

marielejeune
Copy link
Contributor

Some default values might be present in context depending on the action we came from when clicking on 'import' button. These default values are not intended to be default values for the ir.attachment record.
In some cases they cause an error because a field with the same name exists on ir.attachment, as for e.g. the 'default_type'='opportunity' value present in the standard crm.lead action context.

@marielejeune marielejeune changed the title [FIX] base_import_async: remove default values from context when creating the attachment [16.0] [FIX] base_import_async: remove default values from context when creating the attachment Apr 14, 2023
@github-actions
Copy link

There hasn't been any activity on this pull request in the past 4 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days.
If you want this PR to never become stale, please ask a PSC member to apply the "no stale" label.

@github-actions github-actions bot added the stale PR/Issue without recent activity, it'll be soon closed automatically. label Aug 13, 2023
@github-actions github-actions bot closed this Sep 17, 2023
@rousseldenis
Copy link
Contributor

@OCA/core-maintainers @guewen Could you reopen this and review ?

@guewen guewen reopened this Sep 18, 2023
…ting the attachment.

Some default values might be present in context depending on the action we came from
when clicking on 'import' button. These default values are not intended to
be default values for the ir.attachment record.
In some cases they cause an error because a field with the same name exists on
ir.attachment, as for e.g. the 'default_type'='opportunity' value
present in the standard crm.lead action context.
@marielejeune marielejeune force-pushed the 16.0-base_import_async_attachment_context_fix-mle branch from 48f41dd to db24c87 Compare September 18, 2023 07:34
@marielejeune
Copy link
Contributor Author

marielejeune commented Sep 18, 2023

Rebased on 16.0 + fixed pre-commit.

@guewen
Copy link
Member

guewen commented Sep 18, 2023

/ocabot merge patch

@OCA-git-bot
Copy link
Contributor

What a great day to merge this nice PR. Let's do it!
Prepared branch 16.0-ocabot-merge-pr-528-by-guewen-bump-patch, awaiting test results.

@guewen
Copy link
Member

guewen commented Sep 18, 2023

Thanks!

@OCA-git-bot OCA-git-bot merged commit 0c950fc into OCA:16.0 Sep 18, 2023
4 of 6 checks passed
@OCA-git-bot
Copy link
Contributor

Congratulations, your PR was merged at f80f09d. Thanks a lot for contributing to OCA. ❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merged 🎉 stale PR/Issue without recent activity, it'll be soon closed automatically.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants