Ir al contenido
Menú
Se marcó esta pregunta
3 Respuestas
6440 Vistas

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
Descartar
Mejor respuesta

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
Descartar

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.

Mejor respuesta

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
Descartar
Mejor respuesta

Hello Ray,

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


Could you help?

Avatar
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
1
jul 23
5869
1
sept 24
4275
4
sept 24
1884
0
jul 24
827
2
jul 24
1788