-
Notifications
You must be signed in to change notification settings - Fork 106
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[MIG] shopinvader_customer_price: Migration to 14.0
- Loading branch information
1 parent
f357dc1
commit 0fa7318
Showing
6 changed files
with
21 additions
and
40 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,14 +2,14 @@ | |
# @author Simone Orsi <[email protected]> | ||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). | ||
|
||
from odoo.osv import expression | ||
|
||
from odoo.addons.base_rest.components.service import to_int | ||
from odoo.addons.component.core import Component | ||
from odoo.osv import expression | ||
|
||
|
||
class CustomerPriceService(Component): | ||
"""Shopinvader service to expose customer specific product prices. | ||
""" | ||
"""Shopinvader service to expose customer specific product prices.""" | ||
|
||
_name = "shopinvader.customer.price.service" | ||
_inherit = "base.shopinvader.service" | ||
|
@@ -51,7 +51,7 @@ def _json_parser(self): | |
|
||
def _get_price(self, record, fname): | ||
pricelist = self.shopinvader_backend._get_cart_pricelist(self.partner) | ||
fposition = self.shopinvader_backend._get_fiscal_position(self.partner) | ||
fposition = self.shopinvader_backend._get_fiscal_position_id(self.partner) | ||
company = self.shopinvader_backend.company_id | ||
return { | ||
self.invader_partner.role: record._get_price( | ||
|
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
4 changes: 2 additions & 2 deletions
4
shopinvader_customer_price/views/shopinvader_backend_views.xml
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