Skip to content

[MIG] sale_report_margin: Migration to 19.0 - #281

Open
dreispt wants to merge 25 commits into
OCA:19.0from
ursais:19.0-mig-sale_report_margin
Open

[MIG] sale_report_margin: Migration to 19.0#281
dreispt wants to merge 25 commits into
OCA:19.0from
ursais:19.0-mig-sale_report_margin

Conversation

@dreispt

@dreispt dreispt commented Aug 19, 2026

Copy link
Copy Markdown
Member

Supersedes #259

chienandalu and others added 25 commits August 19, 2026 17:35
[FIX] sale_report_margin: website attribute in manifest
Currently translated at 100.0% (2 of 2 strings)

Translation: margin-analysis-16.0/margin-analysis-16.0-sale_report_margin
Translate-URL: https://translation.odoo-community.org/projects/margin-analysis-16-0/margin-analysis-16-0-sale_report_margin/es/
Currently translated at 100.0% (2 of 2 strings)

Translation: margin-analysis-16.0/margin-analysis-16.0-sale_report_margin
Translate-URL: https://translation.odoo-community.org/projects/margin-analysis-16-0/margin-analysis-16-0-sale_report_margin/it/
Port sale_report_margin from 18.0 to 19.0.

Assisted-by: Devin:SWE-1.7 Medium

@carlos-lopez-tecnativa carlos-lopez-tecnativa left a comment

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.

LGTM, but if you can squash the administrative commits and apply my suggestion, that would be great.

TT64206

from odoo.tests.common import TransactionCase


class TestSaleReportMargin(TransactionCase):

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.

Could you inherit from BaseCommon?

Suggested change
class TestSaleReportMargin(TransactionCase):
class TestSaleReportMargin(BaseCommon):

Comment on lines +23 to +26
(
0,
0,
{

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.

Suggested change
(
0,
0,
{
Command.create(
{

cls.product_product = cls.env["product.product"].create(
{"name": "Product Test"}
)
cls.partner = cls.env["res.partner"].create({"name": "Partner Test"})

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.

Inherited from BaseCommon, we already have a partner, so I think this is not necessary.

Suggested change
cls.partner = cls.env["res.partner"].create({"name": "Partner Test"})

manuelcalerosolis added a commit to xtendoo-corporation/xtendoo that referenced this pull request Aug 26, 2026
OCA no mantiene estos 8 módulos que DJI usa en 19.0 (no existe rama 19.0
en sus repos), pero cada uno tiene un Pull Request abierto (sin fusionar)
que sí los migra. Decisión del usuario: usar esos PRs en vez de forkear
desde cero. Renombrados con prefijo xtendoo_ para evitar colisión de
nombre técnico si OCA fusiona el PR original más adelante.

- xtendoo_web_company_color <- OCA/web#3326 (HeliconiaIO/web)
- xtendoo_hr_expense_cancel <- OCA/hr-expense#356 (ledoent/hr-expense)
- xtendoo_hr_expense_payment <- OCA/hr-expense#355 (ledoent/hr-expense)
- xtendoo_website_whatsapp <- OCA/website#1207 (Jarsa-dev/website)
- xtendoo_stock_picking_mass_action <- OCA/stock-logistics-workflow#2161
  (adhoc-dev/stock-logistics-workflow)
- xtendoo_sale_report_margin <- OCA/margin-analysis#281 (ursais/margin-analysis)
- xtendoo_product_pricelist_direct_print <- OCA/product-attribute#2220
  (Studio73/product-attribute)
- xtendoo_account_move_line_stock_info <- OCA/stock-logistics-warehouse#2549
  (collinskipkorir/stock-logistics-warehouse) - version bump 18.0->19.0
  aplicado a mano, el PR original no lo traía

Además de renombrar directorio/manifest, corregidas referencias técnicas
reales que dependían del nombre del módulo (no solo cosméticas):
report_name/t-call/env.ref en product_pricelist_direct_print, ir.model.
access.csv + view id en stock_picking_mass_action, ruta de assets estáticos
en website_whatsapp (URL /website_whatsapp/static/... hubiera dado 404),
e imports de tests/__init__.py tras renombrar los ficheros de test.

3 módulos descontinuados (website_sale_product_description,
stock_picking_warn_message, account_payment_order_return) NO se implantan
en 19.0, decisión explícita del usuario.
@carlos-lopez-tecnativa

Copy link
Copy Markdown
Contributor

ping @dreispt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

mod:sale_report_margin Module sale_report_margin series:19.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.