Skip to content

[19.0][MIG] l10n_in_ewaybill: model move from stock + account.move ewaybill data#89

Open
dnplkndll wants to merge 1 commit into
19.0from
19.0-mig-l10n-in-ewaybill
Open

[19.0][MIG] l10n_in_ewaybill: model move from stock + account.move ewaybill data#89
dnplkndll wants to merge 1 commit into
19.0from
19.0-mig-l10n-in-ewaybill

Conversation

@dnplkndll
Copy link
Copy Markdown

@dnplkndll dnplkndll commented May 30, 2026

The 19.0 e-Waybill restructure: the l10n.in.ewaybill model moves out of l10n_in_ewaybill_stock, the module renames from l10n_in_edi_ewaybill (apriori), and 8 account.move ewaybill fields move into l10n.in.ewaybill rows.

  • update_module_moved_models for l10n.in.ewaybill[.cancel]; 6 xmlids renamed; 3 res.company credential columns renamed.
  • pre-migration preserves the 8 account.move columns as legacy; post-migration inserts one l10n.in.ewaybill per move (company_id from the move, state='pending', mode '0'→NULL).

Lab-validated end-to-end: installed the EDI modules in a fresh 18.0 DB, set synthetic ewaybill data, ran the full -u all migration (rc=0), and confirmed the l10n.in.ewaybill row was created with account_move_id + company_id + distance/vehicle/doc/mode intact.

… data

- update_module_moved_models for l10n.in.ewaybill[.cancel] (l10n_in_ewaybill_stock
  -> l10n_in_ewaybill); SQL table name unchanged, only ir.model/ir.model.fields
  ownership and 6 xmlids move.
- rename_fields for the 3 res.company credential columns (drop _edi_ segment).
- pre-migration preserves 8 account.move ewaybill columns as legacy; post-migration
  inserts one l10n.in.ewaybill row per move with non-NULL data (state='pending',
  company_id from the move, mode '0' -> NULL since 19.0 drops that key).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant