mirror of
https://github.com/OCA/knowledge.git
synced 2025-12-22 13:22:19 -06:00
[MIG] document_page_multi_company (#188)
* [MIG] document_page_multi_company Added this feature from the old module directly in document_page
This commit is contained in:
committed by
Pedro M. Baeza
parent
523a1c07ef
commit
a0998d406e
@@ -104,6 +104,14 @@ class DocumentPage(models.Model):
|
||||
readonly=True,
|
||||
)
|
||||
|
||||
company_id = fields.Many2one(
|
||||
'res.company',
|
||||
'Company',
|
||||
help='If set, page is accessible only from this company',
|
||||
index=True,
|
||||
ondelete='cascade',
|
||||
)
|
||||
|
||||
@api.multi
|
||||
def _get_page_index(self, link=True):
|
||||
"""Return the index of a document."""
|
||||
|
||||
Reference in New Issue
Block a user