Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
3 Odgovori
4434 Prikazi

Hello,

I want to know how to remove the description of products from the invoice, because it can take alot of space without being crucial or necessary for our current needs. I am using Odoo 12 Online

Thanks

Avatar
Opusti
Best Answer

Creating automation Rule on model Journal Item (account.move.line) is probably the neatest solution I have found so far

for record in records:
    if record.product_id:
        product = record.product_id
        name_parts = []
       
        if product.default_code:
            name_parts.append(f"[{product.default_code}]")
       
        # Get partner language (fallback to system default)
        lang = record.partner_id.lang or 'en_US'

        # Fetch product name in partner's language
        product_name = product.with_context(lang=lang).name
        name_parts.append(product_name)

        # Include variant attributes in partner's language
        if product.product_template_attribute_value_ids:
            attribute_names = product.product_template_attribute_value_ids.with_context(lang=lang).mapped('name')
            name_parts.append(f"({', '.join(attribute_names)})")

        # Update name safely using write()
        record.write({'name': " ".join(name_parts)})

Avatar
Opusti
Best Answer

Hi Yenthe, I now need the exact requirement and tried to access the videos, but they are no longer accessible. Do you have another way to access them? Thanks.

Avatar
Opusti
Best Answer

Hi Bfood,

If you have the Odoo studio available it is really easy as you can remove it with studio. I've made a video showing you how and saved it on my google drive 
If you don't have studio you can edit the view manually and remove the field. I've made a video showing you how and also saved it on my google drive 


P.S: Your info was not very clear. If you're talking about the report (PDF) you can edit the QWeb report by going to Settings > Technical > Reports (requires ?debug in the URL) , then search for the invoice and edit it there:


Yenthe

Avatar
Opusti