[FIX] account: display partner.bank on journals

Before this commit, when accessing journals through the menu item
Bank Account, one was able to enter an partner.bank account number
But, in case the partner.bank already exsited, there was no way to select it
and a cryptic unicity constraint was raised

After this commit, one can select an account already existing

OPW 1884515

closes odoo/odoo#27840
This commit is contained in:
Lucas Perais (lpe)
2018-10-16 10:24:16 +00:00
parent 84e3ae140e
commit 6e28e4f26c
2 changed files with 4 additions and 3 deletions
+3 -2
View File
@@ -398,8 +398,9 @@
</div>
<group>
<group>
<field name="bank_acc_number"/>
<field name="bank_id"/>
<field name="bank_account_id"/>
<field name="bank_acc_number" attrs="{'readonly': [('bank_account_id', '!=', False)]}"/>
<field name="bank_id" attrs="{'readonly': [('bank_account_id', '!=', False)]}"/>
</group>
<group>
<field name="company_id" options="{'no_create': True}" groups="base.group_multi_company"/>
@@ -145,7 +145,7 @@
<t t-esc="repartition_employee[employee_id]['total']" t-options="{'widget': 'float_time'}"/>
</td>
<td>
<div class="progress" t-att-style="'width: ' + str(repartition_employee[employee_id]['total'] / repartition_employee_max * 100) +'%'">
<div t-if="repartition_employee_max" class="progress" t-att-style="'width: ' + str(repartition_employee[employee_id]['total'] / repartition_employee_max * 100) +'%'">
<t t-set="total" t-value="repartition_employee[employee_id]['total'] or 1.0" />
<t t-set="billable_fixed" t-value="repartition_employee[employee_id]['billable_fixed']" />