odoo/tutorials#913
Created by Piyush Soni (piso)
Blocked
- Merge method
- Review
-
CI
- ci/style: (runtime 2s)
- ci/tutorial: (runtime 99s)
- label
- odoo-dev:18.0-pos_salesperson-piso
- head
- 36ab6af621b4172c29c16411e7db5915bf7f4790
odoo/tutorials | |
---|---|
18.0 | #913 missing r+ |
master |
[ADD] pos_salesperson: salesperson selection and display in POS
Description
This PR introduces the pos_salesperson module, enabling salesperson selection directly in the POS interface and ensuring the information is recorded in POS orders.
Key Features
-
Salesperson Field on Orders
Addedsalesperson_id
field topos.order
referencinghr.employee
to track the salesperson associated with each order. -
Data Loading in POS
Updatedpos.session
to loadhr.employee
records into the POSdata_service
, making salesperson data available in the POS frontend. -
UI Enhancements
- Patched POS control buttons to include a Salesperson button in the POS UI.
-
Created
SalespersonList
andSalespersonLine
components for selecting a salesperson. -
Store Functionality
Patchedpos_order
to define:get_salesperson()
– retrieve the currently selected salesperson.set_salesperson()
– set the active salesperson.
-
Backend Views
Inheritedpos.order
form and list views to display the salesperson information for each order.