Commit Graph

4613 Commits

Author SHA1 Message Date
Goffin Simon b5c1cb4298 [FIX] sale: Currency in Sales Analysis
The "Total Price" in Sales Analysis must take into account the currency.
Inspired from caf333eb59
2015-07-14 14:19:00 +02:00
Denis Ledoux 809e1a6081 [FIX] sale, website_sale: quotation email.
4adb4b8d15
corrected the fact the quotation email
wasn't sent if you did not come back
from the payment provider
(when you closed your browser after
the payment but before coming back
to Odoo).

Before the above revision, the quotation
email was sent for payment methods
not redirecting to payment providers,
like transfers. It was no longer the case
with the above revision.

This revision re-introduces this behavior:
If there is a feedback from a transaction,
but the transaction isn't confirmed,
we send the quotation email without confirming
the sale order, like it was the case before

opw-644670
2015-07-14 11:11:55 +02:00
Odoo Translation Bot 99a7d530e0 [I18N] Update translation terms from Transifex 2015-07-12 01:51:44 +02:00
Denis Ledoux 4adb4b8d15 [FIX] sale, website_sale: Send email on sale order confirmation
Not just when coming back from the payment provider to the
payment validation route `/shop/payment/validate`.

Otherwise, if you do not come back from the payment provider
page, that you quit just after having paid but just before
being redirected to Odoo, you do not receive the email.

The change within the `sale` module, while this issue concerns
`website_sale` only, has been accepted because this is a mechanism
that could be used by other modules.

opw-644348
2015-07-09 15:51:50 +02:00
Goffin Simon 85a06f8a6e [FIX] sale: confirmed sale order line
The filter "Confirmed" is applied on sale order line.
Introduced by b927f8a864
2015-07-09 15:23:44 +02:00
Odoo Translation Bot fe3835faff [I18N] Update translation terms from Transifex 2015-07-05 01:52:32 +02:00
Jos De Graeve 7771c45ed9 [FIX] sale: product_id_change ignores context
The product_id_change method of sale.order.line
ignored the passed context.

The context was simply overwritten,
which is no a good practice.

Besides, it prevents customizations.

Closes #7447
opw-643983
2015-07-03 16:38:12 +02:00
Anaël Closson 6af7c636c2 [FIX] sale: cannot filter on paid = False
Closes #2211
2015-07-02 15:15:25 +02:00
Odoo Translation Bot acc1b525fa [I18N] Update translation terms from Transifex 2015-06-29 08:42:08 +02:00
Denis Ledoux 5387676399 [FIX] sale: "Quotation confirmed" for sales order invoiced on delivery order
When confirming a sales order with invoicing control
based on "Delivery order", confirming the quotation
didn't post the "Quotation Confirmed" message
subtype in the sales order thread.

opw-642744
2015-06-26 15:07:45 +02:00
Xavier Morel f5b88f6309 [IMP] minor perf improvement during tests
During tests, some creation of user records would unnecessarily trigger
password reset or set a password, both of which would trigger password
hashing which takes some time (for good reasons).

Fix by:
* passing no_reset_password in YAML tests and some Python tests still
  missing it (a number of Python tests already used it)
* removing passwords from YAML records as they're never necessary, the
  test user records are not expected to ever log in
2015-06-26 14:22:29 +02:00
Peter Alabaster e17166183d [FIX] sale: pass context when creating Sale Order name
Without passing the context, this is not possible
to force the company (`force_company`)

Closes #7242
2015-06-24 11:38:41 +02:00
Odoo Translation Bot 35b2463324 [I18N] Update translation terms from Transifex 2015-06-22 13:21:18 +02:00
Goffin Simon b927f8a864 [FIX] sales: Sales Button
The button sales on the product form only shows the confirmed SO.

opw:642946
2015-06-22 12:07:08 +02:00
Goffin Simon 403ce405ff [FIX] sale: Update fiscal position
The fiscal position must be updated according to the delivery address.

opw:641883
2015-06-17 13:51:54 +02:00
Odoo Translation Bot e2c9699cfc [I18N] Update translation terms from Transifex 2015-06-08 14:03:50 +02:00
Martin Trigaux 4528ccf148 [I18N] First sync of translations from Transifex
Translation is that which transforms everything so that nothing changes.
 -- Grass Günter
