How to remove "create" option from Many2many field while keeping "add an item" in odoo 10 - odoo-10

I have create a Many2Many field and I want to hide/remove create option which is showing when we are clicking on Add an item. I have added screenshot for reference. Link for screenshot

Options
no_create - remove the “Create” button.
no_quick_create - remove the Create and edit... option
Example
<field name="field_name" options="{'no_create': True}"/>
for more information you can use this link
Form widgets for many2many fields in Odoo

Related

Drupal 9: How to reference a view in a paragraph field type

In my Drupal website, I'm using the paragraphs module to build the pages's main content. One of my paragraph types is called 'News'. This paragraph type contains a field that should reference to a 'recent news items view'. This view is already created, but I can't figure out the setup to reference this view in my paragraph field. I already tried many configurations and followed a few tutorials, all with the same result.
I think the issue lies with creating the new field. When creating the field, I have to select the field type. According to me, this must be 'Reference > Content'
Thereafter I must setup the 'Field settings > Type of item to reference'. There I go for 'Content > Content'.
The problem now is that I can only select my 'content types' as a reference, while I must be able to select a view.
So my final question is; Which configuration to choose, so I can select a view as output?
Views are not referenceable by a field by default. You need either the Views Reference module:
https://www.drupal.org/project/viewsreference
... or the Block Reference module:
https://www.drupal.org/project/blockreference
This will allow you to add to your paragraph type a field that may reference your 'recent news items' view.
Instead of Reference->Content select Reference->Other.
On the next step change "Type of item to reference" from Content to View (it's at the bottom of the list).
Click "Save field settings"
On the next screen click "Save settings"
Optionally go to "Manage form display" tab and change widget for the field (by default it's autocomplete field)

Strapi is only showing Content ID instead of Content name

Strapi is showing only the ID in a relation content type. I want to see the postalCode instead of the ID. What do I have to change/edit so that Strapi is showing me the postalCodes which I already entered instead of the IDs?
The option you are searching for is hided by the dropdown ;)
Select "Configure the view" or "Anzeige konfigurieren"
On the presented Screen you can then see under "Relational fields" your relations. Hover over the field you want to edit the display name and select it.
In the opened Modal window you can select the Attribute you want to use (highlighted in the screenshot)...

Laravel Nova - How to remove delete button from file field in form

I have set up a form with image upload. By default laravel nova is showing a delete button and choose image button.
According to my requirement, my client wants to keep the image as non-editable (hide delete and choose button) in the laravel nova form.
How can I do this? Any ideas?
There is no option to hide "Choose File" button, only possible to hide delete button in some cases.
But for your case you can just hide whole field from edit form.
File::make('File')->hideWhenUpdating();
The delete operation can be disabled from the field with following code:
File::make('File')->deletable(false);
Bread and butter of Nova micro-customization, either:
Make custom field based on default Image field.
Use CSS to hide it.

Laravel Nova - Show/Hide form fields based on a parent Select field

I need to Show/Hide form fields based on a parent Select field.
For example, I need to show Pen name text field when pen is selected and show Pencil name text field when pencil is selected.
Any ideas?
Got a Nova package for this feature:
https://novapackages.com/packages/epartment/nova-dependency-container

Odoo 9.0 Hiding columns in the table

I'm trying to make dropdown list with columns' headers that have functionality, which lets you hide or show the column in the table just by clicking. I'd like to ask, if there is any possibility to hide/show columns(fields) in the Odoo's table dynamically?
I have tried with field_view_get, but it wont work. It's just "undefined".
Tree view columns can be hidden statically in the field definition
<field name="description" invisible="1"/>
The column values can be hidden dynamically
<field name="description" attrs="{'invisible': [('hide_description', '=', True)]'"/>
As far as I know, it's not possible to hide the entire column dynamically. You might be able to achieve it with JS or by using the Action menu to load a wizard to show/hide columns where the "Apply" button on the wizard actually manipulates a ir.ui.view for the user?

Resources