跳至内容
菜单
此问题已终结
1 回复
94 查看

I have several Customers that order products based on their naming and coding convention.

[WID-101] Widget for me could be sold as:

  • [W555R] Regular Widget for Customer1
  • [WID-R-P] Widget - Regular Plain for Customer2

Is there a way I can define Customer specific Product Names and Codes and have them show, instead of my Product Name and Code, when selling?


形象
丢弃
最佳答案

This is supported the same way you setup Vendor specific Product Codes.


First, define a custom Inherited View that uses the Context attribute to set the partner_id key:


<field name="order_line" position="attributes">

    <attribute name="context">{'partner_id': partner_id}</attribute>

</field>


Note: be sure to check that the sale.order.form View you are inheriting is the one with the External ID equal to sale.order.form



Next, setup the information in the same way. On the Purchase tab of the Product, below your Vendors if applicable, add a line for each Customer with the unique Product Code and/or Product Name. 



All Customer facing documents will only show the CUSTOMER version of the product. This includes the Customer Invoice.


形象
丢弃
相关帖文 回复 查看 活动
5
11月 18
6729
1
9月 17
9648
1
3月 15
7016
3
2月 24
1469
1
12月 23
8760