Mute reconciled payable/receivable lines
issue10951 review364371002
This commit is contained in:
@@ -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() + [
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user