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
Odoo is the world's easiest all-in-one management software.
 It includes hundreds of business apps:
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
Create an account today to enjoy exclusive features and engage with our awesome community!
Registrar-se| Related Posts | Respostes | Vistes | Activitat | |
|---|---|---|---|---|
|  | 1 d’abr. 22  | 19061 | ||
|  | 2 de nov. 22  | 3970 | ||
|  | 1 de maig 25  | 1588 | ||
|  | 2 de nov. 24  | 2709 | ||
|  | 4 de febr. 24  | 13277 |