Skip to content

Commit

Permalink
stock_account_usability: show to_refund on stock.move form
Browse files Browse the repository at this point in the history
  • Loading branch information
alexis-via committed May 21, 2021
1 parent 42e014b commit de2e5f2
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 8 deletions.
11 changes: 5 additions & 6 deletions stock_account_usability/__manifest__.py
Original file line number Diff line number Diff line change
@@ -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 <[email protected]>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

Expand All @@ -15,14 +15,13 @@
The usability enhancements include:
NONE
- show to_refund on stock.move form view
This module has been written by Alexis de Lattre from Akretion <[email protected]>.
""",
'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 changes: 23 additions & 0 deletions stock_account_usability/views/stock_move.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright 2021 Akretion France (http://www.akretion.com/)
@author: Alexis de Lattre <[email protected]>
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>
2 changes: 0 additions & 2 deletions stock_account_usability/wizard/__init__.py

This file was deleted.

0 comments on commit de2e5f2

Please sign in to comment.