Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ADD][16.0] Sale Margin Update #3374

Open
wants to merge 1 commit into
base: 16.0
Choose a base branch
from

Conversation

ljimenezsidoo
Copy link
Contributor

@ljimenezsidoo ljimenezsidoo commented Oct 23, 2024

This module adds a wizard that enables users to recalculate the unit price of products on a sale order line based on a specified margin percentage. It allows recalculating the sale price dynamically to ensure the desired profit margin is achieved.

  • Margin-based Price Adjustment: Users can specify a margin percentage to calculate and set the product's sale price according to that margin.

  • Negative and High Margin Constraints: The module includes validation to prevent negative margins and margins equal to or greater than 100%.

Copy link

@rrebollo rrebollo left a comment

Choose a reason for hiding this comment

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

Hi @ljimenezsidoo great to see your contribution. You are proposing a new addon so I would prefer make a deeper description of PR's digging on the specific requirement is trying to fulfill, comparing maybe with standard behavior or whether it is possible with a functional approach to address the real issue. If You clarify those points I think will be more helpful to understand what is this about. Maybe U can tag me then. Thank U.

sale_margin_update/README.rst Outdated Show resolved Hide resolved
sale_margin_update/README.rst Outdated Show resolved Hide resolved
sale_margin_update/__manifest__.py Show resolved Hide resolved
Copy link

@rrebollo rrebollo left a comment

Choose a reason for hiding this comment

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

LGTM

FIX requested changes

ADD test
Copy link

@oscars8a oscars8a left a comment

Choose a reason for hiding this comment

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

LGTM

@OCA-git-bot
Copy link
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). 🤖

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

Successfully merging this pull request may close these issues.

4 participants