-
-
Notifications
You must be signed in to change notification settings - Fork 413
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[12.0] [ADD] Account payment return reason action type
- Loading branch information
Showing
4 changed files
with
78 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
55 changes: 55 additions & 0 deletions
55
account_payment_return/views/payment_return_reason_view.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<!-- Copyright 2019 ACSONE SA/NV | ||
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). --> | ||
|
||
<odoo> | ||
|
||
<!-- Payment Return Reason Action Types --> | ||
<record model="ir.ui.view" id="payment_return_reason_action_type_form_view"> | ||
<field name="name">payment.return.reason.action.type.form</field> | ||
<field name="model">payment.return.reason.action.type</field> | ||
<field name="arch" type="xml"> | ||
<form> | ||
<sheet> | ||
<div class="oe_button_box" name="button_box"> | ||
<button name="toggle_active" type="object" | ||
class="oe_stat_button" icon="fa-archive"> | ||
<field name="active" widget="boolean_button"/> | ||
</button> | ||
</div> | ||
<group> | ||
<group> | ||
<field name="name"/> | ||
</group> | ||
</group> | ||
</sheet> | ||
</form> | ||
</field> | ||
</record> | ||
|
||
|
||
<record model="ir.ui.view" id="payment_return_reason_action_type_tree_view"> | ||
<field name="name">payment.return.reason.action.type.tree</field> | ||
<field name="model">payment.return.reason.action.type</field> | ||
<field name="arch" type="xml"> | ||
<tree> | ||
<field name="sequence" widget="handle"/> | ||
<field name="name"/> | ||
</tree> | ||
</field> | ||
</record> | ||
|
||
<record model="ir.actions.act_window" id="payment_return_reason_action_type_act_window"> | ||
<field name="name">Payment Return Reason Action Types</field> | ||
<field name="res_model">payment.return.reason.action.type</field> | ||
<field name="view_mode">tree,form</field> | ||
</record> | ||
|
||
<record model="ir.ui.menu" id="payment_return_reason_action_type_menu"> | ||
<field name="name">Payment Return Reason Action Types</field> | ||
<field name="parent_id" ref="account.menu_finance_configuration"/> | ||
<field name="action" ref="payment_return_reason_action_type_act_window"/> | ||
<field name="sequence" eval="32"/> | ||
</record> | ||
|
||
</odoo> |