コンテンツへスキップ
メニュー
この質問にフラグが付けられました
3 返信
6096 ビュー
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
18169
2
11月 22
3400
1
5月 25
885
2
11月 24
2094
4
2月 24
12237