Skip to content

[18.0][FW] contract: Added domain,constrains check - #1537

Draft
anusriNPS wants to merge 1 commit into
OCA:18.0from
PyTech-SRL:18-port-from-16-contract
Draft

anusriNPS wants to merge 1 commit into
OCA:18.0from
PyTech-SRL:18-port-from-16-contract

Conversation

@anusriNPS

Copy link
Copy Markdown

Ported PR from 16.0

  Using domain for field "pricelist_id" which lists
pricelist whose currency is matched with "journal_id"
currency. This domain helps to avoid using different
currency within same contract.
  Similary, api constraint check added to check
currency consistency between journal_id and
pricelist_id fields.
@anusriNPS
anusriNPS marked this pull request as draft September 24, 2026 09:57
context="{'default_contract_type': contract_type}"
/>
<field name="pricelist_id" />
<field name="pricelist_id" domain="pricelist_id_domain" />

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This should also be applied to this field in the contract_template.xml view.

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