Odoo 15 Development Essentials by Daniel Reis
Author:Daniel Reis
Language: eng
Format: epub
Publisher: Packt Publishing Pvt Ltd
Published: 2022-01-04T00:00:00+00:00
Recordset comparisons
There are cases where we need to compare the content of a recordset to decide what further action is needed. Recordsets support the expected comparison operations.
To check if a <rec> record is an element of a <my_recordset> recordset, the following code can be used:
<rec> in <my_recordset>
<rec> not in <my_recordset>
Recordsets can also be compared to check if one is contained in another. To compare two recordsets, use set1 and set2:
Using set1 <= set2 and set1 < set2 returns True if all of the elements in set1 are also in set2. The < operators return False if both recordsets have the same elements.
Using set1 >= set2 and set1 > set2 returns True if all of the elements in set2 are also in set1. The > operators return False if both recordsets have the same elements.
Download
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Android | E-Readers |
Handheld & Mobile Devices | iPad |
iPhone | Programming & App Development |
Tablets |
Secrets of the JavaScript Ninja by John Resig & Bear Bibeault(6509)
Secrets of the JavaScript Ninja by John Resig Bear Bibeault(6375)
Kotlin in Action by Dmitry Jemerov(5016)
Odoo 15 Development Essentials - Fifth Edition by Daniel Reis & Greg Mader(3182)
Odoo 15 Development Essentials by Daniel Reis(2794)
React Native - Building Mobile Apps with JavaScript by Novick Vladimir(2505)
Learning Angular - Second Edition by Christoffer Noring(2336)
Pride and Prejudice by Jane Austen(2318)
Mobile Forensics Cookbook by Igor Mikhaylov(1999)
Computers For Seniors For Dummies by Nancy C. Muir(1981)
Bulletproof Android: Practical Advice for Building Secure Apps (Developer's Library) by Godfrey Nolan(1850)
Android Development with Kotlin by Marcin Moskala & Igor Wojda(1781)
Building Android UIs with Custom Views by Raimon Ràfols Montané(1773)
1936941139 (N) by Bob Rosenthal(1709)
Building Progressive Web Apps: Bringing the Power of Native to the Browser by Ater Tal(1706)
Hands-On Internet of Things with MQTT by Tim Pulver(1684)
Android App Development by Franceschi Hervé J.;(1682)
Ember.js in Action by Joachim Haagen Skeie(1661)
Hands-On Design Patterns with React Native by Mateusz Grzesiukiewicz(1638)
