Public release from ruodoo-project: 19.0 - 2026-11-08 22:50:01 UTC

This commit is contained in:
CI Publish Bot
2026-11-08 22:51:52 +00:00
commit 1d0465af57
2492 changed files with 664277 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
from odoo import api, fields, models
class AllowedProfiles(models.Model):
_name = 'contract.allowed.profiles'
name = fields.Char(string='Одновременно включены следующие виды договоров:')
allowed_profiles = fields.Many2many('contract.profile', string='Виды договоров', required=True)
@api.onchange('allowed_profiles')
def set_name(self):
for s in self:
s.name = ''
for profile in s.allowed_profiles:
s.name += profile.name + ' + '
if s.name:
if s.name[-2] == '+':
s.name = s.name[:-2]