2015-05-29 21:58:20 +02:00
Martin Trigaux 409ca3e009 [I18N] Update translations from Transifex
Now I am become Death, the destroyer of worlds
2015-05-29 18:28:10 +02:00
Olivier Dony b17c7d66c7 [I18N] Final sync + cleanup of Launchpad Translations, moving to Transifex
See https://github.com/odoo/odoo/wiki/Translations
2015-05-29 11:22:32 +02:00
Olivier Dony 1cea0dc4e9 [I18N] Final sync + cleanup of Launchpad Translations, moving to Transifex
See https://github.com/odoo/odoo/wiki/Translations
2015-05-29 10:55:06 +02:00
Olivier Dony 3c3581e19f [I18N] Sync latest translations from Launchpad (not the final one) 2015-05-21 18:01:57 +02:00
Olivier Dony ebb5ddcd65 [I18N] Sync latest translations from Launchpad (not the final one) 2015-05-21 14:42:20 +02:00
Alexandre Fayolle a922d39632 [ADD] sale, delivery: tests for sales prepaid flow
Test uses cases for revision b7f1b9c01e
2015-05-06 17:29:37 +02:00
Olivier Dony 622e00baa5 [I18N] Sync 8.0 translations from Launchpad 2015-04-28 09:45:53 +02:00
Guewen Baconnier 3a314780c0 [FIX] sale_*, delivery: more consistent ignore of cancelled SO lines
Sales Order lines have a cancelled state, but this state is not
always considered when looping over lines. This check is
done in some places already and this patch's aim is to do it in the
remaining places.

- Cancel the procurement of a sale line in sale.order.line
instead of sale.order, so a line canceled individually with
sale_order_line.button_cancel will properly cancel it
procurement.
- Sale report: uses the state of lines instead of Sales order,
so canceled lines of not-canceled orders are correctly represented
in the analysis.
- test: do not create invoices lines for canceled sale lines
- test: creation of moves with canceled lines
- test: check if lines are still canceled when sale order is done

Closes #6036
2015-04-24 17:29:51 +02:00
Nicolas Lempereur 86116fd082 [FIX] sale: set company sales team for quotation
If there is not a dedicated salesteam for the current user, this fix sets the
sales team to the one dedicated to a customer if there is one.

opw-633134
2015-04-21 15:06:03 +02:00
Goffin Simon 57c1b07ebf [FIX] sale: Wrong invoice settings
On a sale order for a customer A where the invoice address is the address of the customer B,
the payment term, the receivable account and the fiscal position must be set from customer B
which is the partner invoice.

opw:630962
2015-04-16 08:50:07 +02:00
Goffin Simon 3b6eae8b1e [FIX] sale: Sales Team GaugeEq
In Sales Team, the value shown when the cursor is over the gauge for Sales Orders
must not include the taxes.

opw:632348
2015-04-15 17:40:03 +02:00
Christophe Simonis 8ac8281a7f [MERGE] forward port of branch saas-3 up to d3e7a8e 2015-04-10 18:35:34 +02:00
Christophe Simonis d3e7a8ef5e [MERGE] forward port of branch 7.0 up to 856bc6f 2015-04-10 18:24:46 +02:00
Martin Trigaux d0493ee847 [FIX] sale: recompute tax amount after fiscal position change
When changing the fiscal position of a sale.order, the taxes are recomputed
which means that total amounts may no longer be correct (need to press 'update'
button).
Reset the amount_* fields to force the recomputation at write.
Fixes lp:712772, opw 618419
2015-04-10 11:56:25 +02:00
Somesh Khare c09095cbc9 [FiX] sale(_stock): missing state on report
The state 'Quotation Sent' was not visible on the sales analysis report (e.g.
group by Status). Add the missing state to the report to correctly disaply it.
opw 619748
2015-04-08 16:36:04 +02:00
Nicolas Lempereur 32bc9fcb3a [FIX] customer: sale order number with child
The number of sale order on a partner form view only counted the given customer
and not the ones of eventuals child_ids. Hence when clicking on the widget, the
result sale order tree view (which take account of child_ids sale order) is
inconsistent.

This fix adds the sale order of a child company to the sale_order_count.

opw-630249
2015-04-01 15:29:21 +02:00
Christophe Simonis 3540ec53e4 [MERGE] forward port of branch saas-3 up to 6b70b80 2015-03-25 18:00:08 +01:00
Christophe Simonis 6b70b80a0e [MERGE] forward port of branch 7.0 up to 881c10b 2015-03-25 17:41:53 +01:00
Goffin Simon a36396b192 [FIX] sale: based amount to compute advanced invoices
The based amount to compute advanced invoices must be the amount_untaxed.

