[FIX] account_peppol: Fix peppol kanban button display
Problem --------- When zoomed in, the peppol buttons would be displayed inline with previous buttons in the journal cards. This is not user friendly. Objective --------- Make sure the buttons are displayed under (new line) the previous one on the kanban card. Solution --------- Encompase the buttons in div tags. closes odoo/odoo#139567 Signed-off-by: Habib Ayob (ayh) <ayh@odoo.com>
This commit is contained in:
@@ -14,11 +14,15 @@
|
||||
<xpath expr="//t[@id='account.JournalBodySalePurchase']//div" position="inside">
|
||||
<t t-if="record.account_peppol_proxy_state.raw_value == 'active'">
|
||||
<t t-if="journal_type == 'sale'">
|
||||
<a type="object" name="peppol_get_message_status" groups="account.group_account_invoice">Fetch Peppol invoice status</a>
|
||||
<div class="w-100">
|
||||
<a type="object" name="peppol_get_message_status" groups="account.group_account_invoice">Fetch Peppol invoice status</a>
|
||||
</div>
|
||||
</t>
|
||||
<t t-elif="journal_type == 'purchase'">
|
||||
<t t-if="record.is_peppol_journal.raw_value">
|
||||
<a type="object" name="peppol_get_new_documents" groups="account.group_account_invoice">Fetch from Peppol</a>
|
||||
<div class="w-100">
|
||||
<a type="object" name="peppol_get_new_documents" groups="account.group_account_invoice">Fetch from Peppol</a>
|
||||
</div>
|
||||
</t>
|
||||
</t>
|
||||
</t>
|
||||
|
||||
Reference in New Issue
Block a user