mirror of
https://github.com/bringout/oca-technical.git
synced 2026-04-19 11:32:06 +02:00
Initial commit: OCA Technical packages (595 packages)
This commit is contained in:
commit
2cc02aac6e
24950 changed files with 2318079 additions and 0 deletions
19
odoo-bringout-oca-dms-dms/dms/wizards/wizard_dms_share.py
Normal file
19
odoo-bringout-oca-dms-dms/dms/wizards/wizard_dms_share.py
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
# Copyright 2024 Tecnativa - Víctor Martínez
|
||||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
|
||||
|
||||
from odoo import api, models
|
||||
|
||||
|
||||
class WizardDmsShare(models.TransientModel):
|
||||
_name = "wizard.dms.share"
|
||||
_inherit = "portal.share"
|
||||
_description = "Wizard for sharing DMS records"
|
||||
|
||||
@api.model
|
||||
def _selection_target_model(self):
|
||||
return [
|
||||
(model.model, model.name)
|
||||
for model in self.env["ir.model"]
|
||||
.sudo()
|
||||
.search([("model", "in", ("dms.directory", "dms.file"))])
|
||||
]
|
||||
Loading…
Add table
Add a link
Reference in a new issue