Pular para o conteúdo
Menu
Esta pergunta foi sinalizada
1 Responder
3809 Visualizações

How to add new state in invoice form view in odoo 13

Avatar
Cancelar
Melhor resposta

You can add as following


class AccountInvoiceInherit(models.Model):
_inherit = 'account.move'

state = fields.Selection(selection_add=[
('new_state', 'New Satate'), ('done',)
])
Avatar
Cancelar
Autor

Thank you..But i want to add statein between draft and open.how can i do that?

Hi,

Updated in my answer

Thanks

Publicações relacionadas Respostas Visualizações Atividade
1
ago. 21
2360
0
abr. 21
2317
1
jun. 23
3127
1
jan. 23
2919
0
set. 22
2626