Commit Graph
66 Commits
Author SHA1 Message Date
Goffin Simon b2939537d9 [FIX] website_quote: using a quotation template with a fiscal position
When creating a SO with a quotation template, the lines created
with the quotation template must take into account the fiscal position
set on the SO to compute the right taxes.

opw:657015
2015-11-25 14:31:22 +01:00
Christophe Simonis 56a442e205 [MERGE] forward port of branch saas-6 up to dade7e3 2015-11-25 13:26:02 +01:00
Denis Ledoux dade7e3c17 [FIX] website_quote: confirmation email at payment.
`website_quote` overrides `payment.transaction`.`form_feedback`
the same way `website_sale` does,
in case `website_quote` is installed without `website_sale`.

Therefore, the revisions
 - 4adb4b8
 - 809e1a6

must be applied there as well.

opw-657432
2015-11-25 11:22:44 +01:00
Goffin Simon 15ff26c9f7 [FIX] website_quote: onchange_template_id
If a quotation template was used to create a SO, the default customer
taxes set on the product's line were not set on the SO lines.

opw:657015
2015-11-25 10:14:34 +01:00
Goffin Simon e42e6d4b0d [FIX] website_quote: old api on_change_product_id
The old api on_change_product_id function in model 'sale.order.option'
doesn't receive the order_id to compute correctly the price unit for
suggested products. The new api _onchange_product_id function has exactly
the same logic as on_change_product_id and this function receives the order_id.
Then the new one can replace the old one. But to keep the compatibility with partners
who overwrite this old function, it is kept in the code.
This bug was introduced by 5047f4e, this commit defined the product_uom_change function
which called on_change_product_id. This commit was applied in saas-6.
The onchange calls in the views have be removed because all the new api onchange are called
even if they were still there.

opw:656494
2015-11-19 16:10:34 +01:00
Nicolas Martinelli 6f7e757fa2 [FIX] website_quote: description translatable
The website description should be translatable.

opw-652454
2015-11-10 12:10:19 +01:00
Thibault Delavallée 6dfcc5f9c8 [FIX] various: get_access_action form one to multi
As this method is overided in several modules, the mix of new and
old API makes it difficult to handle. Indeed in some cases we
receive the expected dictionary, sometimes in a list, sometimes
in a list of list, due to api.one decorator.

This is a change in the method API, however it is currently completely
buggy. Moreover this method is used internally and should not be
used as an external API. Lastly, this method is new from v9.
2015-10-30 15:44:15 +01:00
Thibault Delavallée 5987648656 [FIX] website_portal_sale, website_quote: access link
/my/orders is available only for quotations not in draft or cancel mode. No
need to redirect to website for those quotations.

online quotation was buggy, id was not defined, use quote.id instead. Woaw.
2015-10-30 15:44:15 +01:00
Nicolas Martinelli 93c85c26a3 [FIX] sale, website_quote: Terms and Conditions
When website_quote is installed, the Terms and Conditions of the quote
template should replace the Terms and Conditions of the company.
However, if the T&C of the quote are not filled, they will be kept
empty. This fix uses the T&C of the company as a backup.

This fix also set the TéC in the lang of the partner.

opw-652390
2015-10-21 14:18:18 +02:00
Christophe Simonis d750206c49 [MERGE] forward port of branch saas-6 up to e9f1ee4 2015-10-01 15:16:59 +02:00
Damien Bouvy 99ccb7f384 [FIX] website_quote: either you adapt the price or you don't
When changing the template of a quote, lines and suggested lines are added to your quotation
The price of line is adapted to the quote's pricelist but not the price of options

This commit adds this behaviour to option lines
2015-09-30 14:01:20 +02:00
Olivier Dony af4a60b941 [MERGE] Forward-port 8.0 up to rev. 26d0fe6d9f 2015-09-30 02:53:59 +02:00
Goffin Simon 06fbf3a572 [FIX] website_quote: price unit for suggested products
In a SO, the unit price of the suggested products must be computed with
the pricelist linked to this SO. Inspired from function 'product_id_change'
in model 'sale.order.line'.

