Ir al contenido
Menú
Se marcó esta pregunta
1 Responder
1990 Vistas

Hi Odoo Mates,

I have a simple question I have make a new field in res.partner

It called pos_conter I want it to pe as the number of the pos order for this customer

So I did this

class ResPartnerInherit(models.Model):
    _inherit =
"res.partner"

   
pos_counter = fields.Integer(string='Pos Order Counter', compute="_compute_pos_order")

   
def _compute_pos_order(self):
       
for rec in self:
            rec.pos_counter = rec.pos_order_count

 

but the pos_order_count is disappear from the customer field

 

And if I remove the code it show up again

 

What did you suggest to solve this problem.

 

Thanks.


Avatar
Descartar
Autor Mejor respuesta

Please any answer or my q is not clear?

Avatar
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
3
abr 25
1350
1
ago 24
2146
3
may 24
11385
1
sept 23
3662
0
ago 23
1752