Skip to content

Commit

Permalink
[IMP]Improved code as per v9 standard.
Browse files Browse the repository at this point in the history
  • Loading branch information
MeetSCS committed Apr 1, 2016
1 parent c89cd10 commit 759c4b6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions website_sale_product_brand/models/website.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@
# © 2016 Serpent Consulting Services Pvt. Ltd. (http://www.serpentcs.com)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

from openerp import models
from openerp import models, api
from openerp.http import request


class WebSite(models.Model):
_inherit = 'website'

def sale_product_domain(self, cr, uid, ids, context=None):
domain = super(WebSite, self).sale_product_domain(cr, uid, ids=ids,
context=context)
@api.multi
def sale_product_domain(self):
domain = super(WebSite, self).sale_product_domain()
if 'brand_id' in request.context:
domain.append(
('product_brand_id', '=', request.context['brand_id']))
Expand Down

0 comments on commit 759c4b6

Please sign in to comment.