Hoppa till innehåll
Odoo Meny
  • Logga in
  • Prova gratis
  • Appar
    Ekonomi
    • Bokföring
    • Faktura
    • Utgifter
    • Kalkylark (Affärsanalyser)
    • Dokument
    • Underskrifter
    Försäljning
    • CRM
    • Försäljning
    • Kassasystem Butik
    • Kassasystem Restaurang
    • Prenumerationer
    • Uthyrning
    Hemsida
    • Hemsidesverktyg
    • E-handel
    • Blogg
    • Forum
    • Livechatt
    • Utbildning
    Försörjningskedja
    • Lager
    • Produktion
    • Produktens livscykel (PLM)
    • Inköp
    • Underhåll
    • Kvalitet
    HR
    • Anställda
    • Rekrytering
    • Ledighet
    • Utvärderingar
    • Rekommendationer
    • Fordon
    Marknadsföring
    • Sociala medier
    • E-postmarknadsföring
    • Sms-marknadsföring
    • Evenemang
    • Automatiserad marknadsföring
    • Enkäter
    Tjänster
    • Projekt
    • Tidrapporter
    • Fältservice
    • Kundtjänst
    • Planering
    • Tidsbokningar
    Produktivitet
    • Diskutera
    • AI
    • IoT
    • VoIP
    • Kunskap
    • WhatsApp
    Community-appar Odoo Studio Odoo Cloud
  • Branscher
    Butiker
    • Bokaffärer
    • Klädbutiker
    • Möbelaffärer
    • Mataffärer
    • Byggvaruhus
    • Leksaksaffärer
    Restaurang & Hotell
    • Barer och pubar
    • Restauranger
    • Snabbmatsrestauranger
    • Gästhus
    • Dryckesdistributörer
    • Hotell
    Fastigheter
    • Fastighetsbyråer
    • Arkitektfirmor
    • Byggföretag
    • Fastighetsägare
    • Trädgårdsmästare
    • Bostadsrättsföreningar
    Hitta en konsult
    • Redovisningsbyrå
    • Odoo Partner
    • Reklambyråer
    • Advokatbyråer
    • Rekrytering
    • Revisioner och certifieringar
    Produktion
    • Textilproduktion
    • Metallproduktion
    • Möbelproduktion
    • Livsmedelsproduktion
    • Bryggerier
    • Företagsgåvor
    Hälsa och fitness
    • Sportklubbar
    • Optiker
    • Träningscenter
    • Friskvård
    • Apotek
    • Frisörsalonger
    Hantverk
    • Hantverkare
    • IT-utrustning och kundtjänst
    • Solceller, solpaneler och solenergi
    • Skomakare
    • Städföretag
    • VVS-tjänster
    Övrigt
    • Ideella föreningar
    • Miljöförvaltningar
    • Uthyrning av reklamtavlor
    • Fotografer
    • Cykeluthyrning
    • Återförsäljare av mjukvara
    Upptäck alla Branscher
  • Community
    Utbildning
    • Instruktionsvideor
    • Dokumentation
    • Certifiering
    • Utbildningar
    • Blogg
    • Podcast
    Lär dig med oss
    • Workshops
    • Företagsspelet Scale Up!
    • Studiebesök hos Odoo
    Mjukvaran
    • Ladda ner
    • Jämför utgåvor
    • Versionsinformation
    Samverkan
    • GitHub
    • Forum
    • Evenemang
    • Översättningar
    • Bli en partner
    • Partnertjänster
    • Registrera din redovisningsbyrå
    Våra tjänster
    • Partners
    • Revisorer
    • Träffa en rådgivare
    • Implementering
    • Kundrecensioner
    • Kundtjänst
    • Uppgraderingar
    GitHub Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Boka en demo
  • Priser
  • Hjälp
Du måste vara registrerad för att kunna interagera med communityn.
Alla inlägg Personer Utmärkelser
Etiketter (Visa alla)
odoo accounting v14 pos v15
Om detta forum
Du måste vara registrerad för att kunna interagera med communityn.
Alla inlägg Personer Utmärkelser
Etiketter (Visa alla)
odoo accounting v14 pos v15
Om detta forum
Hjälp

