Skip to Content
Odoo Menu
  • Sign in
  • Try it free
  • Apps
    Finance
    • Accounting
    • Invoicing
    • Expenses
    • Spreadsheet (BI)
    • Documents
    • Sign
    Sales
    • CRM
    • Sales
    • POS Shop
    • POS Restaurant
    • Subscriptions
    • Rental
    Websites
    • Website Builder
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Supply Chain
    • Inventory
    • Manufacturing
    • PLM
    • Purchase
    • Maintenance
    • Quality
    Human Resources
    • Employees
    • Recruitment
    • Time Off
    • Appraisals
    • Referrals
    • Fleet
    Marketing
    • Social Marketing
    • Email Marketing
    • SMS Marketing
    • Events
    • Marketing Automation
    • Surveys
    Services
    • Project
    • Timesheets
    • Field Service
    • Helpdesk
    • Planning
    • Appointments
    Productivity
    • Discuss
    • Artificial Intelligence
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    Third party apps Odoo Studio Odoo Cloud Platform
  • Industries
    Retail
    • Book Store
    • Clothing Store
    • Furniture Store
    • Grocery Store
    • Hardware Store
    • Toy Store
    Food & Hospitality
    • Bar and Pub
    • Restaurant
    • Fast Food
    • Guest House
    • Beverage Distributor
    • Hotel
    Real Estate
    • Real Estate Agency
    • Architecture Firm
    • Construction
    • Property Management
    • Gardening
    • Property Owner Association
    Consulting
    • Accounting Firm
    • Odoo Partner
    • Marketing Agency
    • Law firm
    • Talent Acquisition
    • Audit & Certification
    Manufacturing
    • Textile
    • Metal
    • Furnitures
    • Food
    • Brewery
    • Corporate Gifts
    Health & Fitness
    • Sports Club
    • Eyewear Store
    • Fitness Center
    • Wellness Practitioners
    • Pharmacy
    • Hair Salon
    Trades
    • Handyman
    • IT Hardware & Support
    • Solar Energy Systems
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    Others
    • Nonprofit Organization
    • Environmental Agency
    • Billboard Rental
    • Photography
    • Bike Leasing
    • Software Reseller
    Browse all Industries
  • Community
    Learn
    • Tutorials
    • Documentation
    • Certifications
    • Training
    • Blog
    • Podcast
    Empower Education
    • Education Program
    • Scale Up! Business Game
    • Visit Odoo
    Get the Software
    • Download
    • Compare Editions
    • Releases
    Collaborate
    • Github
    • Forum
    • Events
    • Translations
    • Become a Partner
    • Services for Partners
    • Register your Accounting Firm
    Get Services
    • Find a Partner
    • Find an Accountant
    • Meet an advisor
    • Implementation Services
    • Customer References
    • Support
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Get a demo
  • Pricing
  • Help
You need to be registered to interact with the community.
All Posts People Badges
Tags (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Tags (View all)
odoo accounting v14 pos v15
About this forum
Help

default border remove from the table(GRN),

Subscribe

Get notified when there's activity on this post

This question has been flagged
qwebreportodoo18
3 Replies
732 Views
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
Discard
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
Best Answer

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
Discard
Avatar
Kalana Piyumantha
Author Best Answer

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
Discard
Avatar
Zehntech Technologies Inc.
Best Answer

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
Discard
Enjoying the discussion? Don't just read, join in!

Create an account today to enjoy exclusive features and engage with our awesome community!

Sign up
Related Posts Replies Views Activity
Overwrite or change standard report print name in odoo 18
report odoo18
Avatar
Avatar
1
Apr 25
3981
odoo 16 report target new page scss
qweb report
Avatar
Avatar
1
Apr 25
3228
Missing external identifier on new external layout template Solved
qweb report
Avatar
Avatar
2
Mar 25
4084
Translate month name in t-esc Qweb report Solved
qweb report
Avatar
Avatar
Avatar
Avatar
Avatar
4
Nov 24
9306
QWeb Report Shows Different When Edit And Print Review Solved
qweb report
Avatar
Avatar
1
Mar 24
4061
Community
  • Tutorials
  • Documentation
  • Forum
Open Source
  • Download
  • Github
  • Runbot
  • Translations
Services
  • Odoo.sh Hosting
  • Support
  • Upgrade
  • Custom Developments
  • Education
  • Find an Accountant
  • Find a Partner
  • Become a Partner
About us
  • Our company
  • Brand Assets
  • Contact us
  • Jobs
  • Events
  • Podcast
  • Blog
  • Customers
  • Legal • Privacy
  • Security
الْعَرَبيّة 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 is a suite of open source business apps that cover all your company needs: CRM, eCommerce, accounting, inventory, point of sale, project management, etc.

Odoo's unique value proposition is to be at the same time very easy to use and fully integrated.

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