Skip to content

Commit

Permalink
[MOD] product_cost_utilities: update authos/contributors, fix compute
Browse files Browse the repository at this point in the history
  • Loading branch information
esthermm committed Jun 10, 2016
1 parent 81aab3c commit 45a5677
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
3 changes: 1 addition & 2 deletions product_cost_utilities/README.rst
Expand Up @@ -6,7 +6,7 @@
Product Cost Utilities
======================

* This module shows adds two new fields on products: "average margin" and
* This module adds two new fields on products: "average margin" and
"manual margin".


Expand All @@ -18,4 +18,3 @@ Contributors
------------
* Esther Martín <esthermartin@avanzosc.es>
* Ana Juaristi <ajuaristio@gmail.com>
* Pedro M. Baeza <pedro.baeza@serviciosbaeza.com>
4 changes: 1 addition & 3 deletions product_cost_utilities/__openerp__.py
Expand Up @@ -8,12 +8,10 @@
"category": "Custom Module",
"license": "AGPL-3",
"author": "OdooMRP team,"
"AvanzOSC,"
"Serv. Tecnol. Avanzados - Pedro M. Baeza",
"AvanzOSC",
"website": "http://www.odoomrp.com",
"contributors": [
"Esther Martín <esthermartin@avanzosc.es>",
"Pedro M. Baeza <pedro.baeza@serviciosbaeza.com",
"Ana Juaristi <anajuaristi@avanzosc.es>",
],
"depends": [
Expand Down
2 changes: 1 addition & 1 deletion product_cost_utilities/models/product.py
Expand Up @@ -13,7 +13,7 @@ class ProductProduct(models.Model):
@api.depends('list_price', 'cost_price')
def _compute_average_margin(self):
for product in self:
product.manual_margin = product.list_price - product.cost_price
product.average_margin = product.list_price - product.cost_price

@api.multi
@api.depends('list_price', 'manual_standard_cost')
Expand Down

0 comments on commit 45a5677

Please sign in to comment.