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
Esta pergunta foi sinalizada
1
Responder
6667
Visualizações
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
Está gostando da discussão? Não fique apenas lendo, participe!
Crie uma conta hoje mesmo para aproveitar os recursos exclusivos e interagir com nossa incrível comunidade!
Inscrever-se| Publicações relacionadas | Respostas | Visualizações | Atividade | |
|---|---|---|---|---|
|
|
2
ago. 23
|
4881 | ||
|
|
3
abr. 23
|
3879 | ||
|
|
3
dez. 22
|
36075 | ||
|
Inheriting attributes from Fields
Resolvido
|
|
1
fev. 23
|
10045 | |
|
Change the string of an inherited field
Resolvido
|
|
7
dez. 23
|
28606 |