mirror of
https://github.com/bringout/oca-purchase.git
synced 2026-04-24 06:02:01 +02:00
Add oca-purchase submodule with 96 purchase modules moved from oca-workflow-process
🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
b0628ee8ea
commit
7378b233e9
3994 changed files with 334316 additions and 0 deletions
|
|
@ -0,0 +1,17 @@
|
|||
# Copyright 2023 Quartile Limited (https://www.quartile.co)
|
||||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
|
||||
|
||||
from odoo import models
|
||||
|
||||
|
||||
class AccountMove(models.Model):
|
||||
_inherit = "account.move"
|
||||
|
||||
def action_post(self):
|
||||
res = super().action_post()
|
||||
for line in self.line_ids:
|
||||
if not line.purchase_line_id.is_deposit:
|
||||
continue
|
||||
line.purchase_line_id.taxes_id = line.tax_ids
|
||||
line.purchase_line_id.price_unit = line.price_unit
|
||||
return res
|
||||
Loading…
Add table
Add a link
Reference in a new issue