mirror of
https://github.com/OCA/knowledge.git
synced 2025-12-22 21:32:18 -06:00
[ADD] document_page_reference_search
This commit is contained in:
committed by
Jaime Arroyo
parent
52a705d6c1
commit
e79c770e9b
2
document_page_reference_search/readme/CONTRIBUTORS.rst
Normal file
2
document_page_reference_search/readme/CONTRIBUTORS.rst
Normal file
@@ -0,0 +1,2 @@
|
||||
* Enric Tobella <etobella@creublanca.es>
|
||||
* Jaime Arroyo <jaime.arroyo@creublanca.es>
|
||||
1
document_page_reference_search/readme/DESCRIPTION.rst
Normal file
1
document_page_reference_search/readme/DESCRIPTION.rst
Normal file
@@ -0,0 +1 @@
|
||||
This module allows you to reference a record in document pages.
|
||||
9
document_page_reference_search/readme/USAGE.rst
Normal file
9
document_page_reference_search/readme/USAGE.rst
Normal file
@@ -0,0 +1,9 @@
|
||||
To reference records in pages you must set rules. Document rules let you
|
||||
define which models can be referenced and which field will be used as identifier.
|
||||
For example, we could create a rule named 'RULE1' that allows you to reference
|
||||
res.partner records based on its 'ref' field.
|
||||
|
||||
When editing a document page add elements like ${XYZ} where X is the rule's identifier,
|
||||
Y is a separator and Z is the value of the record's field we will search.
|
||||
Now, when viewing the document, it will link directly to the record.
|
||||
Also, the name will be parsed as the display name.
|
||||
Reference in New Issue
Block a user