OCA / margin-analysis

Odoo Financial Controlling (margin, costs, ...)
https://odoo-community.org/project/9
GNU Affero General Public License v3.0
71 stars 161 forks source link

[16.0][MIG] sale_report_margin: Migration to 16.0 #175

Closed flalexg closed 1 year ago

polqubiq commented 1 year ago

LGTM

JanQubiQ commented 1 year ago

LGTM @flalexg . It seems the README is missing to be migrated. Could you check it, please?

amarcosg commented 1 year ago

I made a branch from yours to increment coverage. if you find it right we can merge/cherry-pick the commit so it pases tests. https://github.com/factorlibre/margin-analysis/pull/4

flalexg commented 1 year ago

LGTM @flalexg . It seems the README is missing to be migrated. Could you check it, please?

Hi! I checked the README and I think its okey. When its merged the new README will be generated, but it has de the fragments.

OCA-git-bot commented 1 year ago

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). 🤖

OCA-git-bot commented 1 year ago

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). 🤖

pedrobaeza commented 1 year ago

/ocabot migration sale_report_margin

flalexg commented 1 year ago

@pedrobaeza now I remember why I used de group by.

psycopg2.errors.GroupingError: column "l.purchase_price" must appear in the GROUP BY clause or be used in an aggregate function LINE 64: l.purchase_price AS purchase_price

Shall we keep the first commit?

hugo-cordoba commented 1 year ago

Hi @pedrobaeza!

@flalexg and I have been reviewing it, and, with the change you propose it works as expected.

Thank you!

pedrobaeza commented 1 year ago

Great. Note that it's not the same that the module installs without error than it works as expected, and with the group by, you would find ugly totals or unfolded results when using the module.

/ocabot merge nobump

OCA-git-bot commented 1 year ago

This PR looks fantastic, let's merge it! Prepared branch 16.0-ocabot-merge-pr-175-by-pedrobaeza-bump-nobump, awaiting test results.

OCA-git-bot commented 1 year ago

Congratulations, your PR was merged at f84626ece5c0f649c27b6537463735380c3845c1. Thanks a lot for contributing to OCA. ❤️