콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
3 답글
6812 화면
I need to add a new option to the status invoiced field, how can I do this?
I need that when making a credit note it is reflected as a new state to show


아바타
취소
베스트 답변
override the field you want to add option:
class YourClass(models.Model):
_inherit = 'module.model'
field = fields.Selection(
selection_add=[
("new_option", "New Option"),
]
)


아바타
취소
작성자 베스트 답변

How could I apply the activation of my new status when making a credit note?

아바타
취소
베스트 답변

Hi,

https://www.odoo.com/forum/help-1/add-value-in-selection-field-without-overwrite-whole-field-160683
Refer the above forum post to add a new option for the selection field in Odoo

And for updating the invoice status, you can use the _get_invoice_status(self) compute function which can be found from sale_order.py file in Sale module.

Regards

아바타
취소
관련 게시물 답글 화면 활동
1
4월 22
18888
2
11월 22
3887
1
5월 25
1464
2
11월 24
2603
4
2월 24
13117