تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
3 الردود
9124 أدوات العرض

In a multi-company environment, the field company_id from Sales Orders and Quotations is read only, and in Opportunities it's not visible. Why? How can I edit it in any stage?

الصورة الرمزية
إهمال
أفضل إجابة

In Sale Order default company_id is related field

'company_id':fields.related('shop_id','company_id',type='many2one',relation='res.company',string='Company',store=True,readonly=True)

relation is the table to look up that reference in shop table --> company_id field

For Example, For example if you have two shops with different company

Menu: Configuration --> shop

Shop Name: Birmingham shop Company: Your Company, Birmingham shop

Shop Name: Chicago shop Company: Your Company, Chicago shop

In sale order company value saved based on the shop company in sale order

الصورة الرمزية
إهمال
أفضل إجابة

In v8 it no longer appears possible to configure shops according to this post:- https://www.odoo.com/forum/help-1/question/how-to-create-and-configure-a-shop-in-odoo-version-8-69796. I have tried to configure multiple Point of Sale points to specify multiple companies all delivering from the same warehouse but this is not allowed by the PoS configuration - thus it seems impossible to specify the company explicitly in the sales order.

The delivering warehouse can be selected in SO, and it seems that the company can be selected at the invoicing stage so maybe it is possible to get around not be able to specify the company at the SO stage.

الصورة الرمزية
إهمال
أفضل إجابة

I have discovered that you can force a change in company on a Sales order by changing the Warehouse, if you have warehouses for different companies.

To create warehouses for different companies I have had to belong to each of the companies in turn, while creating the relevant warehouse. Once back in the correct company you can select any of the warehouses in the Sales Order, which forces a change in the company.

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
1
يوليو 23
1268
1
يونيو 23
1774
2
يناير 23
2816
1
مارس 15
5742
0
مارس 15
2878