~vauxoo/addons-vauxoo/7.0-account_move_folio-dev-hbto

« back to all changes in this revision

Viewing changes to product_historical_price/product.py

  • Committer: Julio Serna
  • Date: 2013-04-18 22:21:43 UTC
  • mto: This revision was merged to the branch mainline in revision 543.
  • Revision ID: julio@vauxoo.com-20130418222143-l7pwf292hb43n1dc
[V7-MIGRATION]

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
#    You should have received a copy of the GNU Affero General Public License
23
23
#    along with this program.  If not, see <http://www.gnu.org/licenses/>.
24
24
##########################################################################
25
 
from osv import osv
26
 
from osv import fields
27
 
from tools.translate import _
 
25
from openerp.osv import fields, osv
 
26
from openerp.tools.translate import _
 
27
 
28
28
import decimal_precision as dp
29
29
import pooler
30
30
import time
31
31
import math
32
32
 
33
33
 
34
 
class product_historical(osv.osv):
 
34
class product_historical(osv.Model):
35
35
    """
36
36
    product_historical
37
37
    """
77
77
        'cost_historical_ids': fields.one2many('product.historic.cost', 'product_id', 'Historical Prices'),
78
78
 
79
79
    }
80
 
product_historical()
81
 
 
82
 
 
83
 
class product_historic_price(osv.osv):
 
80
 
 
81
 
 
82
class product_historic_price(osv.Model):
84
83
    _order = "name desc"
85
84
    _name = "product.historic.price"
86
85
    _description = "Historical Price List"
95
94
    _defaults = {'name': lambda *a: time.strftime('%Y-%m-%d %H:%M:%S'),
96
95
                 }
97
96
 
98
 
product_historic_price()
99
 
 
100
 
 
101
 
class product_historic_cost(osv.osv):
 
97
 
 
98
 
 
99
class product_historic_cost(osv.Model):
102
100
    _order = "name desc"
103
101
    _name = "product.historic.cost"
104
102
    _description = "Historical Price List"
113
111
    _defaults = {'name': lambda *a: time.strftime('%Y-%m-%d %H:%M:%S'),
114
112
                 }
115
113
 
116
 
product_historic_cost()