Show property_cost_method on product form view

This commit is contained in:
Alexis de Lattre
2020-09-11 14:33:05 +02:00
parent 0ae76be885
commit 1074fcba21
2 changed files with 30 additions and 2 deletions

View File

@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
# Copyright 2019 Akretion (http://www.akretion.com)
# Copyright 2019-2020 Akretion France (http://www.akretion.com)
# @author Alexis de Lattre <alexis.delattre@akretion.com>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
@@ -18,6 +18,8 @@ The usability enhancements include:
* activate the refund option by default in return wizard on pickings
* show field *property_cost_method* on product form view
* add ability to select a stock location on the inventory valuation report
@@ -26,6 +28,9 @@ This module has been written by Alexis de Lattre from Akretion <alexis.delattre@
'author': 'Akretion',
'website': 'http://www.akretion.com',
'depends': ['stock_account'],
'data': ['wizard/stock_quantity_history_view.xml'],
'data': [
'product_view.xml',
'wizard/stock_quantity_history_view.xml',
],
'installable': True,
}

View File

@@ -0,0 +1,23 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright 2020 Akretion France (http://www.akretion.com/)
@author: Alexis de Lattre <alexis.delattre@akretion.com>
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
-->
<odoo>
<record id="view_template_property_form" model="ir.ui.view">
<field name="name">stock_account.product.template.form</field>
<field name="model">product.template</field>
<field name="inherit_id" ref="stock_account.view_template_property_form"/>
<field name="arch" type="xml">
<field name="property_cost_method" position="attributes">
<attribute name="invisible">0</attribute>
</field>
</field>
</record>
</odoo>