Skip to content

Add a method to get total value of a contract line#1429

Open
baimont wants to merge 1 commit into
OCA:18.0from
acsone:bai_contract_total_amount
Open

Add a method to get total value of a contract line#1429
baimont wants to merge 1 commit into
OCA:18.0from
acsone:bai_contract_total_amount

Conversation

@baimont
Copy link
Copy Markdown
Contributor

@baimont baimont commented May 13, 2026

The motivation for adding this method to the base contract module rather than to extension modules is extensibility: many modules customize contract behavior (custom quantity rules, variable pricing, etc.).
By overriding _get_contract_line_total_value() in those modules, they can influence the total value used downstream by any module that needs it — such as some modules we'll announce soon with @sbidoul — without creating unwanted cross-dependencies.

@baimont baimont force-pushed the bai_contract_total_amount branch from dc907d3 to 090aeca Compare May 13, 2026 09:09
@baimont
Copy link
Copy Markdown
Contributor Author

baimont commented May 13, 2026

@qgroulard @sbejaoui take a look please :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants