コンテンツへスキップ
メニュー
この質問にフラグが付けられました
3 返信
6441 ビュー

I want to store many different kids of Documents about Products - Design, BoM's, Sales Sheets, Specifications, Vendor Sheets, etc.

Attachments seems to be the only way to do this but the Documents App seems to be a much better fit.

How can I link the Inventory App with the Documents App?

アバター
破棄
最善の回答

This might work for you (but requires advanced UI based customization of Odoo):


Create a new field on the Product model (in this case the Product Variant):


Use Odoo Studio to add a new BUTTON to the Product Form View:


Relate the BUTTON to the field you created:


You will see the new BUTTON on the UI:


Click the BUTTON to edit the LIST VIEW on that screen:


What you want is an inherited view that allows you to CREATE documents (ie: upload them from the List):


Once you refresh the screen, you will see the CREATE button on the list and you can associate your files with the Product that way.


Then you probably also want to edit the Window Action to allow the familiar KANBAN view to be shown:


You will end up with this:


Note that you want to prevent CREATE from the Kanban (on this Window Action only) because if you don't, the Document won't be associated properly to the Product.   Perhaps with more time, I could figure out how to resolve that (or if you are reading and YOU can solve that last piece, please edit my answer)






アバター
破棄

Hello Ray,

Your approach looks great for linking documents to product configurations. I tried to follow your instructions, but the functionality seems to be somehow different in Odoo 14.

When trying to create the button in Odoo Studio (step 2), I cannot find the Product(Document) field. I only get the Product Template related standard fields. Could you please check the functionality in Odoo 14 and help me with this issue.

最善の回答

Hey! i´m with the same problem in Odoo V16. 
Did you manage to solve it?

I did the same a here but on product.template and it worked on a duplicated database... then i could not reply it anymore. Something i´m missing. 

アバター
破棄
最善の回答

Hello Ray,

This seems grate however, adding documents does not work as expected on v16. I cannot create 


Could you help?

アバター
破棄
関連投稿 返信 ビュー 活動
1
7月 23
5871
1
9月 24
4275
4
9月 24
1884
0
7月 24
827
2
7月 24
1790