diff --git a/account.xml b/account.xml index 966949c84f..3db0a28564 100644 --- a/account.xml +++ b/account.xml @@ -14,7 +14,9 @@ this repository contains the full copyright notices and license terms. --> Lines to Pay account.move.line - [('account.kind', 'in', ['receivable', 'payable']), ('party', '!=', None), ('reconciliation', '=', None), ('payment_amount', '!=', 0)] + @@ -25,14 +27,18 @@ this repository contains the full copyright notices and license terms. --> id="act_move_line_form_domain_payable"> Payable - ['OR', ('credit', '>', 0), ('debit', '<', 0)] + Receivable - ['OR', ('debit', '>', 0), ('credit', '<', 0)] + diff --git a/payment.xml b/payment.xml index 91011035f3..55dcd6d36a 100644 --- a/payment.xml +++ b/payment.xml @@ -54,7 +54,9 @@ this repository contains the full copyright notices and license terms. --> - [('company', '=', user.company.id if user.company else None)] + @@ -116,7 +118,9 @@ this repository contains the full copyright notices and license terms. --> - [('company', '=', user.company.id if user.company else None)] + @@ -196,31 +200,31 @@ this repository contains the full copyright notices and license terms. --> Draft - [('state', '=', 'draft')] + Approved - [('state', '=', 'approved')] + Processing - [('state', '=', 'processing')] + Succeeded - [('state', '=', 'succeeded')] + Failed - [('state', '=', 'failed')] + @@ -238,14 +242,17 @@ this repository contains the full copyright notices and license terms. --> - [('company', '=', user.company.id if user.company else None)] + Payments account.payment - [('line', '=', Eval('active_id'))] + @@ -269,7 +276,8 @@ this repository contains the full copyright notices and license terms. --> Payments account.payment - [('group', '=', Eval('active_id'))] +