Zum Inhalt springen
Menü
Sie müssen registriert sein, um mit der Community zu interagieren.
Diese Frage wurde gekennzeichnet
3 Antworten
6448 Ansichten

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?

Avatar
Verwerfen
Beste Antwort

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)






Avatar
Verwerfen

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.

Beste Antwort

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. 

Avatar
Verwerfen
Beste Antwort

Hello Ray,

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


Could you help?

Avatar
Verwerfen
Verknüpfte Beiträge Antworten Ansichten Aktivität
1
Juli 23
5876
1
Sept. 24
4277
4
Sept. 24
1889
0
Juli 24
829
2
Juli 24
1809