[FIX] stock_account: Wrong label

When the internal category of a product is in costing method = "Average Price"
and Inventory Valuation = "Perpetual(automated)", a button with the label
"Compute from average price" was displayed. But when clicking on this button,
it just allows to set the standard price. So the label of this button must be
"Set standard price".

opw:709329
This commit is contained in:
Goffin Simon
2017-02-22 14:09:18 +01:00
parent f471535054
commit d111c2fe02
+2 -2
View File
@@ -50,7 +50,7 @@
groups="stock_account.group_inventory_valuation"/>
</div>
<div name="standard_price_uom" position="after">
<button string="Compute from average price" type="action"
<button string="Set standard price" type="action"
name="%(action_view_change_standard_price)d"
attrs="{'invisible':['|', '|', ('valuation','!=', 'real_time'), ('cost_method', 'not in', ['average']), ('product_variant_count', '>', 1)]}"
class="oe_link oe_read_only" colspan="2"
@@ -89,7 +89,7 @@
groups="stock_account.group_inventory_valuation"/>
</field>
<field name="standard_price" position="after">
<button string="Compute from average price" type="action"
<button string="Set standard price" type="action"
name="%(action_view_change_standard_price)d"
attrs="{'invisible':['|',('valuation','!=', 'real_time'), ('cost_method', 'not in', ['average'])]}"
class="oe_link oe_read_only" colspan="2"