Hello Community , i have a question about the diffrence between create() & create().id
i have a code with create().id when i delete .id there is a problem ?
self.env['model.class'].create()
self.env['model.class'].create().id
thanks
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
Hello Community , i have a question about the diffrence between create() & create().id
i have a code with create().id when i delete .id there is a problem ?
self.env['model.class'].create()
self.env['model.class'].create().id
thanks
self.env['model.class'].create() => return record set like res.partner(78)
self.env['model.class'].create().id => return id (that is 78)
From odoo8/9: create return object ,For getting it id we use create().id
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign up