콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
4 답글
11046 화면

From what I can see, attachments are designed to just have a small number per document.

They show like this:


After uploading, users need to hover over each attachment to see the Title and with the number we plan to use this will be too cumbersome.

Are there other users managing larger number of attachments for documents?

아바타
취소

Nice question, great Inputs and good answers, but why Odoo is limited to provide "Files Centralization" only for some apps? CRM among other important apps should have the possibility to have their files centralized by default!

베스트 답변

You can create a Smart Button on the Opportunity if you need to manage more Attachments than would reasonably work in the Chatter.


Activate Developer Mode:

1. Create a Custom View to show attachments in a list and allow them to be created from the list:


<tree string="Attachments" editable="top" >
<field name="datas" widget="download_link" filename="name" string="File"/>
<field name="name" invisible="1"/>
<field name="company_id" groups="base.group_multi_company"/>
<field name="create_uid"/>
<field name="create_date"/>
</tree>



2. Create a Window Action to open attachments:


Note the Domain Value and Context Value field are both specific to the Document Model you want to find attachments for, in this case crm.lead.

[('res_id','=',active_id) ,  ('res_model','=','crm.lead')]
{'default_res_id': active_id, 'default_res_model': 'crm.lead'}


At the bottom of this Window Action, link it to the View you created in the first step:



Take note of the ID of this Window Action (found in the URL) as you will need it in the next step:




3. Create the Smart Button in your own Custom View on top of Opportunity.


Note that the Name of the button will the the ID of the Window Action you created.

<xpath expr="//button[@name='action_schedule_meeting']" position="after">
<button class="oe_stat_button" icon="fa-file-o" type="action" name="475" string="Attached"/>
</xpath>



Your Opportunity Form View will now look like this:



When users click, they will see:



When they click CREATE they will be able to upload a new Attachment inline:



아바타
취소

Hi Ray, I would like to do something similar, a button to download all edi files from selected invoice in view list, any suugestion ?

Thanks

I would suggest posting a new question - this technique only allows you to see all attachments in a list - you still have to download each one individually - I think what your ask is customization that needs code (ie: a module).

베스트 답변

you can buy my module https://apps.odoo.com/apps/modules/13.0/attachments_manager
:)

아바타
취소

Awesome module 👍

베스트 답변

Hello, do you know how to display attachment size on website next to a name?

아바타
취소
베스트 답변

Hi

In case you want to edit the attachments names quickly and efficiently from the chatter attachment widget. 

Here's an app for V14+ :

https://apps.odoo.com/apps/modules/15.0/edit_attachment_chatter_name/

아바타
취소
관련 게시물 답글 화면 활동
0
12월 24
1658
5
12월 23
18982
1
3월 23
6870
2
4월 22
4337
0
10월 21
2791