Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
1 Beantwoorden
4963 Weergaven

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

Avatar
Annuleer
Beste antwoord
        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>
Avatar
Annuleer

this code is work perfectly use it

Auteur

wow thankyou very much

Gerelateerde posts Antwoorden Weergaven Activiteit
2
aug. 23
3123
3
apr. 23
2237
3
dec. 22
33752
1
feb. 23
7897
7
dec. 23
26147