'Store the standard price change in order to be able to retrieve the cost of a product for a given date'

@api.multi
def _set_standard_price(self, value):

    PriceHistory = self.env['product.price.history']
    for product in self:
        PriceHistory.create({'product_id': product.id, 'cost': value, 'company_id': self._context.get('force_company', self.env.user.company_id.id)})
