콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
3 답글
6107 화면

Hi, I would like to add the product_id in the sale.order.tree but don't find the solution.

<tree string="Sales Orders" fonts="bold:message_unread==True" colors="grey:state=='cancel';blue:state in ('waiting_date','manual');red:state in ('invoice_except','shipping_except')"> <field name="message_unread" invisible="1"/> <field name="name" string="Order Number"/> <field name="client_order_ref"/> <field name="date_order"/> <field name="partner_id"/> <field name="requested_date"/> <field name="amount_total" sum="Total Tax Included"/> <field name="state"/> </tree<>

Many thanks.

아바타
취소
베스트 답변

Field "product_id" is in the model sale.order.line and not in sale.order. So you cannot add it in Sale Order tree view, you can show the order_line in the tree view of sale_order.

아바타
취소
베스트 답변

I am trying to accomplish this same exact thing. I want to show a mini list of products and prices in the tree view for Sales Orders, so that customer service can see a brief overview of the whole order without having to open up the actual Sales Order. 

 

I understand that it's not possible to put sale.order.line inside of sale.order.tree, but would be possible to define a field in sales.order that inherits some values from sale.order.line, so that it could then be accessible from sale.order.tree?

아바타
취소
작성자 베스트 답변

thanks. but the result is : (1 record) and not the name of the product. any solution ? thanks!

아바타
취소

can you explain your requirement?

작성자

Sorry I was may be not very clear.

작성자

In the menu "Sales" , "Sales Order" there is a view listing all the pending order. The original view list the fields : name, order_number, client_ref, client_order_ref... to make the things easier and faster to read I would like to add in the view the "product_id". If I add "order_line" field the result is "(1 record).

You cannot add product_id in sale order list view as it is defined in sale.order.line. Consider one more point, if there are more than products in your sale order how can you list them in one line of the order?

작성자

I understand what you mean. Tell me something, are you working as consultant ? I'm based in Sri Lanka travelling all the time, and don't find the time to set up correctly the system I would like. Give me your email so we can discuss a bit more... thanks. Peter

관련 게시물 답글 화면 활동
2
3월 18
3986
0
1월 23
1515
0
12월 21
2149
0
10월 23
9368
3
12월 22
7362