opw:630975
2015-03-24 10:00:45 +01:00
Nicolas Martinelli 3d05ddab50 [FIX] sale_stock: Cancel all procurements linked to a sale order
During the creation of a Sale Order containing a product for which 'Make To Order' is activated
in the Procurements, two procurements are created:
- one for 'Partner Locations/Customers' location
- one for 'WH/Stock' location

If the Sale Order if cancelled, the user must first cancel the picking (delivery order).
This will trigger the cancellation of the procurement with the 'Partner Locations/Customers'
location.

The new behavior is to cancel the procurements linked to the Sale Order, which will trigger
the cancellation of the picking.

opw: 630170
issue: https://github.com/odoo/odoo/issues/3805
2015-03-17 16:37:24 +01:00
jesusVMayor 591d207ff9 [FIX] sale: reset state of exception procurements only
During the delivery of a picking the procurents in exception or canceled are
reset to confirm state.
As the list of picking was a list shared in the loop, other procurements may be
reset to confirm as well.
2015-03-06 16:00:54 +01:00
Julien Legros 9339f1bfb1 [IMP] sale: quotation confirmed mail subtype defaults to False
This reverts commit 0130ce4e84.
2015-03-02 11:06:32 +01:00
Josse Colpaert 50fc06e275 [IMP] Fasten up procurement JIT in v8 already 2015-03-02 09:41:19 +01:00
Denis Ledoux b11c49d6f6 [FIX] sale: sales team amount invoiced exclude purchases
This is possible to assign a sales team to a supplier invoices
Supplier invoices must be rejected in the invoiced count
of sales team (in the kanban view of sales team).

The invoiced amount must be the customer invoices amount minus
the customer refund invoices amount

opw-629105
2015-02-27 15:44:40 +01:00
Denis Ledoux d4f41a18a6 [FIX] sale: sales count button on variants
The button was no more redirecting to the
sales order lines list view,
following a distraction error introduced during 68b8286d5f
2015-02-26 17:39:47 +01:00
Denis Michiels 8be57ccf0d [FIX] sale: Chatter entries translated in user language
When a delivery order is confirmed, pass the user language to the
procurement creation so the messages in the chatter are now translated
in his language.

opw 627002
2015-02-23 11:17:05 +01:00
Olivier Dony 91d4b947f6 [I18N] Update translations from Launchpad 8.0 branches 2015-02-18 11:51:07 +01:00
Denis Ledoux 4b3522936f [FIX] sale: missing default keys in result dict for sales count button 2015-02-02 12:43:18 +01:00
Denis Ledoux 68b8286d5f [FIX] sale: sales button on product variants
This rev. is comparable to 0b18a5afec

The action action_order_line_product_tree is used in both
product templates and product variants forms.
Therefore, the default_product_id: active_id in the context
cannot be used,
As sometimes the active_id will be a product template,
sometimes it will be a product variant.

