How can I access the one2many field in sale.order model (order_line) and change the quantity for example. Appreciate your time
Esta pergunta foi sinalizada
1
Responder
3099
Visualizações
Hello,
I assume that you are talking about replacing a field in sales order lines using a custom module? If that's so, you can try to inherit the sale.order.lines model and later just rename the field.
class CustomSaleOrdeLines(models.Model):
_inherit = sale.order.line
product_uom_qty = fields.Float("Ordered Qty Edited")
Best regards,
Altela (altelasoftware.com)
Está gostando da discussão? Não fique apenas lendo, participe!
Crie uma conta hoje mesmo para aproveitar os recursos exclusivos e interagir com nossa incrível comunidade!
Inscrever-se| Publicações relacionadas | Respostas | Visualizações | Atividade | |
|---|---|---|---|---|
|
Get the values of one2many field
Resolvido
|
|
1
jun. 22
|
3985 | |
|
|
1
abr. 24
|
2872 | ||
|
|
1
out. 23
|
2962 | ||
|
|
1
mai. 23
|
3293 | ||
|
|
0
set. 22
|
3496 |