[CLEAN] sale: removed code that should not lie here. website code has nothing to do in the base sale module. website_sale: renamed website_sale file into sale_order and added the get_website_data method.
bzr revid: tde@openerp.com-20131213110629-rhgpqpy2dj03ng8h
This commit is contained in:
parent
2c6eb6407f
commit
fab63158a1
|
@ -39,10 +39,6 @@ class sale_order(osv.osv):
|
|||
},
|
||||
}
|
||||
|
||||
# Hook for website_sale to inherit (website_sale_delivery)
|
||||
def _get_website_data(self, cr, uid, order, context):
|
||||
return {}
|
||||
|
||||
def copy(self, cr, uid, id, default=None, context=None):
|
||||
if not default:
|
||||
default = {}
|
||||
|
|
|
@ -2,5 +2,5 @@ import website_styles
|
|||
import payment_transaction
|
||||
import product
|
||||
import product_attributes
|
||||
import website_sale
|
||||
import sale_order
|
||||
import website
|
||||
|
|
|
@ -29,6 +29,9 @@ class sale_order(osv.Model):
|
|||
'website_session_id': fields.char('Session UUID4'),
|
||||
}
|
||||
|
||||
def _get_website_data(self, cr, uid, order, context):
|
||||
return {}
|
||||
|
||||
def get_total_quantity(self, cr, uid, ids, context=None):
|
||||
order = self.browse(cr, uid, ids[0], context=context)
|
||||
return int(sum(l.product_uom_qty for l in (order.order_line or [])))
|
Loading…
Reference in New Issue