forked from OCA/purchase-workflow
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[MIG] product_supplierinfo_discount 10.0
- Loading branch information
1 parent
87e22fe
commit 4b6bfad
Showing
7 changed files
with
18 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
# Pedro M. Baeza <[email protected]> | ||
# © 2016 ACSONE SA/NV (<http://acsone.eu>) | ||
# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html | ||
from openerp import models, api | ||
from odoo import models, api | ||
|
||
|
||
class PurchaseOrderLine(models.Model): | ||
|
@@ -18,7 +18,6 @@ def _onchange_quantity(self): | |
res = super(PurchaseOrderLine, self)._onchange_quantity() | ||
if self.product_id: | ||
product_supplierinfo = self.product_id._select_seller( | ||
self.product_id, | ||
partner_id=self.partner_id, quantity=self.product_qty, | ||
date=self.order_id.date_order and | ||
self.order_id.date_order[:10], | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,11 +3,11 @@ | |
# Pedro M. Baeza <[email protected]> | ||
# © 2016 ACSONE SA/NV (<http://acsone.eu>) | ||
# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html | ||
import openerp.tests.common as common | ||
from openerp import fields | ||
from odoo.tests.common import TransactionCase | ||
from odoo import fields | ||
|
||
|
||
class TestProductSupplierinfoDiscount(common.TransactionCase): | ||
class TestProductSupplierinfoDiscount(TransactionCase): | ||
|
||
def setUp(self): | ||
super(TestProductSupplierinfoDiscount, self).setUp() | ||
|