summaryrefslogtreecommitdiff
path: root/addons/project
diff options
context:
space:
mode:
authorUrvi Soni <uso@odoo.com>2021-04-27 06:17:36 +0000
committerBarad Mahendra <mba@openerp.com>2021-04-27 10:25:34 +0000
commit2aedd076317b37ceffba061c48e3d4fc38f02ea9 (patch)
tree071c9a7a04765446fd4f3ce58fad62b652ded2c6 /addons/project
parent60e83f03b871605b7aa281503269f66ac3ea940b (diff)
[FIX] hr_expense: do not create a payment when expense is paid by company
Currently, when we create an expense that is paid by company, then create and approve a report, then post entries, 2 entries are created. 1 is posted and is correct, the other one is in draft due to the creation of the payment for employee and should not be there. As when a company pays for an expense, in 99% of the cases, it's because employees have a credit card funded by the company. It happens often that company owners have this kind of card or even employees but that's more common in the US. In such case, it's just an account payable to visa or mastercard. so no need to create a payment for the employee. So this commit, draft entry will not be created when payment paid by the company while posting the entries from the expense. closes odoo/odoo#69875 Taskid: 2410551 Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
Diffstat (limited to 'addons/project')
0 files changed, 0 insertions, 0 deletions