Mute reconciled payable/receivable lines

issue10951
review364371002
This commit is contained in:
Adrià Tarroja Caubet
2022-04-11 20:13:16 +02:00
parent b002258d17
commit 9fa1f8f970
2 changed files with 11 additions and 3 deletions
+9
View File
@@ -246,6 +246,15 @@ class MoveLine(metaclass=PoolMeta):
super(MoveLine, cls).__setup__()
cls._check_modify_exclude.add('invoice_payment')
@classmethod
def _view_reconciliation_muted(cls):
pool = Pool()
ModelData = pool.get('ir.model.data')
muted = super()._view_reconciliation_muted()
muted.add(ModelData.get_id(
'account_invoice', 'move_line_view_list_to_pay'))
return muted
@classmethod
def _get_origin(cls):
return super()._get_origin() + [
+2 -3
View File
@@ -3,8 +3,7 @@
this repository contains the full copyright notices and license terms. -->
<tree>
<field name="maturity_date"/>
<field name="debit" sum="Debit"/>
<field name="credit" sum="Credit"/>
<field name="amount"/>
<field name="delegated_amount"/>
<field name="amount_second_currency"/>
<field name="reconciliation" optional="1"/>
</tree>