Merge lp:~openerp-dev/openobject-addons/7.0-opw-585951-pna into lp:openobject-addons/7.0

Proposed by Pinakin Nayi (OpenERP)
Status: Work in progress
Proposed branch: lp:~openerp-dev/openobject-addons/7.0-opw-585951-pna
Merge into: lp:openobject-addons/7.0
Diff against target: 12 lines (+1/-1)
1 file modified
sale/sale.py (+1/-1)
To merge this branch: bzr merge lp:~openerp-dev/openobject-addons/7.0-opw-585951-pna
Reviewer Review Type Date Requested Status
Naresh(OpenERP) (community) Needs Fixing
Review via email: mp+147831@code.launchpad.net

Description of the change

Hello,

I fixed issue in sale order line.
To Reproduce :
 - choose a product, then enter a price, then want to change the quantity, and the price is reset to the default price from the product.

Thanks,
pna

To post a comment you must log in.
8685. By Pinakin Nayi (OpenERP)

[MERGE]with main addons

Revision history for this message
Naresh(OpenERP) (nch-openerp) wrote :

Hello Pinakin,

The same improvement should be done for purchase too.

Thanks,

review: Needs Fixing

Unmerged revisions

8685. By Pinakin Nayi (OpenERP)

[MERGE]with main addons

8684. By Pinakin Nayi (OpenERP)

[FIX]sale:sale order line if change in qty then it not update price

8683. By Pinakin Nayi (OpenERP)

[REVERT]revert changes

8682. By Pinakin Nayi (OpenERP)

[FIX]sale:in sale order line select product than change in price now if change qty than it takes default price

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'sale/sale.py'
2--- sale/sale.py 2013-02-07 08:41:29 +0000
3+++ sale/sale.py 2013-02-12 05:37:28 +0000
4@@ -942,7 +942,7 @@
5 warn_msg = _('You have to select a pricelist or a customer in the sales form !\n'
6 'Please set one before choosing a product.')
7 warning_msgs += _("No Pricelist ! : ") + warn_msg +"\n\n"
8- else:
9+ elif not flag:
10 price = self.pool.get('product.pricelist').price_get(cr, uid, [pricelist],
11 product, qty or 1.0, partner_id, {
12 'uom': uom or result.get('product_uom'),