Hide zero previous balance row, default reconciled to False

🤖 assisted by claude
This commit is contained in:
Ernad Husremovic 2026-03-12 10:57:41 +01:00
parent 09f99815cb
commit e65f2ee0ec
2 changed files with 2 additions and 2 deletions

View file

@ -79,7 +79,7 @@
</tr> </tr>
<t t-if="data['form'].get('previous_balance') and data['form'].get('date_from')"> <t t-if="data['form'].get('previous_balance') and data['form'].get('date_from')">
<t t-set="prev_bal" t-value="previous_balance(data, o)"/> <t t-set="prev_bal" t-value="previous_balance(data, o)"/>
<tr style="background-color: #f0f0f0; font-style: italic;"> <tr t-if="prev_bal['debit'] or prev_bal['credit'] or prev_bal['balance']" style="background-color: #f0f0f0; font-style: italic;">
<td colspan="4"> <td colspan="4">
<strong>Prethodno stanje do <t t-esc="data['form']['date_from']" t-options="{'widget': 'date'}"/></strong> <strong>Prethodno stanje do <t t-esc="data['form']['date_from']" t-options="{'widget': 'date'}"/></strong>
</td> </td>

View file

@ -55,7 +55,7 @@
'default_partner_ids':active_ids, 'default_partner_ids':active_ids,
'default_target_move': 'posted', 'default_target_move': 'posted',
'default_result_selection': 'customer_supplier', 'default_result_selection': 'customer_supplier',
'default_reconciled': True, 'default_reconciled': False,
'hide_partner':1, 'hide_partner':1,
}</field> }</field>
<field name="groups_id" eval="[(4, ref('account.group_account_invoice'))]"/> <field name="groups_id" eval="[(4, ref('account.group_account_invoice'))]"/>