Odoo Help


7 Answers

IT Libertas

--IT Libertas--
| 4 3 9
Saint Petersburg, الإتّحاد الروسي
--IT Libertas--

Visit us: https://odootools.com/

IT Libertas is a team of developers and automation experts to help you to unlock Odoo ERP system's potential. We have been communicating with end users to whom the software became a main business tool since 2012. As a result, we are proud of dozens of successful Odoo apps developed.

We are open for new ideas and challenges to create the best Odoo tools for business needs all over the world

IT Libertas
3‏/7‏/2016 8:53 ص

This app significantly expands super calendar features: https://apps.odoo.com/apps/modules/9.0/joint_calendar/

E.g. it allows indicating partners (not only users) as event's participants


Med Said BARA

--Med Said BARA--

| 6 5 8
--Med Said BARA--
Med Said BARA
14‏/3‏/2014 9:38 ص


I've tested on my side, and i get the same "error message" (the only difference is on the record name, "amc" in your case).

You can delete the "amc" Account, but you will get the same error for another existing Analytic Account.

The only case i've not tested, is when there is no Analytic Account defined.

I've tried many cases, and get always the same error (with a difference on the "record name" - the Account Name of an Analytic Account ) when this Analytic Account is not related to res.users.

What does it mean?

"Super Calendar" was designed as an organizer for users of OpenERP.

And as you noticed, you can link the "Lines" in "Super Calendar Configurator" to a user (OpenERP User) by the field "User field" (user_field_id).

So, when you filter any value for the field "User field", there is a condition in the method "generate_calendar_records" which will test if the value of the field user_field_id is not equal (!=) to res.user, and if it is True, Raise the Error _("The 'User' field of record %s (%s) does not refer to res.users").

This is stated in the code for the test condition in "generate_calendar_records":

for current_record_id in current_record_ids:

                current_record  = current_pool.browse(cr, uid, current_record_id, context=context)

                if line.user_field_id and \

                    current_record[line.user_field_id.name] and current_record[line.user_field_id.name]._table_name != 'res.users':

                    raise osv.except_osv(_('Error'), 

                        _("The 'User' field of record %s (%s) does not refer to res.users")

                        % (current_record[line.description_field_id.name], line.name.model))

Now try to not select any value for the field "User field", you will see that when you click on "Generate calendar", the error will not be raised.

The error message is just a Warning, telling that for this value the action "Generate Calendar" is not applicable (or it has no meaning .....).

Maybe, this error can be handled in much more better way !

Conclusion: Super Calendar can only be used on Models that can be related to res.users.

Hope this can help.

Ask a Question
Keep Informed
0 follower(s)
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.

Odoo Training Center

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

Test it now