Why description has <p><br></p> in description by default for some products in stock form odoo 15? - odoo-15

In Inventory, some products description shows the tag as given in image
by default. Why it shows and how it raised under which condition?

try this changes in your code
<p><br></p> replace with <p><br/></p>

Related

Test Data not showing in All Steps page in Cluecumber report plugin

I am generating the cluecumber report. When ever the report is generated , in the All Steps page the test data is not getting populated rather the steps are showing empty angular brackets like {}.
The test case is written as -
#Regression
Scenario: Create a new Modifiers
Given item image is clicked
When modifiers option is selected
And modifier is created as **"ModifierName"**
And enter modifier option and modifier price as **"Mod"** and **"3.50"** respectively
And hit save
Then verify modifier is created as **"ModifierName"**
**
See the below image for how it is generating now.**
enter image description here
pom file looks like this-
enter image description here
enter image description here
I wish test data passed in feature file to appear in steps while report is generated in All Steps Page and no {} empty brackets.
The all steps page shows which step implementations are used in which scenarios. This is independent of parameter values.
In the scenario details you see the data you need since here the steps are used with concrete values.

How to obtain the record ID of the selected item in a dropdown list in google app-maker

Summary
Obtaining the record ID of the selected item in a drop-down list or radio-button UI appears to be a common question, but I have not found the answer for Google AppMaker despite months of searching.
The example use case: is I wish to edit a product that belongs to a family:
Product - (N:1) --> Family
Product - (M:N) --> FeatureValues
Example
The product belongs to the family Credit Card.
The credit-card family has the following features: |Contactles
|Near field
|Rates
|Chip & Pin|
In the edit form if I change the family the product belongs to then the list of features will change and new values for the features will need to be entered. (Dynamic form)
Hierarchy table
The family, features and permitted values are held in a single hierarchy table:
Family
|
Features
|
Values
newValue._key appears to only work for text-box UI items.
Dropdown list:
widget.datasource.item.Id or _key
provides the Product ID of the parent data source, ProductById (because I am editing a single product)
widget.datasource.selectKey(newValue._key); returns undefined
Sample code
Drop-down-list
OnValueChange event:
//update the features drop-down based on the taxonomy family selected
app.datasources.TaxonomyChildren.query.parameters.parent_fk = app.datasources.TaxonomyFamilies.item.Id;
app.datasources.TaxonomyChildren.load();
If I can pick up the record ID for the selected family in the dropdown list I can set a query.filter.parameter to show the features and values for the newly selected family.
Note: if it is a case you cannot create 'dynamic' forms in Google app-maker, then I'll stop as this has exhausted a lot of time.
Markus wrote:
So leave the options and value settings but in the onValueEdit run your query against TaxonomyChildren by passing in newValue.id to the query
Great Markus, that worked. On the drop-down ValueEdit event I call the function loadTaxonomyChildById(newValue.Id); passing it the Id of the selected TaxonomyFamily, changing the features displayed.

Display message in checkout if a product from categoy X or Y is in the basket

I'm going to edit the shipping.tpl file of my Prestashop theme and what I need to do is to show a text if product from categoy X or Y is already in the basket.
Any ideas on how to get this conditional statement working in Prestashop?
Use CartController or classes Cart to check if your product from a category is already in the cart.
CartController will use for display cart page so you can use the message controller error or warning, as you want
$this->warning[] = 'message';
$this->error[] = 'message error';
Cart classes will be used to check if the user try to add a product from category

How to center td tags in odoo QWeb

How i can center a value in table , the table contain a column that contain the same value in each raw, i need to print only one value in all the raw and not print the value for each raw.
I try to customize print rapport in odoo sale module.
Vertical alignment is a pain in the butt in html, it is not very odoo related, take a look at this answer. If you could do what you want in HTML, then style the odoo form respectfully. But beware, changing default rendering of forms is not a good idea at all!

virtocommerce An error occured while updating cart

I have create a new store and add new physical item under category. when i click on item add to cart it shows me error?
How i can add item to cart..?
Thanks for updating your question. Seems that your product has no any images, so just add some primary image for your product and try to add it to shopping cart again. The presence of product primary image is necessary condition for now - as you can see an exception was occurred while converting your product to shopping cart line item at 22 line - product property PrimaryImage is null.