-
Notifications
You must be signed in to change notification settings - Fork 1.9k
18.0 practice task agir #688
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
Draft
agir-odoo
wants to merge
4
commits into
odoo:18.0
Choose a base branch
from
odoo-dev:18.0-practice-task-agir
base: 18.0
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
+928
−0
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9643f88
to
137fcbf
Compare
662b14a
to
bcdf892
Compare
Ensure that Sales Orders cannot be confirmed without Zero Stock Approval, restricting Sales Users from modifying the field while allowing only Sales Administrators to approve orders. --> Inherited Model - Inherited the main model sale order. - Added a new boolean field zero stock approval in the sale order model. - Overridden fields get() to make the field read-only for Sales Users (sales person) - Made action confirm() to restrict order confirmation unless zero stock approval is checked. - Implemented sale order views xml to display zero stock approval after payment term id. Access Rights - Sales Administrator - Can edit the field. - Sales User : Read-only access. - Created a boolean field 'zero_stock_approval' to allow admins to approve orders with low stock - Only Sales Manager can edit this field; others see it as readonly - If any product has demand > available stock and the user is not a manager, they must get admin approval - Blocked order confirmation if quantity is less than available and no approval is given - Skipped stock check for service and combo products (only checked consu {goods} type) - Added a warning message popup when admin gives approval for a product with low stock Ensures better control over order confirmation based on stock approval.
…n POS UI - Created a new module salesperson button in pos - Added salesperson id field in posorder model to track salesperson - Created a new button Select Salesperson in POS frontend - Implemented the button in controlbutton xml - Developed select salesperson button js as an OWL component - Patched ControlButtons to include the Salesperson button in POS - Registered assets properly in manifest py for POS UI - Debugged and tested visibility of the button in POS UI
…sub-product - Introduced 'Is Kit' field on product templates to define kit-type products - Added Many2many field to select sub-products for a kit - Added smart button 'Configure Kit' on sale order line, visible only for kit products - Created a wizard to select sub-product quantity and price per main product - Sub-products are auto-added as separate sale order lines under the main kit line - Sub-product lines are read-only & priced at 0 (cost included in main product) - Sub-products support storable/consumable product types for stock tracking - Main product's unit price remains unchanged; subtotal includes sub-product costs - Sub-product lines are auto-deleted if the main kit line is removed - Added 'Print in Report' checkbox on Sale Order to control sub-product visibility - Applied conditional display of sub-products in: - Sale Order PDF - Portal Order Preview - Invoice PDF (QWeb-safe logic using t-set variables)
fffc71a
to
3cb38b3
Compare
- Added a new field in product form to set a second UoM - Backend constraint to prevent primary and secondary UoM being the same - Loaded second UoM info into POS - Added custom Add Quantity button in POS control panel(before customer button) - Clicking the button opens a popup to enter quantity in second UoM - POS converts the quantity based on UoM ratio - Added validations in popup: - Show error if quantity is zero or negative or empty input - Optimized validation with translatable error message - UI improvements with conditional visibility and consistent UX
3cb38b3
to
aaa079f
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
[ADD] dev_zero_stock_blockage: implemented zero stock approval task
Ensure that Sales Orders cannot be confirmed without Zero Stock Approval,
restricting Sales Users from modifying the field while allowing only
Sales Administrators to approve orders.
--> Inherited Model
(sales person)
zero stock approval is checked.
after payment term id.
Access Rights
Ensures better control over order confirmation based on stock approval.