I believe two different window actions should be used,
instead of sharing a common one and making hacks.
Nevertheless, as we avoid taking risks in stable releases
This should probably be performed in master.
2015-02-02 10:34:27 +01:00
Goffin Simon 9b3e606538 [FIX] sale: format date according to partner language in SO emails.
opw:625594
2015-01-29 16:22:21 +01:00
Antony Lesuisse a8edd217a0 [FIX] sale: product sold stat button 2015-01-28 01:57:53 +01:00
Olivier Dony 8e03852fd4 [I18N] Update translations from Launchpad 8.0 branches 2015-01-26 16:36:51 +01:00
Aaron Bohy 3cae676619 [FIX] Use local copies of png instead of fetching them from websites
Debian does not allow fetching data from external website at runtime.
This fixes the privacy-breach-generic lintian warnings for Debian packaging.
The removed youtube url was a dead link...
2015-01-23 11:23:04 +01:00
Aaron Bohy ef986fe9de [FIX] Account, portal_sale, sale, website_quote: local paypal gif
Add local copies of the paypal gif to the archive. This fix was required
for Debian packaging. It fixes the privacy-breach-donation lintian error.
2015-01-23 11:11:26 +01:00
Olivier Dony 495ec92251 [I18N] Update translations from Launchpad 8.0 branches 2015-01-21 15:36:54 +01:00
Olivier Dony 39f00b3637 [I18N] Update translation templates with latest terms
Total new terms: 270
Total deleted terms: 82
Total identical terms: 19653
Old total number of terms: 19735
New total number of terms: 19923
2015-01-21 15:31:22 +01:00
Olivier Dony d0cd92bb9f [I18N] Sync updated 7.0 translations from Launchpad 2015-01-07 17:57:28 +01:00
Denis Ledoux 5e65ee58eb [MERGE] forward port of branch saas-3 up to 32246d9 2015-01-07 15:33:50 +01:00
Denis Ledoux 32246d963d [MERGE] forward port of branch 7.0 up to 69bfc5e 2015-01-07 14:52:49 +01:00
Denis Ledoux 1a10a11018 [FIX] sale, sale_crm: propagate sales team for advance & on lines invoices
A _prepare method had to be introduced in the wizard for the lines invoicing method
2015-01-07 14:44:29 +01:00
Aaron Bohy ba37ae3cf3 [DEL] Cleaning: key 'images' removed from all __openerp__.py 2015-01-06 14:20:38 +01:00
Olivier Dony dcc74a00f8 [FIX] product, sale: access rights for product.price.history
Granting read-only access to Sales/Accounting Users is useless
as all employees already have it - removed. On the other hand
Sales Managers need write access to it in order to create
products, and they need it even when `sale` is not installed,
e.g. with `account` only.
Moved this access right to `product` module. The Sales
Manager group is defined in `base`, so that works.
2014-12-16 16:16:38 +01:00
sve-openerp d347e9c28c [IMP] sale,purchase: harmonize address layout in qweb reports
Shipping and invoice addresses header are now bold and sticked to the related
address.
2014-12-11 13:38:01 +01:00
sve-openerp 182adcdcd6 [FIX] account,sale: show payment term & fiscal position notes in reports
Complete commit 3d88a60
Display payment terms or fiscal position note instead of simple the name.
Fixes #3635
2014-12-10 14:28:20 +01:00
Denis Ledoux 4e9613609d [FIX] sale: rounded sales team invoiced gauge
The price_total field of the account invoice report is not rounded (it cannot be easily rounded, as this has to be done in the sql view)
In a multi currencies environment, this is possible that the price_total value has a lot of digits
We therefore round it manually, for the gauge of the sales team kanban view
2014-12-04 14:48:54 +01:00
Olivier Dony a6d24db305 [I18N] Update translations from Launchpad 8.0 branches 2014-11-19 17:49:12 +01:00
Josse Colpaert 2f5ca4380a Revert "[IMP] Remove unnecessary refresh statements because of new api"
This reverts commit b213438176.
2014-11-17 09:44:10 +01:00
Josse Colpaert b213438176 [IMP] Remove unnecessary refresh statements because of new api 2014-11-17 09:24:06 +01:00
Raphael Collet b8071bbaca [FIX] addons: incorrect new-api invocation of method write() with context
This fixes #3411.
2014-11-13 13:34:55 +01:00
Josse Colpaert 86f785ae1b [FIX] #3153 Digits in wizard should be those of moves,... / Recreate delivery order from sale / Delivery method on delivery order
[IMP] Provide better purchase order picking type

[IMP] Possibly a better product uos handling in the sale order line

[FIX] Recreate of delivery order when sales order in shipping exception

