mirror of
https://github.com/OCA/contract.git
synced 2025-02-13 17:57:24 +02:00
set default value of split quantity to initial contract line quantity
This commit is contained in:
@@ -38,6 +38,7 @@ class SplitContract(models.TransientModel):
|
|||||||
def _get_default_split_line_values(self, line) -> list:
|
def _get_default_split_line_values(self, line) -> list:
|
||||||
return {
|
return {
|
||||||
"original_contract_line_id": line.id,
|
"original_contract_line_id": line.id,
|
||||||
|
"quantity_to_split": line.quantity,
|
||||||
}
|
}
|
||||||
|
|
||||||
def _get_contract_name(self):
|
def _get_contract_name(self):
|
||||||
|
|||||||
Reference in New Issue
Block a user