1) STEPS
See steps in screen captures in attach
- Go to App: POint of Sale
- Click on button : [ new Session ]
- Select a product
- Select a customer (Client)
- Select payment method (Espece)
- Click on button : [ Validate ]
- Click in top menubar on [ Close Session ] (Fermer)
- Go menu Session and open the last session
(see images in attach)
- Open the AccountMoveLines (Pieces comptable) that are associated to this PoS-Session
2) BEHAVIOR
There is no value for the "partner" field
(see last image in attach)
3) EXPECTED
The partner should correspond to the customer (client) chosen for the corresponding purchase in the pos-Session
For accounting purposes, it would be necessary too to set a default partner for all account move lines too, that are related to a pos-order, if customer is not specified.
But, i can see in the code of addons/point_of_sale/pos_session.py that the partner_id value for the pos related AccountMoveLines is set to:
* self.env["res.partner"]._find_accounting_partner(payment.partner_id)
* or, for other type of AccountMoveLine: 'partner_id': False,
* or in the other cases: partner_id is just not set on creation of AccountMoveLines
* or, it other cases, no value is given for partner_id