[fix] Error opening the POS (#11929)

diff --git a/erpnext/selling/page/point_of_sale/point_of_sale.js b/erpnext/selling/page/point_of_sale/point_of_sale.js
index 0625474..f3599d5 100644
--- a/erpnext/selling/page/point_of_sale/point_of_sale.js
+++ b/erpnext/selling/page/point_of_sale/point_of_sale.js
@@ -419,6 +419,8 @@
 	}
 
 	set_pos_profile_data() {
+		this.frm.doc.company = this.company;
+
 		return new Promise(resolve => {
 			return this.frm.call({
 				doc: this.frm.doc,