Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add documents through file upload or documents/assessment plugin? #48

Closed
deku-m opened this issue Feb 28, 2023 · 4 comments · Fixed by #94
Closed

Add documents through file upload or documents/assessment plugin? #48

deku-m opened this issue Feb 28, 2023 · 4 comments · Fixed by #94

Comments

@deku-m
Copy link

deku-m commented Feb 28, 2023

Hi,

Is it possible to immediatly attach the document in the contract etc through file upload or linked with documents plugin?

image

@nagra-mlr
Copy link
Contributor

At the moment it is only possible to add a link to a document that could be on a cloud storage space.

@Kani999
Copy link

Kani999 commented Aug 24, 2023

Adding files via https://github.com/Kani999/netbox-attachments should be easy. The codebase of netbox-contract should have added a small part of code.

See Kani999/netbox-attachments#31
or https://github.com/Kani999/netbox-attachments#enable-attachments-for-custom-plugin-models

Can I suggest a PR for this?

@mlebreuil mlebreuil linked a pull request Sep 3, 2023 that will close this issue
@mlebreuil
Copy link
Owner

Added the possibility to for plugin to inject content in the contract and invoice forms.
Tested successfully with netbox-attachments-2.0.1
Fix will be part of v2.0.8

@Kani999
Copy link

Kani999 commented Sep 8, 2023

With #94 will be available only to add plugin content at the right side of the page.
Thus with netbox-attachments only the configuration with right_page will be rendered.

  • not tested example:
PLUGINS_CONFIG = {
    'netbox_attachments': {
        'apps': ['netbox_contract'],
        'display_default': "right_page",
        'display_setting': {'netbox_contract.contract: 'right_page', 'netbox_contract.invoice: 'right_page'}
    }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants