Nicolas Martinelli 36caad2160 [FIX] sale: multiple fixes
1) Check unit price before linking SO line

We need to make sure that the unit price on the SO line is the same than
the unit price that will be applied for the new analytic line.

It is the case for an expense product which is invoiced at cost price to
the customer, for example a flight ticket. The user should be able to
link 2 flight tickets with different prices on the same SO, which is not
possible before this fix.

2) Convert account move line amount into currency of SO if necessary

3) Partial revert of 2d5776d248

We want to decrease the invoiced quantity if the refund is generated
from the SO, but not if the refund is generated from the invoice
directly. Indeed, if we decrease the quantity from a refund generated
from the invoice, this will make the SO line invoiceable again, which is
something we don't want.

Fortunately for us, a refund generated from an invoice is not linked to
the SO (see method _refund_cleanup_lines in account_invoice.py), so no
extra code is needed.

4) Iterate only once in the SO lines in order to find out the
invoice_status of the SO
2015-09-18 10:51:37 +02:00
2015-09-18 10:51:37 +02:00
2015-09-15 14:58:23 +02:00
2015-02-08 23:00:10 +01:00
2015-04-07 22:08:31 +02:00
2015-09-08 17:58:38 +02:00
2015-07-13 15:07:48 +02:00

Build Status Tech Doc Help Nightly Builds

Odoo

Odoo is a suite of web based open source business apps.

The main Odoo Apps include an Open Source CRM, Website Builder, eCommerce, Project Management, Billing & Accounting, Point of Sale, Human Resources, Marketing, Manufacturing, Purchase Management, ...

Odoo Apps can be used as stand-alone applications, but they also integrate seamlessly so you get a full-featured Open Source ERP when you install several Apps.

Getting started with Odoo

For a standard installation please follow the Setup instructions from the documentation.

If you are a developer you may type the following command at your terminal:

wget -O- https://raw.githubusercontent.com/odoo/odoo/master/odoo.py | python

Then follow the developer tutorials

For Odoo employees

To add the odoo-dev remote use this command:

$ ./odoo.py setup_git_dev

To fetch odoo merge pull requests refs use this command:

$ ./odoo.py setup_git_review
S
Description
No description provided
Readme LGPL-3.0
3.4 GiB
Languages
Python 49.6%
JavaScript 47.8%
SCSS 2%
CSS 0.3%
HTML 0.2%