Commit Graph
99161 Commits
Author SHA1 Message Date
Christophe Simonis 9a850b3f4a [FIX] mass_mailing: correct computation of stat state. 2015-05-11 16:57:11 +02:00
Matthieu Dietrich d1c4d16a3a [FIX] account: Don't copy many2many when copying statement line
When duplicating confirmed bank statement lines,
the many2many `move_ids` links were preserved, and,
therefore, there were links between the duplicated
lines and the move entries of the original lines.

Closes #6617
2015-05-11 16:54:30 +02:00
Christophe Simonis 04b252b72c [FIX] Cursor.closed property
`_obj` doesn't exists anymore when the cursor is effectively closed.
2015-05-11 16:24:33 +02:00
Christophe Matthieu 6e1f2463a6 Merge branch 'master-fix-x2many-double-blur-chm' 2015-05-11 15:52:46 +02:00
Nicolas Martinelli 46d446fd47 [FIX] mrp_repair: add calculation of taxes in subtotal, reset taxes after invoice creation
The calculation of the taxes is added in the calculation of the subtotal.
When the invoice is created, a reset of the taxes is performed so the user does not have to do
it himself.
opw-634711
2015-05-11 15:51:32 +02:00
Christophe Simonis 354e3e4791 [FIX] account: correct code indentation.
Error introduced during previous forward port.
2015-05-11 15:50:30 +02:00
Nicolas Lempereur f3f49ad656 [IMP] website_forum: don't allow empty title
Using an empty title for a question shloud not happen and can cause some
access issue (since in several locations the question title is a link).

closes #6627
opw-634687
2015-05-11 15:21:18 +02:00
Nicolas Lempereur ef34e5827e [FIX] website_forum: css in case of empty title
If the title of a thread was empty, some floating used in the post list
caused an appearance issue.

opw-634687
2015-05-11 15:20:48 +02:00
Christophe Simonis 0da722aa6a [MERGE] forward port of branch 8.0 up to bff6dff 2015-05-11 15:12:24 +02:00
Goffin Simon bff6dffbb4 [FIX] website_sale: Coupon Code
The pricelist linked to the coupon code is just applied in the cart.
In the shop, the pricelist of the user is applied.

opw:634639
2015-05-11 14:25:11 +02:00
Goffin Simon af86f029c9 [FIX] account: Translation of journal name
The journal name showed in the pop over of the reconciliation bank statement wizard
must be in the language of the user.

opw:634378
2015-05-11 14:16:15 +02:00
Goffin Simon 740efb9349 [FIX] point_of_sale: bad indentation 2015-05-11 14:10:12 +02:00
Goffin Simon 163e7ee5ed [FIX] point_of_point: POS sales details
Total of the day must include the invoiced lines.

opw:634098
2015-05-11 13:52:44 +02:00
Julien De Coster 2d260b78d8 [FIX] Don't send mail to opt-outed contacts in mass mailing 2015-05-11 13:45:28 +02:00
Denis Ledoux 9d2dbda8ca [FIX] stock_dropshipping: not enough stock warning for MTOs
When 'stock_dropshipping' was installed, in a sale order,
choosing a product being stockable + buy + MTOs returned
the "Not Enough Stock" warning, while it shouldn't.

It's because the according method `_check_rounting` was
overriden in this module, with a @api.one, which aggregates, while
the method expects to return a simple boolean even for a list of
multiple ids.
Converting the method to @api.multi solves the issue.

opw-639426
2015-05-11 13:22:48 +02:00
Raphael Collet fdc6ba1820 [FIX] http: make sure to instantiate an environment before calling method
This fixes an issue in property `field.digits` that cannot find a valid cursor
to the database.  Forcing the instantiation of an environment makes the cursor
retrievable.
2015-05-11 12:32:00 +02:00
Nicolas Martinelli 8ab987d828 [FIX] stock_account: set the same unit price for extra moves than for moves linked to SO
When extra moves are created, the unit price of the invoice line for these extra moves is now the
same than the unit price of the moves generated from the SO.

