14 lines
456 B
Python
14 lines
456 B
Python
# -*- coding: utf-8 -*-
|
|
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
|
|
|
from flectra import models
|
|
|
|
class ResConfigSettings(models.TransientModel):
|
|
_inherit = 'res.config.settings'
|
|
|
|
def set_values(self):
|
|
super(ResConfigSettings, self).set_values()
|
|
rule = self.env.ref('delivery.delivery_carrier_comp_rule', False)
|
|
if rule:
|
|
rule.write({'active': not bool(self.company_share_product)})
|