Skip to content

[18.0] [IMP] purchase_order_type: add a billing journal on the type - #3184

Open
eLBati wants to merge 1 commit into
OCA:18.0from
eLBati:purchase_order_type-journal_id
Open

eLBati wants to merge 1 commit into
OCA:18.0from
eLBati:purchase_order_type-journal_id

Conversation

@eLBati

@eLBati eLBati commented Sep 25, 2026

Copy link
Copy Markdown
Member

As sale_order_type does for customer invoices, a purchase order type can now define the journal of the vendor bills of its orders. _prepare_invoice passes it on, so it applies both to the Create Bill button and to a purchase order picked on a draft vendor bill.

The journal must belong to the company of the type, now that the model checks company consistency: a type shared among companies cannot have one.

When several orders are billed together, action_create_invoice groups them by company, partner and currency only, so a bill merging orders of types with different journals takes the journal of the first order.

Assisted-by: Claude Opus 5.5

As sale_order_type does for customer invoices, a purchase order type
can now define the journal of the vendor bills of its orders.
_prepare_invoice passes it on, so it applies both to the Create Bill
button and to a purchase order picked on a draft vendor bill.

The journal must belong to the company of the type, now that the model
checks company consistency: a type shared among companies cannot have
one.

When several orders are billed together, action_create_invoice groups
them by company, partner and currency only, so a bill merging orders of
types with different journals takes the journal of the first order.

Assisted-by: Claude Opus 5.5
@OCA-git-bot OCA-git-bot added series:18.0 mod:purchase_order_type Module purchase_order_type labels Sep 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

mod:purchase_order_type Module purchase_order_type series:18.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants