[REV] point_of_sale: res.partner doesn't belong to a specific company

This reverts commit 3aa03eb65d431cb9749a2b31a9a09d6b41cd34a4.

based on:

https://github.com/odoo/odoo/pull/94153#issuecomment-1194580295

closes odoo/odoo#96909

X-original-commit: a1eb4049a40a6ff198c8222083715b474b094f82
Signed-off-by: Masereel Pierre <pim@odoo.com>
This commit is contained in:
momegahed
2022-07-28 05:04:54 +02:00
parent 4b1b981a93
commit 270a78b89f
@@ -60,9 +60,6 @@ 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) {