Skip to content

[19.0][MIG] edi_purchase_oca: Migration to 19.0#270

Open
yankinmax wants to merge 12 commits intoOCA:19.0from
camptocamp:19.0-mig-edi_purchase_oca
Open

[19.0][MIG] edi_purchase_oca: Migration to 19.0#270
yankinmax wants to merge 12 commits intoOCA:19.0from
camptocamp:19.0-mig-edi_purchase_oca

Conversation

@yankinmax
Copy link
Copy Markdown
Contributor

This is a migration which:

  1. Supersedes [19.0][MIG] edi_purchase_oca #246
  2. Address @simahawk request [19.0][MIG] edi_purchase_oca #246 (comment)
  3. Improved similar way as v18 edi_sale_oca: https://github.com/OCA/edi-framework/tree/18.0/edi_sale_oca

@yankinmax yankinmax force-pushed the 19.0-mig-edi_purchase_oca branch 2 times, most recently from b915a4d to c65991f Compare April 23, 2026 14:17
@yankinmax yankinmax force-pushed the 19.0-mig-edi_purchase_oca branch 4 times, most recently from 895a472 to 0d0e8b4 Compare April 23, 2026 16:01
Copy link
Copy Markdown
Contributor

@Ricardoalso Ricardoalso left a comment

Choose a reason for hiding this comment

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

Technically LGTM

@OCA-git-bot
Copy link
Copy Markdown
Contributor

This PR has the approved label and has been created more than 5 days ago. It should therefore be ready to merge by a maintainer (or a PSC member if the concerned addon has no declared maintainer). 🤖

@DavidJForgeFlow
Copy link
Copy Markdown

@etobella could we get a merge here?

@DavidJForgeFlow
Copy link
Copy Markdown

@simahawk could you take a look here? Thanks!

@yankinmax
Copy link
Copy Markdown
Contributor Author

Hello @OCA/edi-framework-maintainers can you pls take a look and possibly trigger merge?

Copy link
Copy Markdown
Contributor

@simahawk simahawk left a comment

Choose a reason for hiding this comment

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

@yankinmax if you need help let me know.

)
yield
# edi_record_metadata api
def _edi_get_metadata_to_store(self, orig_vals):
Copy link
Copy Markdown
Contributor

@simahawk simahawk May 4, 2026

Choose a reason for hiding this comment

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

Sorry but there are too many changes in the migration commit.
These changes should not be part of the migration only...
This is a whole refactoring for alignment w/ edi_sale_oca.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I thought it would be useful. Should I get back the changes just to have what was here?

"purchase",
"edi_core_oca",
"edi_record_metadata_oca",
"edi_component_oca",
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

you are getting rid of listeners but adding edi_component_oca here? 🤔

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I thought this is the idea requested here:
#180 (comment)

Comment thread edi_purchase_oca/__manifest__.py Outdated
Define EDI Configuration for Purchase Orders""",
"version": "18.0.1.0.0",
"version": "19.0.1.0.0",
"development_status": "Alpha",
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

why getting back to Alpha? Default is Beta.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Run manifestoo -d . check-dev-status --default-dev-status=Beta
edi_purchase_oca (Beta) depends on edi_record_metadata_oca (Alpha)
Error: Process completed with exit code 1.

But, we can go just with a migration and won't have this error

LoisRForgeFlow and others added 10 commits May 4, 2026 17:32
[UPD] Update edi_purchase_oca.pot

[UPD] README.rst
[UPD] Update edi_purchase_oca.pot

[UPD] README.rst

[UPD] Update edi_purchase_oca.pot

[UPD] Update edi_purchase_oca.pot

[UPD] Update edi_purchase_oca.pot

[UPD] README.rst
Translated using Weblate (Spanish)

Currently translated at 100.0% (19 of 19 strings)

Translation: edi-14.0/edi-14.0-edi_purchase_oca
Translate-URL: https://translation.odoo-community.org/projects/edi-14-0/edi-14-0-edi_purchase_oca/es/
<field name="type_id" ref="demo_edi_exc_type_order_out" />
<field name="backend_id" ref="demo_edi_backend" />
<field name="model_id" ref="purchase.model_purchase_order" />
<field name="trigger_id" ref="edi_conf_trigger_purchase_order_state_change" />
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Hello @simahawk
edi_conf_trigger_purchase_order_state_change is added as a change you've pointed too.
edi_component_oca extends edi.exchange.consumer.mixin.write to emit those generic state change events.

I thought you've pointed too use this in this suggestion:
#180 (comment)

@yankinmax yankinmax force-pushed the 19.0-mig-edi_purchase_oca branch 3 times, most recently from 826377f to 106926c Compare May 4, 2026 15:11
@yankinmax yankinmax force-pushed the 19.0-mig-edi_purchase_oca branch from 106926c to 313284b Compare May 4, 2026 15:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.