Skip to content

Fork Sync Branch 18.0#67

Merged
btl-bot merged 5 commits into
BTLzdravtech:18.0from
ingadhoc:18.0
May 21, 2026
Merged

Fork Sync Branch 18.0#67
btl-bot merged 5 commits into
BTLzdravtech:18.0from
ingadhoc:18.0

Conversation

@btl-bot
Copy link
Copy Markdown

@btl-bot btl-bot commented May 21, 2026

No description provided.

cav-adhoc and others added 5 commits May 14, 2026 15:04
… payment amounts

- Modified _onchange_amount method to exclude linked payments (with main_payment_id)
- Linked payments now keep the amount suggested by x2many context
- Added test_link_payment_onchange_does_not_override_remaining_amount test
- Test validates that linked payments maintain their suggested amount

Change note: Se corrigió un problema donde al crear pagos vinculados dentro de un payment bundle, el monto se sobrescribía incorrectamente. Ahora los pagos vinculados mantienen automáticamente el monto que les corresponde según el saldo pendiente.

closes #1062

Signed-off-by: rov-adhoc <rov@adhoc.com.ar>
closes #1059

Signed-off-by: rov-adhoc <rov@adhoc.com.ar>
…rnal is default

Add AccountMoveLine inherit to override action_register_payment. When the
first available journal has the payment_bundle payment method (inbound or
outbound), set default_amount to 0 in the action context so the payment
wizard opens with an empty amount instead of the line's residual amount.
Use setdefault to ensure context key is created if not present.

Change note: Al registrar un pago desde una línea de asiento, si el diario
por defecto tiene configurado el método de pago Bundle, el monto sugerido
en el formulario de pago se establece en 0.

closes #1072

Signed-off-by: rov-adhoc <rov@adhoc.com.ar>
… payment company

When `default_company_id` is passed via context, a journal previously set
as user default via `ir.default` and belonging to a different company could
trigger the `_compute_company_id` precompute, silently overwriting the
intended company with the environment's main company.

Fix: in `default_get`, check whether the resolved `journal_id` belongs to
the requested company. If not, replace it with the ir.default journal for
that company (if one exists), or clear it so Odoo can compute a safe
default.

closes #1078

Signed-off-by: Filoquin adhoc <maq@adhoc.com.ar>
Copy link
Copy Markdown

@sireko sireko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Auto approved

@btl-bot btl-bot merged commit 70fa12a into BTLzdravtech:18.0 May 21, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants