odoo/tutorials#913

Created by Piyush Soni (piso)

Blocked

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
    Added salesperson_id field to pos.order referencing hr.employee to track the salesperson associated with each order.

  • Data Loading in POS
    Updated pos.session to load hr.employee records into the POS data_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 and SalespersonLine components for selecting a salesperson.

  • Store Functionality
    Patched pos_order to define:

    • get_salesperson() – retrieve the currently selected salesperson.
    • set_salesperson() – set the active salesperson.
  • Backend Views
    Inherited pos.order form and list views to display the salesperson information for each order.