mirror of
https://github.com/bringout/oca-technical.git
synced 2026-04-20 19:32:05 +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
|
|
@ -0,0 +1,16 @@
|
|||
To use the embedded view in any module, the module must inherit from the mixin
|
||||
dms.field.mixin (You have an example with res.partner in this module).
|
||||
|
||||
Once this is done, in the form view of the model we will have to add the following:
|
||||
|
||||
.. code-block:: xml
|
||||
|
||||
<field name="dms_directory_ids" mode="dms_list" />
|
||||
|
||||
In addition, it will be necessary to create an Embedded DMS template for this model.
|
||||
|
||||
#. *Go to Documents > Configuration > Embedded DMS templates* and create a new record.
|
||||
#. Set a storage, a model (res.partner for example) and the access groups you want.
|
||||
#. You can also use expressions in "Directory format name", for example: {{object.name}}
|
||||
#. Click on the "Documents" tab icon and a folder hierarchy will be created.
|
||||
#. You can set here the hierarchy of directories, subdirectories and files you need, this hierarchy will be used as a base when creating a new record (res.partner for example).
|
||||
Loading…
Add table
Add a link
Reference in a new issue