opw:650168
2015-09-29 09:59:53 +02:00
Christophe Simonis 4b9b457369 [FIX] website_quote: use correct keyword argument when calling method
(error introduce by previous forward-port)
2015-09-23 17:04:41 +02:00
Christophe Simonis 57168a9e90 [MERGE] forward port of branch saas-6 up to a669433 2015-09-23 14:34:26 +02:00
Denis Ledoux 9975a04e4d [FIX] website_quote: quote creation without default template
onchanges methods are expected to return dicts
opw-649862
2015-09-21 11:46:50 +02:00
Christophe Simonis 88eaa7dad8 [MERGE] forward port of branch 8.0 up to 35233db 2015-09-11 17:28:07 +02:00
Denis Ledoux 63a5bc8c5f [FIX] website_quote: default quote template values
Once the website_quote module installed,
the "default template" is set by default
on all new quotations.

There is an onchange on the field `template_id`,
setting some values according to the template,
including the description in the website quote.

When creating the quotation / sale order from
the web interface, the on change is triggered,
and the values related to the template are correctly
loaded.

However, when the quotation is created through
the code or the API, the default `template_id` was
correctly set, but as the onchange wasn't triggered,
as onchanges are automatically triggered only
through the webclient creations, the related values,
issued from the template, were not, such as
the quote website description, or the date expiration,
and so on.

In particular, this happen when creating a quotation from
an opportunity, through the "Convert to quotation"
button.

opw-648920
2015-09-10 15:56:05 +02:00
Denis Ledoux 428588a8b7 [FIX] website_quote: Amount before discount with included taxes
The undiscounted amount did not take into account the taxes
included in the price. Included taxes were seen as a discount.

For a quotation with one line with an included tax of 15%,
but no discount, the undiscounted amount must be the line price subtotal,
the price subtotal already removing the taxes from the price unit.

For a quotation with one line with an included tax of 15%,
and a discount of 10%, the undiscounted amount must be the line price subtotal,
plus the amount discounted. That way, the taxes included are already removed
from the price, but the discount is not included.

opw-648388
2015-09-10 15:06:44 +02:00
Damien Bouvy 063ad00442 [FIX] sale: function changed name in refactoring is now applied everywhere
Somehow, we forgot to change some calls to action_button_confirm the to new action_confirm on the sale.order object
This applies to the following modules:
portal_sale
website_event
website_quote
website_sale
2015-09-04 16:08:22 +02:00
Yannick Tivisse ca8b417ded [IMP] Chnage the boolean require_payment to a selection field + radio button 2015-08-25 13:52:00 +02:00
Christophe Simonis 2cf91d16a5 [MERGE] forward port of branch saas-6 up to 63e92cb 2015-07-22 16:17:54 +02:00
Christophe Simonis fe92deaa1d [MERGE] forward port of branch 8.0 up to 2de301d 2015-07-07 18:13:57 +02:00
Damien Bouvy 73cb55284b [IMP] website_quote: payment could be exploited when using a public route, order confirmation is now done using a callback call
This commit implements the callback feature (s2s_cb_eval) on form transaction (up until now, it was only used on s2s transactions).
2015-07-07 15:46:47 +02:00
Nicolas Lempereur 880c997e12 [FIX] website_quote: take suggested product lang from partner
Use the lang from the sale order's partner when updating suggested
product line. To achieve this, the onchange has been replaced by an
onchange of the new api which gives access to all the fields.

closes #7268
opw-643098
2015-07-03 13:58:22 +02:00
Damien Bouvy 2562ad523e [FIX] website_quote: when changing templates, lines were copied from the quote template but the prices were not updated with their correct uom (unit of measure) 2015-06-30 12:54:53 +02:00
Christophe Simonis a304194936 [MERGE] forward port of branch saas-6 up to 81b5c60 2015-06-25 00:26:31 +02:00
Damien Bouvy 6009a83465 [FIX] website_quote: when selecting a quote template, suggested product's prices should be fetched from the pricelist if one is set on the SO 2015-06-17 10:39:06 +02:00
Damien Bouvy de8d90e12e [IMP] website_quote: add payment management
Until now, you could only sign and confirm a sale order from the frontend.

From now on, you can also pay sale orders if the 'Immediate Payment'
option is checked on the sale order.
2015-06-15 14:57:16 +02:00
Olivier Dony 0bd4545348 [LEGAL] Use global LICENSE/COPYRIGHT files, remove boilerplate text
- Preserved explicit 3rd-party copyright notices
- Explicit boilerplate should not be necessary - copyright law applies
  automatically in all countries thanks to Berne Convention + WTO rules,
  and a reference to the applicable license is clear enough.
