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

hi every one,i have a master detail from,what am trying to do is that when i select some fields in master form the fields in the detail form should be populated automatically,,,there should not be default option of "add an item",,

Avatar
Verwerfen
Autor

solved,,thanks a lot niyas raphy sir

Beste Antwort

Hi,

If you are looking to remove the add an item/add a line in One2many fields, you can set create="0" in the code. So that this add an item will not be visible.

See a sample: 

<tree create="0" delete="0">

Thanks

Avatar
Verwerfen

Hey Niyas

Does this work with the add an item feature in the detailed operations of transfer operations, and if so, will it completely disable the functionality?

E.g., when using the barcode app in a picking transfer operation, the normal and correct procedure is to scan an item in the detailed operations list which will increase the done quantity with each scanning action, however, if you scan an item that is not in the list, the standard Odoo setup will allow you to add it to detailed operations although it will show in red. So wondering if your solution will also prevent adding an item by scanning?

If not, is there an alternative solution?