stock_account_usability: show to_refund on stock.move form

This commit is contained in:
Alexis de Lattre
2021-05-21 11:29:18 +02:00
parent 42e014bcb1
commit de2e5f2121
3 changed files with 28 additions and 8 deletions

View File

@@ -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,
}

View 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>

View File

@@ -1,2 +0,0 @@
from . import stock_return_picking
from . import stock_quantity_history