Commit graph

6 commits

Author SHA1 Message Date
Ernad Husremovic
138bd5ffee purchase_advance_payment: open payment form after creation
🤖 assisted by claude
2026-02-11 11:25:57 +01:00
Ernad Husremovic
5222b93391 purchase_advance_payment: use self.order_id instead of active_ids context
Fix make_advance_payment to use the order_id stored on the wizard
instead of relying on active_ids from context, which can be lost
or point to wrong PO after wizard reopens.
Also fix partner_id to use PO partner directly instead of commercial_partner_id.

🤖 assisted by claude
2026-02-11 11:21:14 +01:00
Ernad Husremovic
a3f2664ee8 purchase_advance_payment: stretch pay button to full width
🤖 assisted by claude
2026-02-11 11:05:32 +01:00
Ernad Husremovic
1f9a23aabd purchase_advance_payment: fix fill amount button - rename, restyle, fix constraint
- Rename button "Fill amount" to "Pay order due amount" / "Plati dospjeli iznos ponude"
- Change button style from btn-link to btn-secondary for better visibility
- Fix @api.constrains to allow zero amount (prevents error on form save before action)
- Move positive amount validation to make_advance_payment method
- Update .pot and bs.po translations

🤖 assisted by claude
2026-02-11 10:55:19 +01:00
Ernad Husremovic
889c53de60 Add "Fill amount" button to advance payment wizard
Adds a button next to "Order Due Amount" that fills the advance
amount with the full order due amount, converting currency if needed.

🤖 assisted by claude
2026-02-11 10:42:15 +01:00
Ernad Husremovic
7378b233e9 Add oca-purchase submodule with 96 purchase modules moved from oca-workflow-process
🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-30 18:00:40 +02:00