Skip to content

[DOC] Add usage guide and migration example - #8

Open
poma-odoo wants to merge 1 commit into
masterfrom
add_usage_guide_poma
Open

[DOC] Add usage guide and migration example#8
poma-odoo wants to merge 1 commit into
masterfrom
add_usage_guide_poma

Conversation

@poma-odoo

Copy link
Copy Markdown

Add a comprehensive usage guide to README.md covering all public helpers with examples, a pre/post/end script overview, a method placement summary table, and a full script skeleton.

Add an example/ folder with a realistic Studio cleanup scenario: data model description, migration challenges table, and working pre- and post-migrate scripts.

It is mostly generated by Claude, but I added some of my taste in it, yet still I do not have enough experience to judge many of the aspects, would love to hear your [destructive/productive/atomic-bombing/al@odoo.coming...] comments.

Add a comprehensive usage guide to README.md covering all public
helpers with examples, a pre/post/end script overview, a method
placement summary table, and a full script skeleton.

Add an example/ folder with a realistic Studio cleanup scenario:
data model description, migration challenges table, and working
pre- and post-migrate scripts.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@poma-odoo
poma-odoo force-pushed the add_usage_guide_poma branch from 03c2ebf to f48778f Compare June 19, 2026 12:04
@poma-odoo
poma-odoo requested review from Maurin3 and jdkirkwood June 19, 2026 13:15
@jdkirkwood
jdkirkwood requested a review from a team July 2, 2026 08:48
@paulofilip3 paulofilip3 self-assigned this Jul 2, 2026
Comment thread example/post-migrate.py
)


def migrate(cr):

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Shouldn't this be def migrate(cr, version): like in pre-migrate.py?

Comment thread README.md
)
```

#### `CopyElements(source_xpaths, dest_xpaths, from_view=None, **kwargs)`

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

I think the second parameter is named xpaths, not dest_xpaths; calling it by keyword as documented would fail.

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.

2 participants