Launch offer
Business website $150 USD Custom plugin $200 USD Ready in 5 days
Get a quote
Odoo

Create Records in Odoo

Insert records with create() and multi-create lists of vals.

Create Records in Odoo — a practical guide to Odoo create records with clear examples you can reuse in real projects.

Odoo Tutorial Series (30/112). Prefer one article? Read the complete Odoo tutorial.

Short description

Override create to set defaults or related side effects carefully.

create

book = self.env['library.book'].create({
    'name': 'Odoo Guide',
    'pages': 200,
})

Leave a reply

Your email address will not be published. Required fields are marked *