[ADD] contract_sale_generation_payment_mode#1180
Conversation
f17e393 to
e05edeb
Compare
huguesdk
left a comment
There was a problem hiding this comment.
lgtm! (amended some slight fixes to the commit.)
|
There hasn't been any activity on this pull request in the past 4 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days. |
|
@OCA/human-resources-maintainers could someone please review or merge this? |
|
@victor-champonnois Thanks for this. Maybe a little test ? Thanks |
|
@rousseldenis thanks, I've added some tests |
5c52892 to
57c282d
Compare
|
I don't manage to see why the codecov stays red, an idea on how to fix this ? |
ccf8251 to
57c282d
Compare
tests should be tagged as post_install, as ContractSaleCommon sets up a coa if none has been loaded.
57c282d to
3ae2ffe
Compare
|
according to the logs and the coverage report, the test files are loaded, but the tests don’t run. those of |
|
many thanks @huguesdk ! |
|
There hasn't been any activity on this pull request in the past 4 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days. |
|
@OCA/project-service-maintainers could someone please merge this? |
| def _prepare_recurring_sales_values(self, date_ref=False): | ||
| res = super()._prepare_recurring_sales_values(date_ref) | ||
| if res: | ||
| res[0]["payment_mode_id"] = self.payment_mode_id.id | ||
| return res |
There was a problem hiding this comment.
I think it's fine, but it seems more consistent with the module's design to put this code in the _prepare_sale() method. What do you think?
Set the payment mode from the contract on sales orders created by the contract.