Hi all,
my question is above.
I tried this:
carrier = self.env['delivery.carrier'].search([('name', 'ilike', 'Free delivery charges')])
if carrier:
carrier.update({'is_published': False, 'website_published': False})
as well as this:
self.env.ref("delivery.free_delivery_carrier").update({
'website_published': False,
})
On the first sight it seems to be working, but this
test = self.env['delivery.carrier'].sudo().search([('website_published', '=', True)])returns (among others) 'Free delivery charges'.
Has anyone an idea what to do? Thanks!