[FIX] account: writeoff_account_id not required if no difference
[FIX] account: writeoff_account_id not required if no difference

opw-2152644
Do not set the field writeoff_account_id as required if the
payment_difference is zero because there is no writeoff in that case and
the field is invisible.

closes odoo/odoo#45257

X-original-commit: b0939529de5cd4273e64cfe729f1b5f532bbd859
Signed-off-by: wan <2124e97c58e3bc0dacccdbc9499371f381e5bb73@users.noreply.github.com>

ygol/odoo,ygol/odoo,ygol/odoo,ygol/odoo,ygol/odoo,ygol/odoo,ygol/odoo