stock_account_usability: show to_refund on stock.move form
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
# Copyright 2019-2020 Akretion France (http://www.akretion.com)
|
||||
# Copyright 2019-2021 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).
|
||||
|
||||
@@ -15,14 +15,13 @@ Stock Account Usability
|
||||
|
||||
The usability enhancements include:
|
||||
|
||||
NONE
|
||||
- show to_refund on stock.move form view
|
||||
|
||||
This module has been written by Alexis de Lattre from Akretion <alexis.delattre@akretion.com>.
|
||||
""",
|
||||
'author': 'Akretion',
|
||||
'website': 'http://www.akretion.com',
|
||||
'depends': ['stock_account'],
|
||||
'data': [
|
||||
],
|
||||
'installable': False,
|
||||
'depends': ['stock_account', 'stock_usability'],
|
||||
'data': ['views/stock_move.xml'],
|
||||
'installable': True,
|
||||
}
|
||||
|
||||
23
stock_account_usability/views/stock_move.xml
Normal file
23
stock_account_usability/views/stock_move.xml
Normal file
@@ -0,0 +1,23 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
Copyright 2021 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_move_form" model="ir.ui.view">
|
||||
<field name="name">stock_account_usability.stock.move.form</field>
|
||||
<field name="model">stock.move</field>
|
||||
<field name="inherit_id" ref="stock_usability.view_move_form" />
|
||||
<field name="arch" type="xml">
|
||||
<field name="price_unit" position="after">
|
||||
<field name="to_refund" readonly="1"/>
|
||||
</field>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
|
||||
</odoo>
|
||||
@@ -1,2 +0,0 @@
|
||||
from . import stock_return_picking
|
||||
from . import stock_quantity_history
|
||||
Reference in New Issue
Block a user