-
-
Notifications
You must be signed in to change notification settings - Fork 387
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[MIG] bank_statement_check_number: Migration to 16.0
- Loading branch information
1 parent
0447cce
commit 86790b0
Showing
4 changed files
with
22 additions
and
24 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
40 changes: 19 additions & 21 deletions
40
bank_statement_check_number/views/account_bank_statement_views.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 |
---|---|---|
@@ -1,32 +1,30 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<odoo> | ||
<record id="view_bank_statement_form" model="ir.ui.view"> | ||
<record id="view_bank_statement_tree" model="ir.ui.view"> | ||
<field name="name">account.bank.statement.form</field> | ||
<field name="model">account.bank.statement</field> | ||
<field name="inherit_id" ref="account.view_bank_statement_form" /> | ||
<field name="model">account.bank.statement.line</field> | ||
<field | ||
name="inherit_id" | ||
ref="account_statement_base.account_bank_statement_line_tree" | ||
/> | ||
<field name="arch" type="xml"> | ||
<xpath | ||
expr="//field[@name='line_ids']/tree/field[@name='date']" | ||
position="after" | ||
> | ||
<field | ||
name="check_number" | ||
optional="show" | ||
attrs="{'readonly': [('parent.state', '!=', 'open')]}" | ||
/> | ||
</xpath> | ||
<field name="date" position="after"> | ||
<field name="check_number" optional="show" /> | ||
</field> | ||
</field> | ||
</record> | ||
|
||
<record id="view_bank_statement_line_tree" model="ir.ui.view"> | ||
<field name="name">account.bank.statement.line.tree</field> | ||
<record id="account_bank_statement_line_form" model="ir.ui.view"> | ||
<field name="name">account.bank.statement.form</field> | ||
<field name="model">account.bank.statement.line</field> | ||
<field name="priority">8</field> | ||
<field name="inherit_id" ref="account.view_bank_statement_line_tree" /> | ||
<field | ||
name="inherit_id" | ||
ref="account_statement_base.account_bank_statement_line_form" | ||
/> | ||
<field name="arch" type="xml"> | ||
<xpath expr="//field[@name='date']" position="after"> | ||
<field name="check_number" /> | ||
</xpath> | ||
<field name="date" position="after"> | ||
<field name="check_number" optional="show" /> | ||
</field> | ||
</field> | ||
</record> | ||
|
||
</odoo> |
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 @@ | ||
odoo-addon-account_move_line_check_number@git+https://github.com/ForgeFlow/[email protected]_move_line_check_number#subdirectory=setup/account_move_line_check_number |