تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
2523 أدوات العرض

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 ?  

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
2
فبراير 25
7389
1
نوفمبر 24
1173
1
أبريل 23
2517
7
فبراير 23
9021
0
سبتمبر 22
1689