Odoo Aide

0

0
2 Réponses
1
Avatar

Cybrosys Techno Solutions Pvt.Ltd Inde

--Cybrosys Techno Solutions Pvt.Ltd--
Cybrosys Techno Solutions Pvt.Ltd
https://www.cybrosys.com
16979
| 7 6 10
Calicut, Inde
--Cybrosys Techno Solutions Pvt.Ltd--

Cybrosys Technologies is a private limited ISO certified company in Technology and Software Engineering sector. We serve as one of the best and trusted Odoo official partner, providing ultimate Customization and Implementation services in Odoo ERP. A frequent contributor to Odoo Apps, our customized free apps are downloaded by more than one lakh users. Most of our apps augment the potentialities of Odoo and are trending in the Odoo app store.

Cybrosys keeps privilege to be one among the finest Odoo Official Partners with 200+ free apps contribution towards the Odoo community. Cybrosys also stands number one in Odoo-social Media Integration empowering every kind of business solutions.

We are also enriched with highly skilled UI/UX technical experts for Developing, Implementing and Designing, thereby providing ultimate benefit to our customer base.

Today Cybrosys has reached par excellent in Odoo Implementation and allied services, proving its credibility and reliability. Our proven services are used by customers sprawling across 160+ countries including Middle East, African continents, UK, Germany, Spain, Thailand, Hong Kong, New Zealand, Australia, Malaysia, Singapore, Egypt etc.

We are rapidly expanding our base with robust quality management and business process re-engineering to meet the ultimate customer desire.

To know more about Cybrosys Technologies and our Odoo Apps, Kindly visit:

Cybrosys Technologies 

Odoo Apps 

And inbox us your queries to odoo@cybrosys.com

Cybrosys Techno Solutions Pvt.Ltd Inde
17/02/2019 22:35

Hi,


@api.multi :-

Self will be the current RecordSet without iteration. It is the default behavior:

@api.multi
def afun(self):
    len(self)


@api.model:-

This decorator will convert old API calls to decorated function to new API signature. It allows to be polite when migrating code.

@api.model
def afun(self):
    pass

Please see this link: https://odoo-new-api-guide-line.readthedocs.io/en/latest/decorator.html

Thanks

1 Commentaires
EuroGold, Paulo Matos Angola
18/02/2019 18:50

Great. Thank you very much @Cybrosys

2
Avatar

Hilar AK Oman

--Hilar AK--
17331
| 7 6 11
Muscut, Oman
--Hilar AK--
Experienced Odoo / Python Developer with a demonstrated history of working in the information technology and services industry with 3.5+years of experience. Skilled in Python, PostgreSQL, SQL, HTML, JavaScript. Strong engineering professional with a Bachelor of Technology (BTech) focused on Computer Science from the College of Engineering Munnar.

 Blogs:-

https://medium.com/@hilarak
https://hilarlive.wordpress.com/
 StackOverflow:
       https://stackoverflow.com/users/7561347/burmese-pythis-hilar-ak


Hilar AK Oman
18/02/2019 00:46

@api.multi :-

The decorator in default for methods from new api onwards, which the self contains a recordset. So operations should be done by iterating through the recordsets if it is a set.

eg:

@api.multi
def multi_method(self):
    """ """
    print self # [model(1,2,3,4)] or [model(1,)]

@api.model :-

The decorator used on methods where the contents are not relevant. No ids will get passed with such methods.

eg:

@api.model
def create(self, vals)
    """ """
    print self # recordset with no id



1 Commentaires
EuroGold, Paulo Matos Angola
18/02/2019 18:51

Great. Thank you very much @Hilar

Poser une question
Writer
Keep Informed
1 Abonné(e)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.

Register
Odoo Training Center

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

Test it now