opw-634227
2015-05-11 12:23:19 +02:00
Cedric Snauwaert fe48e2ae28 [FIX] account: some cosmetics change 2015-05-11 11:29:19 +02:00
Christophe Matthieu 2726edc6b0 [FIX] web: x2many: can't save document if a lines is removed with an ohter activate line. The widget try to blur a second time when the user click on save (need to check if allready blurred) 2015-05-11 11:20:24 +02:00
Jeremy Kersten 2e49fc09ff [FIX] calendar: set context if none
Avoid traceback if no context in get_recurrent_date_by_event when code do:
    context.get('xx')
2015-05-11 10:41:02 +02:00
Nicolas Seinlet e7886c6d75 [FIX] doc, new API + kanban error
- fix default_group_by in kanban
- use new api in server actions
- missing @api.multi in @compute example

Closes #6640
2015-05-11 10:17:55 +02:00
Nicolas Martinelli b8779f0c53 [FIX] stock: keep inventory options consistent
Make sure that appropriate fields are emptied when switching to in between inventory filters.
This prevents incoherent results due to hidden fields which were filled in a previous selection.

opw-634388
Fixes #6512
2015-05-11 08:30:10 +02:00
Nicolas Martinelli 61a5bbfb21 [FIX] stock_account: add taxes to invoice when creating an invoice from delivery
Generating an invoice from a delivery now add the taxes to the invoice.
This impacts a returned purchase for which the invoice is created from the delivery, and a sale
order which is set to create invoice on delivery.
opw-634565
2015-05-11 08:26:14 +02:00
Jeremy Kersten 6e31be7b5e [FIX] website_sale_delivery: fix xpath broken because of previous commit 55725bd 2015-05-09 21:38:06 +02:00
Jeremy Kersten 7d6532d1eb [FIX] website_sale: uniformization of total
Display the same total style everywhere...
2015-05-08 19:30:54 +02:00
Jeremy Kersten e71b7c4a39 [FIX] website_sale: don't cache partner and check that order not confirmed
Cache for browse record are not optimal, should be id.
Don't need to cache the partner according to chs, browse will cached itself.

Be sure to restore previous sale order only if the sale order are always
in draft mode, else checkout will force redirect to /shop anyway.
2015-05-08 19:30:18 +02:00
Jeremy Kersten a50479db77 [FIX] mail_template: use old api for context_timestamp
New api take (record, timestamp) as param.
So cr was the record, and uid the timestamp...
2015-05-08 19:28:27 +02:00
Christophe Simonis 94aae97c04 [MERGE] forward port of branch saas-3 up to e2bfb96 2015-05-08 18:52:57 +02:00
Christophe Simonis e2bfb969ed [MERGE] forward port of branch 7.0 up to 6e23b2a 2015-05-08 18:10:30 +02:00
Yannick Tivisse 21cbaa08f1 [IMP] web_linkedin : remove the related description 2015-05-08 17:31:30 +02:00
Antony Lesuisse d756bab4d1 [ADD] account_asset: add mrr and dates on invoice_line 2015-05-08 17:30:58 +02:00
Chirag Dodiya 6120babb45 [IMP] account_asset: new api conversion, added asset type 2015-05-08 17:30:54 +02:00
Christophe Simonis 1b5576af46 [FIX] sql_db: add closed property on Cursor. 2015-05-08 16:50:15 +02:00
Denis Ledoux 4e015bd96e [FIX] payment_adyen: live Adyen payment acquirer URL
The production payment page of Adyen is not
`https://prod.adyen.com/hpp/pay.shtml`
but
`https://live.adyen.com/hpp/pay.shtml`

opw-634894
2015-05-08 16:41:20 +02:00
Denis Ledoux 63db719151 [FIX] account: Exchanges rates gain/loss during supplier reconciliations
This revision is related to dd47b6f5bc.

The above revision was allmost correct, except that, in a supplier
invoices, the `amount_currency` of the invoice is negative,
and the one of the bank statement is possitive.

To check that both are equal, we should subtract one to each other,
and check that the diff is 0, but both part need to be the
absolute value.

opw-634263
closes #6533
2015-05-08 16:13:03 +02:00
Jeremy Kersten f8e56af2e2 [FIX] website_sale: allow to customize the ppg
The controller /shop[/category][/page] can now take a parameter in get ppg (eg: ?ppg=10)
to change the number of product displayed by page.

