Repository
OCA/e-commerce · module folder · Try on Runboat
Module version
1.0.1
Category
Uncategorized
Folder size
0.12 MB
License
AGPL-3
Application
No
Auto-installable
No
Website
https://github.com/OCA/e-commerce
Last tracking update
2026-08-07 08:23:00
Authors
Odoo Community Association (OCA), Sygel
Maintainers
Odoo Community Association (OCA), Sygel
Committers
pilarvargas-tecnativa, sygel, Weblate, OCA-git-bot, oca-ci
Odoo dependencies
Python dependencies
openpyxl, geoip2
System dependencies
None
Required by
None
Description
This module adds a button in the website cart that let users import a xlsx or csv file with the products and quantities that he wants to add.

This button is only shown on empty carts, and the file must contain the product's internal reference and the quantity to buy.

Code Analysis

Views touched (2)
XML IDNameModelTypeStatus
cart_lines_import cart_lines_import ir.ui.view qweb Inherits website_sale.cart_lines
res_config_settings_view_form res.config.settings.view.form.inherit.website.sale res.config.settings form Inherits website.res_config_settings_view_form
HTTP endpoints (2)
Route(s)HandlerAuthTypeMethodsFlags
/shop/cart WebsiteSaleAddProductXlsxCsv.cart public http ALL website
/shop/cart/import/example WebsiteSaleAddProductXlsxCsv.cart_import_example public http ALL sudo
Models touched (2)

New fields (2)
  • cart_import_button Boolean
    readonly=False related='website_id.cart_import_button' string='Is the cart import button enabled?'
  • cart_import_button_file_limit Float
    readonly=False related='website_id.cart_import_button_file_limit' string='Cart import button file size limit (MB)'
Public methods (0)

No public methods.

New fields (2)
  • cart_import_button Boolean
    string='Is the cart import button enabled?'
  • cart_import_button_file_limit Float
    default=2 string='Cart import button file size limit (MB)'
Public methods (0)

No public methods.