mirror of
https://github.com/bringout/oca-ocb-hr.git
synced 2026-04-23 23:12:01 +02:00
19.0 vanilla
This commit is contained in:
parent
a1137a1456
commit
e1d89e11e3
2789 changed files with 1093187 additions and 605897 deletions
|
|
@ -0,0 +1,3 @@
|
|||
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
||||
|
||||
from . import webmanifest
|
||||
|
|
@ -0,0 +1,22 @@
|
|||
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
||||
|
||||
from odoo.addons.web.controllers import webmanifest
|
||||
|
||||
|
||||
class WebManifest(webmanifest.WebManifest):
|
||||
|
||||
def _get_webmanifest(self):
|
||||
manifest = super()._get_webmanifest()
|
||||
if not manifest.get('share_target'):
|
||||
manifest['share_target'] = {
|
||||
'action': '/odoo?share_target=trigger',
|
||||
'method': 'POST',
|
||||
'enctype': 'multipart/form-data',
|
||||
'params': {
|
||||
'files': [{
|
||||
'name': 'externalMedia',
|
||||
'accept': ['image/*', 'application/pdf'],
|
||||
}]
|
||||
}
|
||||
}
|
||||
return manifest
|
||||
Loading…
Add table
Add a link
Reference in a new issue