[FIX] account: Show the customer name instead of journal name in kanban view
Issue
- Install "Accounting"
- Go to "Accounting Overview/Invoices"
- Switch to kanban view
Cause
The wrong field ("journal_id") was present instead of "partner_id"
Solution
Change with "partner_id"
opw-2367738
closes odoo/odoo#60970
X-original-commit: e4ac9891450d96149551d19ac2d2f74f410f877c
Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
Signed-off-by: Achraf <abz-odoo@users.noreply.github.com>
This commit is contained in:
@@ -468,6 +468,7 @@
|
||||
<field name="arch" type="xml">
|
||||
<kanban class="o_kanban_mobile" sample="1">
|
||||
<field name="journal_id"/>
|
||||
<field name="partner_id"/>
|
||||
<field name="ref"/>
|
||||
<field name="date"/>
|
||||
<field name="state"/>
|
||||
@@ -476,7 +477,12 @@
|
||||
<div t-attf-class="oe_kanban_global_click">
|
||||
<div class="row mb4">
|
||||
<div class="col-6 o_kanban_record_headings">
|
||||
<strong><span><field name="journal_id"/></span></strong>
|
||||
<strong>
|
||||
<span>
|
||||
<field name="partner_id" attrs="{'invisible': [('partner_id', '=', False)]}" />
|
||||
<field name="journal_id" attrs="{'invisible': [('partner_id', '!=', False)]}" />
|
||||
</span>
|
||||
</strong>
|
||||
</div>
|
||||
<div class="col-6 text-right">
|
||||
<strong><i class="fa fa-clock-o" aria-label="Date" role="img" title="Date"/> <t t-esc="record.date.value"/></strong>
|
||||
|
||||
Reference in New Issue
Block a user