How to rename many2many widgets in product form in odoo 9 - odoo-9

How to rename the many2many widgets in product form route_ids many2many widget . i want to rename the field name in many2many widgets

Related

Drupal 8 views entity reference exposed filter based on node reference

I have a problem in filtering a views with an entity referenced field.
I have a content type called "product" and a content type called "category".
In "product" node i have an entity reference field to "category" nodes (only one category per product).
I have a views page which is displaying products, and a filter by category (category field from product content type), but i can't filter products with the same category value.
I tried Views Reference Filter module, but i got an unexpected error.
Question: How can i filter my views with category? Thank You!
Create a view listing Content of type Product.
Click on add in RELATIONSHIPS section.
Search for Referenced Entity via your field in Product (for example field_category).
Require this relationship.
In FILTER CRITERIA add any field you want in the referenced
entity(Category).
N.B: if you want to expose this filter to users check Expose this filter to visitors, to allow them to change it.

How to translate belongs-to relationship in voyager laravel admin

I am using voyager admin laravel that includes its own translations table and I have two tables categories and products that have a relationship, each product belongs to a category. Now when I fill products data and switch between languages category field doesn't change, it shows me always the default language.
any help?
In the view use the getTranslatedAttribute() method.
For example you list your products in foreach then use the following:
$product->category->getTranslatedAttribute('category_name', 'current_lang', 'fallback_lang')
category is the relationship (category() in the model).
That's it.

Laravel Voyager - Filter Subcategory upon selecting Category

I am using Laravel Voyager admin panel.
I have a 'products' table where PRODUCT has parent SUBCATEGORY and CATEGORY. I have also made these relationships: 'product-subcategory' and 'product-category'.
So, when I want to add new product, I can choose CATEGORY and SUBCATEGORY from dropdown.
The problem is, SUBCATEGORY dropdown shows all of the subcategories:
I want see the SUBCATEGORIES only from the CATEGORY I choose. (like we get the column names of specified MODEL(for referencing) when we create relationships in voyager)
The reason I want this is to prevent adding product under wrong Category and Subcategory.
Is there a way to achive this? Should I use some JSON in the 'Optional Details' field?

How to display the products in a table format on the category page?

I have page of two columns with left bar. On the left side I have listed the categories and when I click on a category, the products display in the right column.
But there I have two options for displaying the products on the category page, one is "Grid" and the other is "list". And I want to display the products on the category page in a table form which will be my own custom table. So that it have one header row and then each row contains one product.
How will I do this?
There is such file as
(your template)/(your theme)/catalog/product/list.phtml
There you can edit your catalog template.

How to create a page to 'Show all product from any category' in Magento?

On my layout I've a list, like a brand list.
I want to be able to click on the brand to filter my products from ANY categories.
Do I need to create a controller which will handle such behavior ?
Like create a query, remove the category filter and add my custom attribute filter ?
Any ideas?
You need to assign brands as attribute to your product and assign all products to one category and then you can filter this category by brand or by any other attribute that meets your attribute set.

Resources