-
-
Notifications
You must be signed in to change notification settings - Fork 300
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add button to import invoice in journal dashboard
Improve README of account_invoice_download_weboob Fix mail gateway in multi-company environment
- Loading branch information
1 parent
91b6264
commit 0cc07e1
Showing
4 changed files
with
45 additions
and
4 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
33 changes: 33 additions & 0 deletions
33
account_invoice_import/views/account_journal_dashboard.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,33 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<!-- | ||
Copyright 2018 Akretion France | ||
@author: Alexis de Lattre <alexis.delattre@akretion.com> | ||
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). | ||
--> | ||
|
||
<odoo> | ||
|
||
|
||
<record id="account_journal_dashboard_kanban_view" model="ir.ui.view"> | ||
<field name="name">account_invoice_import.journal.dashboard</field> | ||
<field name="model">account.journal</field> | ||
<field name="inherit_id" ref="account.account_journal_dashboard_kanban_view"/> | ||
<field name="arch" type="xml"> | ||
<xpath expr="//t[@t-name='JournalBodySalePurchase']/div" position="inside"> | ||
<t t-if="journal_type == 'purchase'"> | ||
<br/> | ||
<button type="action" name="%(account_invoice_import_action)d" class="btn btn-primary btn-sm"> | ||
<span>Import Bill</span> | ||
</button> | ||
</t> | ||
</xpath> | ||
<xpath expr="//t[@t-name='JournalManage']//div[@class='col-xs-4 o_kanban_card_manage_section o_kanban_manage_new']//a[@name='action_create_new']" position="inside"> | ||
<a type="action" name="%(account_invoice_import_action)d"> | ||
<span t-if="journal_type == 'purchase'">Import Bill</span> | ||
</a> | ||
</xpath> | ||
</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