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.