Should be a parameter in a table key/value like ir_config_parameter but nobody want to do it.
2015-05-08 14:56:01 +02:00
Olivier Dony d0c64049b9 [FIX] website_sale: missing portal access to payment terms and fiscal positions
The front-end portal menu "My Orders" allows portal
users to print their invoices. This requires read
access to fiscal positions and payment terms, otherwise
they just get a 500 Internal Error.
2015-05-08 13:44:33 +02:00
Nicolas Lempereur f2b8144bcc [IMP] crm: set user partner team as default team
This fix sets the first sales team of the current user as the default sales
team if no other one is given.

For models: crm.lead, crm.phonecall, crm.claim, crm.helpdesk,
project.issue, sale.order, account.invoice

Existing methods are removed and new methods in sales team model
(crm.team) have to be called when needed.

closes #6438
opw-633562
2015-05-08 12:59:30 +02:00
Olivier Dony 5b19ae8a59 [FIX] hw_*: enforce Python dependencies + disable if missing dependency
Prevents installing the hw_* modules at all when the python
dependencies are missing. If they were already installed
do not start the hardware threads to avoid wasting resources
and logging errors
2015-05-08 12:49:19 +02:00
Olivier Dony 5275c10e70 [FIX] hw_proxy: routes shadowed by same method name 2015-05-08 12:39:32 +02:00
Jeremy Kersten 20d5878aa2 [IMP] website_sale: remember last sale order
At next login, user will find again the last cart if always existing.
2015-05-08 12:17:46 +02:00
Jeremy Kersten bcb395616b [ADD] website_sale: manage pricelist by website.
Allow to specify which pricelist can be used on wich website for which countries
2015-05-08 12:14:38 +02:00
Jeremy Kersten 5612b5ff0a [IMP] base: get a list of fields used in adress format 2015-05-08 12:14:38 +02:00
Jeremy Kersten 223f65ec29 [FIX] website_sale: display real price unit.
Now we display the price_reduce from the sale order line
and not the unit price.

If a discount has been added to the quotation, the user had
in the front end not the real price for the line, but the
discounted total which one is the total of the sale order.

So we need to display the final unit price (= reduce_price) to
be consistent with the total price displayed.
2015-05-08 12:14:38 +02:00
Jeremy Kersten a6b1141cb7 [FIX] website_sale: don't call get_unit_price at checkout
Pricelist has been already applied in the sale order, so not needed.

If we refresh with the price computed by pricelist (gup), in
the case of a discount setted on the quotation order, the gup price
will override the real price from sale order by a price.
2015-05-08 12:14:38 +02:00
Jeremy Kersten c2de4e255c [REF] py linter 2015-05-08 12:14:38 +02:00
Nicolas Lempereur a1fab04894 [FIX] web: view list lines in media print
List view elements were not displayed when printing a list view via the
browser interface.

Also now, with firefox (and maybe other browser but not with webkit
based ones) the page break should not happen in the middle of a row
(hence something cutting a sentence vertically on two pages).

closes #6581
opw-634588
2015-05-08 11:59:59 +02:00
Gaurav Panchal 3fe06da634 [IMP] project,project_issue,sale: display the current contract state on some various objects like issues or tasks.
Implements a dynamic widget for selection fields to display this state with color codes.
2015-05-08 11:20:54 +02:00
Nicolas Lempereur 5804246e0f [FIX] website_membership: perf, pagination
This fixes :
 * pagination only on /members and sometimes with bad page count,
 * free members could not be searched (were always all displayed),
 * all elements are displayed even if there is a pagination,
 * for members without country, errors happened in some use case,
 * when too much locations were on a map (>2000) it failed,
 * numbers of members by countries was not displayed for guest.

And also as performance improvemnts:
 * only query all partners when the map is enabled (customize > left
   world map),
 * limit partners put on the map to 2000 (even then it's a lot for
   google maps),
 * don't browse all membership_line to get res_partner but use a query.

opw-634653
2015-05-08 11:10:53 +02:00
Daniel-CA 68599dcd43 [FIX] mrp: avoid float representation error
Avoid ZeroDivisionError if a move is confirmed with quantity of 0 (when stored
in database where the rounding is done by the precision defined on product_qty
field.
Fixes #6439
2015-05-08 10:47:32 +02:00