[FIX] Delivery method should be passed to delivery order
2014-11-13 11:50:01 +01:00
celm1990 d039249dd2 [FIX] fix wrong filter in search view (account/sale)
the field section_id is created in addon sale, but used in the account
reporting views.  This commit moves the search view definition
in the correct file.
2014-11-06 14:15:19 +01:00
Christophe Simonis 8e637bac92 [MERGE] forward port of branch saas-3 up to 21b1203 2014-10-29 19:33:02 +01:00
Denis Ledoux f01da83a5a [MERGE] forward port of branch 7.0 up to f4870f8 2014-10-28 17:58:50 +01:00
Denis Ledoux f4870f8418 [FIX] sale: when invoicing on lines, set order in progress when all lines invoiced
This fix is related to rev. b1df5aab6e
2014-10-28 17:57:08 +01:00
Denis Ledoux 663dc6a5b3 [MERGE] forward port of branch 7.0 up to b1df5aa 2014-10-28 15:37:11 +01:00
Julien Legros b1df5aab6e [FIX] sale: trigger all_lines signal when all lines are invoiced 2014-10-28 15:16:06 +01:00
Christophe Matthieu 23f9736372 [FIX] website_event_sale: display the discounted price in website.
Add price_reduce compute method on ticket and sale order line
2014-10-24 14:16:16 +02:00
Denis Ledoux 9d5fb65128 [FIX] sale: force condtion True for workflow activity trans_ship_ship_except
This is related to fix 43b0a63
2014-10-21 18:32:20 +02:00
Christophe Simonis 262eb662de [MERGE] forward port of branch 8.0 up to d80376a 2014-10-21 14:33:36 +02:00
Christophe Simonis 22c390285f [MERGE] forward port of branch 7.0 up to 78a29b3 2014-10-21 13:06:27 +02:00
Simon Lejeune 9c0e8f10e0 [FIX] sale: translate advance message on advance invoice 2014-10-16 11:04:56 +02:00
Olivier Dony 7439421ad2 [I18N] Update translations from Launchpad 8.0 branches 2014-10-08 17:52:25 +02:00
Olivier Dony b74d830eb2 [I18N] Update translation templates with latest term changes 2014-09-23 19:13:50 +02:00
Olivier Dony 1c5b5e4290 [I18N] Update translations from Launchpad 8.0 branches
server: rev. 26 rev-id launchpad_translations_on_behalf_of_openerp-20140923072744-tkfs0yinu8msjh09
addons: rev. 39 rev-id launchpad_translations_on_behalf_of_openerp-20140923072715-5j7qvnuvmmb1zzy1
web: rev. 23 rev-id launchpad_translations_on_behalf_of_openerp-20140923072757-jvh9l6r2x0vfcyhb
2014-09-23 13:42:05 +02:00
Olivier Dony 53aa92d3c9 [I18N] Update translations from Launchpad branches 2014-09-18 11:47:16 +02:00
Josse Colpaert 066af964bf [IMP] Purchase on incoming shipments with services added 2014-09-17 21:41:42 +02:00
Julien Legros 720e31d0fb [FIX] analytic: contract manager_id defaults to the context value 2014-09-17 15:32:45 +02:00
Julien Legros 0130ce4e84 [IMP] sale: quotation confirmed mail subtype defaults to True 2014-09-16 16:56:52 +02:00
Denis Ledoux 74072441cc [FIX] sale: backport of rev 709e22c32a
[FIX] sale: sale report view, wrong domain

Quotations are sale.order with state draft and sent
Sale orders are sale.order with state other than draft, sent and cancel
2014-09-15 16:57:51 +02:00
Olivier Dony 43b0a63fb8 [FIX] sale: force default values for dropped fields
Those values were dropped at rev 3b636a5 but
need to be forced back to default so older
databases get properly updated when upgrading.
2014-09-10 16:51:48 +02:00
Olivier Dony fac96241df [I18N] Update 8.0 translations with latest changes from Launchpad 2014-09-08 19:04:25 +02:00
Christophe Simonis 41afeec7f1 [MERGE] forward port of branch saas-5 up to 9363bc9 2014-09-04 18:03:24 +02:00
Christophe Simonis 9363bc9182 [MERGE] forward port of branch saas-3 up to 3d80dc2 2014-09-04 17:51:42 +02:00
Christophe Simonis 3d80dc2bbf [MERGE] forward port of branch 7.0 up to 59b76ee 2014-09-04 17:46:51 +02:00
Your Name 59b76ee927 [FIX] sale: keep page when confirming a sale order
To keep the pager and view changer after confirmation of a sale order, do not reload the view (quotation and sale order view are the same anyway)
Fixes #250
2014-09-04 17:34:46 +02:00
Josse Colpaert 114f66c277 Merge pull request #2027 from odoo-dev/8.0-wmsstaging7-jco
8.0 wmsstaging7 jco
2014-09-03 21:36:01 +02:00
Josse Colpaert 7e1919fe0f [IMP] Change static buttons with group_ids each time 2014-09-03 19:19:18 +02:00
Josse Colpaert 12d9333f48 [IMP] Clean 2014-09-03 19:18:17 +02:00
Josse Colpaert bd5550e832 [FIX] Services type procurements are also important to trigger sale wkf 2014-09-03 19:18:16 +02:00
Josse Colpaert 86b8e73482 [IMP] Clean need_procurement and add partner on procurement for Phantom with service 2014-09-03 19:18:16 +02:00
Christophe Simonis 8046b7367d [MERGE] forward port of branch saas-5 up to 7e117b1 2014-08-28 16:51:11 +02:00
Christophe Simonis 7e117b18a0 [MERGE] forward port of branch saas-3 up to ada9724 2014-08-28 16:21:27 +02:00
Nicolas Seinlet 23df2ec28a [FIX] sale: on create, set taxes if product_id_change called 2014-08-27 11:48:40 +02:00