default border remove from the table(GRN),

Prenumerera

Få ett meddelande när det finns aktivitet på detta inlägg

Denna fråga har flaggats
qwebreportodoo18
3 Svar
1075 Vyer
Avatar
Kalana Piyumantha

i want to remove this table border , i tried css, bootstrap methods but anything not succeed. I used web.external layout,  think layout thing is affect to this atribute from somewhere i want to replace this solid line with dashed line, Can Someone help me,

<table class="table table-borderless stock-move-table">
<thead>
<tr>
<th name="th_sm_product">
<strong>Product</strong>
</th>
<th name="th_ordered" class="text-end">
<strong>Ordered</strong>
</th>
<th name="th_delivered" class="text-end">
<strong>Delivered</strong>
</th>
</tr>
</thead>
<tbody>
<t t-set="lines" t-value="o.move_line_ids_without_package"/>

<tr t-foreach="lines" t-as="move" style="color:black;">
<td>
<span t-field="move.product_id"/>
</td>
<td class="text-end">
<span t-field="move.move_id.product_uom_qty"/>
<span t-field="move.move_id.product_uom"/>
</td>
<td class="text-end">
<span t-field="move.quantity"/>
<span t-field="move.move_id.product_uom"/>
</td>
</tr>
</tbody>
</table>,.delivery-receipt-table { border: none !important; width: 100% !important;}.delivery-receipt-table thead tr{ border:none !important; border-left: none !important; border-right: none !important;}.delivery-receipt-table thead th { border-left: none !important; border-right: none !important; border-top: 1px dashed !important; border-bottom: 1px dashed !important;}.delivery-receipt-table tbody tr td { border: none !important; border-top: none !important; border-bottom: 1px dashed black !important;}
0
Avatar
Avbryt
Codesphere Tech

You need to add in <tbody> which cover whole stock move line.
<tbody style="border:dashed !important; border-left:0 !important;border-right:0 !important;"/>

Avatar
Codesphere Tech
Bästa svar

