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] custom_pos: customized pos to handle custom price and min price #638

Draft
wants to merge 1 commit into
base: 18.0
Choose a base branch
from

Conversation

vpan-odoo
Copy link

Steps to reproduce:

  • Install custom_pos module (depends on point_of_sale).
  • Open Point of Sale > Products > Products > Select any product.
  • On selecting any product the product template form will appear.
  • Set the custom price (this price will be considered in the order line) and min price field(below this price salesman cannot sell).
  • Open pos register in which the product we edited is there.
  • Select the product.
  • In the order line you're able to see the product bar code with the product name and strike through standard price with the custom price.
  • Now try to enter the manual price which is lower than the min price field.
  • It will pop up the Alert Box that you cannot sell the product below its min price also it will reset the unit price of the product to its custom or standard price.
  • Click Payment > choose any payment method > validate it will open receipt press new order
  • Click actions > Refund > Enter product bar code in the search bar and select Product Barcode
  • It will filter all the orders which have particular product in it.

Purpose of Changes

  • We have to display custom price along with the standard price to make the customer feel that he got some concession on purchasing the product.
  • Also we have to restrict the salesman to sell the product below its minimum price
  • We want to search the orders using the product barcode

Changes

  • After this commit, we are able to see two new fields in the product template page i.e. custom_price and min_price.
  • If the custom price is set, the pos order line will consider custom price as its price and we can see the strike through standard price and then custom price.
  • Also we are able to see the product barcode before the product name in the orderline.
  • If the user tries to set the product price (manually or by applying discount) below the min price it will pop up the alert dialog box and reset the unit price to its custom price if it is available, or its standard price.
  • User can now able to search the orders using product barcode.

@robodoo
Copy link

robodoo commented Mar 19, 2025

Pull request status dashboard

@vpan-odoo vpan-odoo force-pushed the 18.0-review-task-pos-vpan branch 5 times, most recently from 5124e35 to 6eedc2f Compare March 24, 2025 06:37
added two fields custom price and min price in the product template model
in the pos screen displaying custom price if it is set in the product template
displaying product bar code along with the product name in the pos order line
in the refund screen now we are able to search orders using product bar code
salesman is not able to sell the product below min price of product template
@vpan-odoo vpan-odoo force-pushed the 18.0-review-task-pos-vpan branch from 6eedc2f to ff20270 Compare March 24, 2025 06:41
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