- added a website_order_line on sale.order model, that are the lines to display and use in the front-end. This allows to display only products (and not delivery costs), and to have a correct badge for the number od products. - cleaned ecommerce website code and method name. Still some cleaning to do I think. - fixed some issues in partner and shipping info management, now using CheckoutInfo more cleanly - fixed the process of choosing the carrier bzr revid: tde@openerp.com-20131218132150-f4br0099p2caf43i
11 lines
358 B
Python
11 lines
358 B
Python
# -*- coding: utf-8 -*-
|
|
from openerp.osv import orm
|
|
|
|
|
|
class Website(orm.Model):
|
|
_inherit = 'website'
|
|
|
|
def ecommerce_get_product_domain(self):
|
|
# remove product event from the website content grid and list view (not removed in detail view)
|
|
return ['&'] + super(Website, self).ecommerce_get_product_domain() + [('event_ok', '=', False)]
|