
Search In
One to many mapping
One-to-many mapping means a mapping in which each record in one table is linked to multiple records in another table. Like a parent record in one table can have several child records in another table.The parent is not required to
If you want to perform all checks on lines in Odoo follow the following code:
if 'account_id' not in vals or 'journal_id' not in vals:
raise UserError(_("It is mandatory to specify an account and a journal to create a write-off."))
Function is a predefined program in which we pass the parameters and it return a value. There are two types of function create function and predefined functions.
Create function- Like other languages we can also create function in MySQL.
Below synta
If you want to create report for the session model ,first you have to move on .py file and setup all dependencies module. And For each session, it should display session's name, its start and end, and list the session's time date and unique number.
F
If we need to export our application data in XML format then we can generate an XML file with the use of PHP.
Let's see how can we do it.
first of all, in our PHP file create a class that initializes the parameters.
class Xmltest
{
To create a table in MySQL, we use the CREATE TABLE statement. A table is a combination of row and columns.
CREATE TABLE Syntax
CREATE TABLE table_name
(
column_name1 data_type(size),
column_name2 data_type(size),
....
);
In the above syntax para
In MySQL, the BETWEEN operator is used to select values (values can be numbers, text, or dates) from a column within a specified range.
BETWEEN Syntax
SELECT column_name(s)
FROM table_name
WHERE column_name BETWEEN value1 AND value2;
We have a ta
For creating list item, we have to use ListItemCreationInformation
First we create list of Risks
using Microsoft.SharePoint.Client;
context = new ClientContext(projectSiteUrl); //pass your project site url
context.Credentials = projectConte
While writing queries we use paranthesis while writing Table Name or Column Name
This is so because if you have any keyword used in your column or table no conflict can occur
-- To get User Details
SELECT @TargetUserID=[ID] ,@CompanyID=[C
When there are multiple images loaded on the page, this may cause page to load slower. In order to increase the speed of the page we need to cache the images via .htaccess or php code. Now I am writing down the php code that will store images in cach
