Odoo Help

0

many2one fields didn't get all values in Calendar View ?

By
Ali Abdelmonem
on 4/5/16, 5:37 AM 659 views

I have problem with many2one fields in calendar view 

for example 

class x_x (osv.osv):

      _name = 'x.x'

        _columns= {

           'x_field' : fields.many2one('res.partner' , 'Partner'),

           'date' ; fields.datetime('date'),

          'note' : fields.char('Note')

}


and build my xml like the following :

<record id="calendar" model="ir.ui.view"> 
  <field name="name">calendar</field>
 <field name="model">x.x</field>
 <field name="arch" type="xml">
 <calendar string="Calendar" color="x_field" date_start='date'>
  <field name="note"/>
   </calendar>
  </field>
</record>



but in the calendar right hand side (color property) just retrieve the recorded partners in this object


any solution for list all partners ????? 


About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

Register

Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)

Stats

Asked: 4/5/16, 5:37 AM
Seen: 659 times
Last updated: 4/5/16, 7:10 AM