Hello,
This is the root cause of why you’re not able to override the bottom border:
.o_table_standard table:not(.o_ignore_layout_styling) thead {border-bottom: 1px solid #111827;}

Please Update as below:
<thead style="border-bottom: 0 !important;"/>
Hope this helps
Thanks

2
Avatar
Avbryt
Avatar
Kalana Piyumantha
Författare Bästa svar

Thank you ! It is worked, Now I want to help to this table too, i wanted out put is like this image, table borders(dashed borders with no borders in left and right)current output is second image

<table class=" delivery-receipt-table" name="stock_move_table"><!--                        table table-sm table-borderless-->                        <thead>                            <tr>                                <th name="th_sm_product">                                    <strong>Product</strong>                                </th>                                <th name="th_quantity" class="text-left">                                    <strong>Qty</strong>                                </th>                                <th name="th_price" class="text-left">                                    <strong>Price</strong>                                </th>                                <th name="th_amount" class="text-left">                                    <strong>Amount</strong>                                </th>                                <th name="th_refno" class="text-left">                                    <strong>Ref.No</strong>                                </th>                                <th name="th_unit" class="text-left">                                    <strong>Unit</strong>                                </th>                            </tr>                        </thead>                        <tbody>                            <t t-set="lines" t-value="o.move_line_ids_without_package"/>                            <t t-set="tot" t-value="0.00"/>                            <t t-set="tot_weight" t-value="0.00"/>                            <tr t-foreach="lines" t-as="move" style="color:black;">                                <td>                                    <span t-field="move.product_id"/>                                </td>                                <td class="text-left">                                    <span t-field="move.quantity"/>                                </td>                                <td class="text-left">                                    <!-- Call the method to get unit cost -->                                    <span t-esc="move._get_unit_cost()"                                          t-options='{"widget": "monetary", "display_currency": o.currency_id}'/>                                </td>                                <td class="text-left">                                    <!-- Calculate line amount using the method -->                                    <t t-set="unit_cost" t-value="move._get_unit_cost()"/>                                    <t t-set="line_amount" t-value="unit_cost * move.quantity"/>                                    <span t-esc="line_amount"                                          t-options='{"widget": "monetary", "display_currency": o.currency_id}'/>                                    <t t-set="tot" t-value="tot + line_amount"/>                                </td>                                <td class="text-left">                                    <span t-field="move.lot_id"/>                                </td>                                <td class="text-left"                                    style="background-color: #FFF;">                                    <span t-field="move.product_uom_id"/>                                </td>                                <t t-set="tot_weight" t-value="tot_weight + (move.product_id.weight * move.quantity)"/>                            </tr>                        </tbody>                    </table>,
=============================================================
Styles
.delivery-receipt-table { border: none !important; width: 100% !important;}.delivery-receipt-table thead tr{ border:none !important; border-left: none !important; border-right: none !important;}.delivery-receipt-table thead th { border-left: none !important; border-right: none !important; border-top: 1px dashed !important; border-bottom: 1px dashed !important;}.delivery-receipt-table tbody tr td { border: none !important; border-top: none !important; border-bottom: 1px dashed black !important;}.delivery-receipt-table tbody tr:last-child td { border-bottom: 1px dashed black !important;}
0
Avatar
Avbryt
Avatar
Zehntech Technologies Inc.
Bästa svar

Hello,

Yes, you’re on the right track — this behavior usually comes from the default styles applied by web.external_layout, which can override your custom CSS.

To fix this, you need to ensure:

  • Your CSS selector is more specific than Odoo’s default

  • Or apply styles inline / with stronger priority

For example, try updating your table like this:

<table class="table stock-move-table" style="border: none !important; border-collapse: collapse;">

What is this?

And adjust CSS with higher specificity:

.stock-move-table,

.stock-move-table th,

.stock-move-table td {

border: none !important;

}


.stock-move-table thead th {

border-top: 1px dashed black !important;

border-bottom: 1px dashed black !important;

}


.stock-move-table tbody td {

border-bottom: 1px dashed black !important;

}

If it still doesn’t work, check if any parent template (like web.external_layout) is injecting styles — in that case, inheriting and overriding that template may be required.

Hope this works for you! Feel free to reach out for further discussion.

Regards,

Zehntech Technologies Inc.

santosh.sekwadia@zehntech.com

0
Avatar
Avbryt
Njuter du av diskussionen? Läs inte bara, delta också!

Skapa ett konto idag för att ta del av exklusiva funktioner och engagera dig i vår fantastiska community!

Registrera dig
Relaterade inlägg Svar Vyer Verksamhet
Overwrite or change standard report print name in odoo 18
report odoo18
Avatar
Avatar
1
apr. 25
4332
odoo 16 report target new page scss
qweb report
Avatar
Avatar
1
apr. 25
4058
Missing external identifier on new external layout template Löst
qweb report
Avatar
Avatar
2
mars 25
4849
Translate month name in t-esc Qweb report Löst
qweb report
Avatar
Avatar
Avatar
Avatar
Avatar
4
nov. 24
10039
QWeb Report Shows Different When Edit And Print Review Löst
qweb report
Avatar
Avatar
1
mars 24
4634
Community
  • Instruktionsvideor
  • Dokumentation
  • Forum
Öppen källkod
  • Ladda ner
  • GitHub
  • Runbot
  • Översättningar
Tjänster
  • Odoo.sh Hosting
  • Kundtjänst
  • Uppgradera
  • Anpassningsbara modifikationer
  • Utbildning
  • Revisorer
  • Partners
  • Bli en partner
Om oss
  • Vårt företag
  • Varumärkestillgångar
  • Kontakta oss
  • Jobb
  • Evenemang
  • Podcast
  • Blogg
  • Kunder
  • Juridiskt • Integritet
  • Säkerhet
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk Slovenščina Español (América Latina) Español Svenska ภาษาไทย Türkçe українська Tiếng Việt

Odoo är ett affärssystem med öppen källkod som täcker alla dina företagsbehov: CRM, e-handel, bokföring, lager, kassasystem, projektledning, och så vidare.

Odoos unika värdeförslag är att samtidigt vara väldigt enkel att använda men också helt integrerad.

Website made with

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now