Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
3098 Widoki

On a sales order, when a product is selected, the product's description is automatically added (which can incidentally be updated without impacting the original product).

Our customers would like to see that the engineering drawing reference matches their purchase order, so we'd like to include this in each line.

We've added a custom field using Odoo's studio (file attachment).  I was hoping to add this field as a read-only field in the order line list using the Odoo studio, but I haven't been able to find the field (or any other product field for that matter) in order to add it. 

Am I missing something?

Update: 

I've got the file displaying as a download button. How do I change this to show the filename?

Awatar
Odrzuć
Najlepsza odpowiedź

HI,

If you have successfully added the field inside the product model to hold this data, you can now add a related field inside the sale order line model which related to the newly added field in product.


So once you select the product, the value will be automatically fetched from the prodiut master and displayed in order line.

For adding related field using studio, see: How To Add Related Fields Using Odoo Studio

Thanks & Regards

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
3
lip 24
3436
1
gru 21
3290
0
gru 21
783
0
lis 20
2406
0
wrz 21
1766