[18.0][IMP] edi_core_oca: add 'cancelled' state and use it in deduplicate #404
Hi @simahawk, @etobella,
some modules you are maintaining are being modified, check this out!
Back in draft until I test whether the pre-mig script is triggered before or after the ondelete attribute of the Selection field.
("canceled", "Cancelled"),
please set SKIP=oca-gen-addon-readme in your shell before commit to avoid such noise
@simahawk @etobella the PR is now open for reviews: I checked on a local instance and I do confirm the pre-mig.py script that migrates EDI exchange records' state value "obsolete" to "cancelled" is executed _before_ the ondelete feature of the Selection kicks in.
Thanks!
You need to adapt the core constraint https://github.com/OCA/edi-framework/blob/d46898baeeb3f9143294908ba8a891cdb6824b8a/edi_core_oca/models/edi_exchange_record.py#L199
The PR name isn't very descriptive (PR description?) 😄
I would use something like :
[18.0][IMP] edi_core_oca: add 'cancelled' state and use it in deduplicate
this is not a patch, please increase version as feature. While you do that, pls bump version 0.1.0 for core too because I'll have to merge w/ nobump. Thanks!
Approved these changes.
/ocabot merge nobump
This PR looks fantastic, let's merge it!
Prepared branch 18.0-ocabot-merge-pr-404-by-simahawk-bump-nobump, awaiting test results.
Congratulations, your PR was merged at e021496a5542c1e50addc4787c2103ac64298744. Thanks a lot for contributing to OCA. ❤️
ivantodorovich
SilvioC2C
No description provided by author.