Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
3771 Lượt xem

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

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

You can add as following


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

state = fields.Selection(selection_add=[
('new_state', 'New Satate'), ('done',)
])
Ảnh đại diện
Huỷ bỏ
Tác giả

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

Hi,

Updated in my answer

Thanks

Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 8 21
2333
0
thg 4 21
2263
1
thg 6 23
3099
1
thg 1 23
2880
0
thg 9 22
2574