[FIX] point_of_sale: res.partner doesn't belong to a specific company
Steps to reproduce: 1- install POS in multicompany env 2- create a customer c from POS UI 3- c doesn't belong to the active company Bug: the company_id is not set when the customer is created Fix: set comapny_id to current active company for new customers created from POS OPW-2881551 closes odoo/odoo#96073 X-original-commit: 3aa03eb65d431cb9749a2b31a9a09d6b41cd34a4 Signed-off-by: Grazioso Andrea (agr) <agr@odoo.com> Signed-off-by: Mohamed Megahed Abbas Megahed SALLAM (mome) <mome@odoo.com>
This commit is contained in:
@@ -60,6 +60,9 @@ odoo.define('point_of_sale.PartnerDetailsEdit', function(require) {
|
||||
});
|
||||
}
|
||||
processedChanges.id = this.props.partner.id || false;
|
||||
if (!this.props.partner.id) {
|
||||
processedChanges.company_id = this.env.pos.company.id;
|
||||
}
|
||||
this.trigger('save-changes', { processedChanges });
|
||||
}
|
||||
async uploadImage(event) {
|
||||
|
||||
Reference in New Issue
Block a user