Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
5 Risposte
2263 Visualizzazioni

Hello it seem in Quotation, Sales or Accouting when i have import a wrong item it automatically create so many random item. So i would like to know how to remove the ability to create products on the sale.order, quotation and accouting form view:


i use to have this code with it.


{'no_create': True, 'no_create_edit':True}

but it seem dont work anymore. Any tips guys.

Avatar
Abbandona
Risposta migliore

I tried in Studio and it worked - note that the field name is product_template_id 


Avatar
Abbandona
Risposta migliore

This can be done directly through Studio (in v18 at least)...

Avatar
Abbandona
Risposta migliore

Hi David,

Have you found any solution for this field product_template_id i​n V16/V17?

Avatar
Abbandona
Autore Risposta migliore


Avatar
Abbandona
Risposta migliore

Hi,
You can inherit the form view of the sales order and invoicing. Add the attribute ‘options’ to the field and make no_create_edit values True. eg:

<field name="product_id" position="attributes">
<attribute name="options">{'no_create': True, 'no_create_edit':True}</attribute>
</field>


Hope it helps,

Avatar
Abbandona
Autore

Yeah got the same code. but seems dont work on V17...

Post correlati Risposte Visualizzazioni Attività
2
ott 25
227
0
ott 25
506
0
ott 25
432
2
ott 25
6195
2
ott 25
708