Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
2033 Zobrazení

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
Zrušit
Autor Nejlepší odpověď

Please any answer or my q is not clear?

Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
3
dub 25
1472
1
srp 24
2307
3
kvě 24
11760
1
zář 23
3851
0
srp 23
1876