[MOV] website_sale: moved payment_transaction code into its own model file

bzr revid: tde@openerp.com-20131127121820-tgulogxz5x0ikdxd
This commit is contained in:
Thibault Delavallée
2013-11-27 13:18:20 +01:00
parent a61541a86f
commit cea8f80476
3 changed files with 12 additions and 9 deletions
+1
View File
@@ -1,4 +1,5 @@
import website_styles
import payment_transaction
import product
import product_attributes
import website_sale
@@ -0,0 +1,11 @@
# -*- coding: utf-8 -*-
from openerp.osv import orm, fields
class PaymentTransaction(orm.Model):
_inherit = 'payment.transaction'
_columns = {
# link with the sale order
'sale_order_id': fields.many2one('sale.order', 'Sale Order'),
}
-9
View File
@@ -17,12 +17,3 @@ class Website(orm.Model):
'pricelist_id': fields.function(
_get_pricelist, type='many2one', obj='product.pricelist')
}
class PaymentTransaction(orm.Model):
_inherit = 'payment.transaction'
_columns = {
# link with the sale order
'sale_order_id': fields.many2one('sale.order', 'Sale Order'),
}