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

I have a new form which is integrated with a customized button on sale order lines.

I have product_id and partner_id on my new form just as they are on sale.order.I want to automatically fill my form fields . But instead of inheriting one field it is inheriting the whole sale.view_order_form into my new form

Inheritence code is 

class ManufactureForm(models.Model):
_inherit = {"sale.order": "product_id"}
_name = 'manufacturing'
In my XML file

<record id="manufacturing_form_view" model="ir.ui.view">
<field name="name">Manufacturing Form View</field>
<field name="model">manufacturing</field>
<field name="inherit_id" ref="sale.view_order_form" />
<field name="arch" type="xml">

Please guide me thru it because m a beginner
아바타
취소
작성자

Someone please reply

작성자 베스트 답변

No i have already added a button in sale.order.line which opens a new form. Now i want that the product which i select in sale order will be fetched automatically into new form and user do not have to fill a field twice.

아바타
취소
베스트 답변

Hello ,

In your Question you define you want to add new button in sale order line  but in you're inherit sale order

so Change this on.


아바타
취소
관련 게시물 답글 화면 활동
2
8월 23
3489
3
4월 23
2563
3
12월 22
34221
1
11월 22
3612
2
3월 18
5048