2015-06-02 03:16:04 +02:00
Damien Bouvy 5047f4ecad [IMP] website_quote: UOM onchange, respect pricelists on SO, layout fixes
* add on_change_uom behaviour to quote templates lines
* fixes frontend layout issues
* use action_button_confirm instead of signal_workflow
  when confirming the quote in the frontend to trigger
  all events properly
* adapt prices using pricelist on onchange_template_id
   on sale orders
2015-05-28 19:04:13 +02:00
Christophe Simonis fe2b5f35a4 [MERGE] forward port of branch saas-6 up to bf1e999 2015-05-28 14:27:38 +02:00
Christophe Simonis 0da722aa6a [MERGE] forward port of branch 8.0 up to bff6dff 2015-05-11 15:12:24 +02:00
Nicolas Lempereur 6553eb3742 [FIX] website_quote: use sale description for options lines
Use the sale description for suggesteds items.

So when seeing suggesteds items in a quotation, we so the sale description
(if there is one) next to the product name.

It was already done for contained items, but not for the suggested ones.

closes #6565
opw-634507
2015-05-06 15:41:00 +02:00
qdp-odoo c04065abd8 [IMP] accounting v9. Yeeeeaah 2015-05-05 17:28:04 +02:00
Christophe Simonis f6d32a9fe9 [FIX] website_quote: use a copy of the context. 2015-02-26 17:59:14 +01:00
Christophe Simonis 61483e1a25 [MERGE] forward port of branch 8.0 up to 9333c62 2015-02-19 17:32:31 +01:00
Goffin Simon 427835e47f [FIX] website_quote: quote template does not take into account variant prices.
In a quote_line, if the product is a product variant, the unit price must be
the sum of the sale price and the price extra.

opw: 625957
2015-02-18 14:21:42 +01:00
Denis Ledoux a67747f77e [FIX] website_quote: duplicate sales order options on order duplication 2015-02-12 14:11:49 +01:00
Leonardo Donelli 4a0b13ed92 [REF] remove vim modelines and resulting trailing blank lines
Let 2015 be a year without modelines!
cf #4174
2014-12-31 15:52:13 +01:00
Christophe Simonis 52fee2811d [MERGE] forward port of branch 8.0 up to 2b192be 2014-10-16 16:04:39 +02:00
Amit Vora e1bc548e24 [IMP] website_quote: copy suggested products 2014-10-13 15:13:04 +02:00
Mahendra barad bf92a5b2fa [IMP] website_quote: onboarding
Views and labels improvements
2014-10-13 09:20:31 +02:00
Simon Lejeune 1029dbc4f3 [FIX] website_quote: forbid to define a quote template on a sale order
Defining a quote template may change the product list. The field template_id is now editable
only when the sale.order is in draft or sent state.
2014-10-06 15:13:30 +02:00
Julien Legros 5153b2d281 [FIX] website_quote: use dedicated email template if a quote template exists 2014-10-03 14:22:38 +02:00
Sheth Sunny 4530ef5f84 [IMP] website_quote: reorder quotation lines
Cherry-picked from b720a596210f5502ae595ffa7ce09b4acd4b63f8
2014-09-11 15:32:03 +02:00
Christophe Simonis 31bf30d2d0 [MERGE] forward port of branch 8.0 up to ed1c173 2014-09-05 15:28:22 +02:00
Denis Ledoux 2d9ddce327 [FIX] website_quote: onchange return nothing if product is False 2014-09-04 17:55:48 +02:00
Mitesh Savani 77bd5181f7 [IMP] sale, website_quote: expiration date is usefull even without using the website_quote module, therefore movign the field to the sale module. It has also be added to the email templates defined in sale and portal_sale, as well as in reports. 2014-09-02 10:14:30 +02:00
Jeremy Kersten 94b20608c6 [IMP] website_quote: handle quote and website descriptions
Add field quote_description on product.template and turn website_description from sale.quote.line into a related.
Overwrite write and create methods to synchronise both fields when setting a product.
website_description on product.template is added by website_sale but there is no dependency relations between these modules so we need to define it in both modules.
2014-08-18 18:40:54 +02:00