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

Hi !


I'm trying to add a custom field from product_template in sales analyse pivot view.

I wrote in view/ xml files :
< record model="ir.ui.view" id="AH_sale_report_view_pivot">
  < field name="name">sale_enterprise.sale_report_view_pivot.inherit
  < field name="model">sale.report
  < field name="inherit_id" ref="sale_enterprise.sale_report_view_pivot"/>
  < field name="arch" type="xml">
      < xpath expr="//field[@name='categ_id']" position="after">
          < field name="product.product.x_studio_categorie_libelle" type="row"/>
      < /xpath>
   < /field>
< /record>

But updating answer unknown field


How to link to this field ?

Thanks a lot !

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

hum ok thanks !

This will make the DB bubble up......

So I went in Sale / quotation / Order line aka sale.order.line

I added related fields I needed...

Thanks

아바타
취소
베스트 답변

Hi Florent:

The field needs to be on the same model. From your example, it looks like your field is based on sale.report but the custom field is defined in product.product. You will need to add a related/computed field to sale.report and use that in your pivot view.

아바타
취소
관련 게시물 답글 화면 활동
3
7월 24
1411
0
11월 21
1986
1
11월 24
1702
5
7월 24
93110
1
12월 23
3100