Commit Graph
18 Commits
Author SHA1 Message Date
harsh 4f4bfe2c9c [IMP] account,website_sale: improve the UX of terms and conditions
Purpose of the task is, to use our awesome website builder instead of
pad when creating a website page for terms & condition.
Also suggest default T&C to save user time when user enable the feature

So in this commit did the below changes:
 * Added new indicational text below "Terms as note" & "Terms as web page"
 * After enabling "Term as web page', user should be able to see the
term page url
 * For Terms editing:
   - User that have 'website' or 'ecommerce' module should edit the page
directly using the website builder with link "edit in website builder" link.
   - User that don't have nor website not ecommerce module should update
the text in the pad but in a pop-up window.
 * Also added the dynamic default term for company when term type is html.

PS: changed website_sale pre_init_hook to post_init_hook because
invoice_terms_html is compute field which depends on term_type so
when term_type is changed from init_hook it will give the key error
for the invoice_terms_html as it's not loaded to registry.

closes odoo/odoo#68225

Taskid: 2414659
Signed-off-by: Victor Feyens (vfe) <vfe@odoo.com>
2021-09-01 22:03:58 +00:00
Arnaud Joset 9ace056714 [IMP] account,sale: html field for terms & conditions
Before this commit, the terms and conditions could not be html formatted text.

closes odoo/odoo#56512

Taskid: 2304199
Related: odoo/upgrade#1689
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2020-10-06 10:26:56 +00:00
Arnaud Joset 4d7ebb8cf5 [IMP] website_sale: remove /shop/terms controller in favor of /terms 2020-10-06 10:26:56 +00:00
mreficent 355a5dfc36 [IMP] *: fix typos in comments
closes odoo/odoo#35404

Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2019-08-07 10:28:33 +00:00
Romain Derie a5a5a57e48 [FIX] website(_sale): allow to use and access website pricelist
Before this commit, if the website's company was different than the user
company, the ecommerce would use the user's company instead of its own
pricelists.

Step to reproduce:
  - Set company2 to website1
  - Create a pricelist1 for company1 and a pricelist2 for company2
  - With an user from company1, visit the website1.
  - The pricelist used will be the one from the user, pricelist1 and not the
    pricelist2 from company2 which is the website1 company.
2019-03-14 10:28:02 +00:00
Joren Van Onder 4f6ec1cd2a [IMP] website,*: support multiple websites
This implements support to administer multiple websites. Although the
core functionality already existed, managing multiple websites was
fairly technical.

In the interest of database updates and migration this attempts to
keep duplicated data to a minimum. To do this the usual generic
records are rendered unless some website-specific record exists that
replaces it. Copy-on-write (COW) is used to create these
website-specific records. Through this mechanism creating a
website-specific record is delayed until necessary. A COW mechanism
has been implemented on 4 models: ir.ui.view, website.page,
website.menu and ir.attachment. These COW mechanisms are activated
when editing data through the website (aka frontend). These frontend
edits (e.g. with web_editor) will be website-specific, possibly
creating a website-specific record when necessary. When editing data
in the backend nothing special will happen, even when editing a
generic record. Note that because of this mechanism also facilitates
the ability to create new, uncustomized websites because the generic
data is kept.

Support is provided for a website to have any theme. Themes are fairly
complex to handle. Standalone themes can depend on other standalone
themes (e.g. theme_beauty depends on theme_loftspace) and themes
usually modify some data of the themes they depend on. Because a theme
can be installed on multiple websites, using website_id m2o fields
does not work well. It would require duplicate data, making updates
and migration harder. Because of this, data for themes (ir.ui.view and
ir.attachment specifically) have a theme_id m2o. website has a
theme_ids m2m that identifies all theme modules currently installed on
it. Through these fields we figure out what to render. A theme is only
fully uninstalled when it's no longer active on any website. The
advantage of this approach is that upgrading or migrating theme data
is no different from the single-website case.

The website.published.mixin class was modified to handle multiple
websites. A wizard was added in the backend to easily manage this for
multiple website.

Although not used anywhere in this commit, a 'website_id' variable has
been added in the evaluation context of ir.rule. It allows to easily
make any model multi-website aware, all that's needed is a custom
website_id m2o field on a model and a custom record rule.
2018-08-13 19:51:10 +02:00
eco-odoo 19775de261 [ADD] website_sale: onboarding steps
Add new onboarding steps: payment and theme selector. There are
initially used on the website_sale_dashboard onboarding panel.

task: 38876
2018-07-20 11:59:13 +02:00
Akash Bhavsar bf9cbcc8d8 [IMP] pos_sale: Add analysis report about total sales from pos, eCommerce and sale
Purpose
=======

Create one report where we can see all sales (sales from sales, eCommerce, POS) grouped by channels

Specification
=============

New Report Sales > Reports , the name should be "All Channels Sales Orders"
This report contains the following fields :

   name
   date
   product_id
   partner_id
   company_id
   user_id
   price_total
   pricelist_id
   categ_id = product_categ_id
   invoiced = amount to invoice
   analytic_account_id
   team_name
   country_id

We thought about doing a kind of sale_order_common report, but we cannot re-use sale.report because of some field (qty_delivered, ...) that we cannot compute on pos orders.
2017-07-11 15:31:04 +02:00
xmo-odoo b4429c2a91 [FIX] Various P3-related import changes
* LDAP import: python-ldap is not python3-compatible, pyldap is

  Warning: only supported from debian Stretch (current testing)?
  https://packages.debian.org/search?searchon=names&keywords=pyldap

* implicitly relative imports
* imports of moved or removed stdlib modules

issue #8530
2017-04-28 09:06:53 +02:00
Martin Trigaux 76f9f5c51b [MOV] website_sale: move configuration files in appropriate directories 2016-03-17 17:26:52 +01:00
David Monjoie 32946d5662 [ADD] website_sale: added orders history page accessible using My Orders link below My Account. This page allows a user to see its sale orders as well as download the corresponding invoices 2015-01-16 15:47:18 +01:00
Christophe Matthieu 2d719d3d7b [MOVE] website_sale: py files to models/
bzr revid: chm@openerp.com-20131014081841-k8iz2b67voezgue4
2013-10-14 10:18:41 +02:00
Christophe Matthieu b8f1ffaafc [IMP] website_sale: bin packing product for sweet layout
bzr revid: chm@openerp.com-20130925180538-qnq699csoof8jrt5
2013-09-25 20:05:38 +02:00
Thibault Delavallée 90eba9e022 [MOVE] Do not be afraid to put different models in different files. Stop putting shit everywhere.
bzr revid: tde@openerp.com-20130924121944-ifjosr5yol6b9tsy
2013-09-24 14:19:44 +02:00
Christophe Matthieu 59ba4e7561 [WIP] website_sale: refactoring and use inherit_option_id
bzr revid: chm@openerp.com-20130812163123-3ako1rggjnszzi2h
2013-08-12 18:31:23 +02:00
Christophe Matthieu d37aebb7f0 [IMP] website: security and public access
bzr revid: chm@openerp.com-20130802035504-lokijwh57e0q3w6a
2013-08-02 05:55:04 +02:00
Christophe Matthieu e52bdd3838 [IMP] website_sale: promotionnal code
bzr revid: chm@openerp.com-20130712085714-rmryh2pebnv8nsjk
2013-07-12 10:57:14 +02:00
Christophe Matthieu 7885fd0fea [IMP] ecommerce => website_sale
bzr revid: chm@openerp.com-20130702152141-qibw8m2kvsf1dv5a
2013-07-02 17:21:41 +02:00