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

I want to create extra fields in acounting-> customer invoice.....i want to create two fields below fiscal positon field and three fields below Amount field....plese some body help me

아바타
취소
베스트 답변
        hi sri,

        .py file

            _inherit = 'account.invoice'
            _columns = {
                    'test1':fields.char('Test1', size=64),
                    'test2':fields.char('Test2', size=64),
                    }


            _inherit = 'account.invoice.line'
            _columns = {
                    'line1':fields.char('Line1', size=64),
                    'line2':fields.char('Line2', size=64),
                    'line3':fields.char('Line3', size=64),
                }
       ****** XML file
<xpath expr="//form/sheet/group/group//field[@name='fiscal_position']" position="after">
             <field name="test1"/>
             <field name="test2"/>
</xpath>
<xpath expr="//form/sheet/notebook/page//field/tree//field[@name='price_subtotal']" position="before">
              <field name="line1"/>
              <field name="line2"/>
              <field name="line3"/>
</xpath>
아바타
취소

this code is work perfectly use it

작성자

wow thankyou very much

관련 게시물 답글 화면 활동
2
8월 23
3130
3
4월 23
2242
3
12월 22
33757
1
2월 23
7917
7
12월 23
26166