Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
2067 มุมมอง

i have declared a new field in the res.users table 

     new_field = fields.Many2one('res.users', string="NewFIELD", index=True, ondelete='cascade')


and in the other side in the New_Model i inheritated the order.sales to be able to display our new_field.


    class SaleOrderLine(models.Model):

        _inherit = 'sale.order'

        profile_in = fields.One2many('res.users', 'profile', string='Profile') 

but instead of displaying the new_field values,  it displays the partner_id values. 

i usually use the get_name methode but on Odoo v13 i am affraid it dosent support it any more.

any solution ?  

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
2
ก.พ. 25
6809
1
พ.ย. 24
559
1
เม.ย. 23
1984
7
ก.พ. 23
8329
0
ก.ย. 22
1321