Skip to content

Conversation

@P-H-Phuc
Copy link
Owner

@P-H-Phuc P-H-Phuc commented Jul 2, 2025

  1. Install python external_dependencies
    pip install msoffice2pdf

  2. Install the module in your Odoo instance.

  3. Add field in your model to include the attachment_ids field.

attachment_ids = fields.Many2Many('ir.attachment', string='Attachments')
  1. In your xml file, include the many2many_binary widget:
<field name="attachment_ids" widget="many2many_binary"/>
  1. The MS Office file will be displayed in the form view of the model where you added the attachment_ids field.

@P-H-Phuc P-H-Phuc self-assigned this Jul 2, 2025
@P-H-Phuc
Copy link
Owner Author

P-H-Phuc commented Jul 2, 2025

Consider the first Pull Request: #1

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 this pull request may close these issues.

2 participants