mirror of
https://github.com/bringout/oca-financial.git
synced 2026-04-24 08:22:02 +02:00
11 lines
264 B
Python
11 lines
264 B
Python
# Copyright 2020 Camptocamp SA
|
|
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html)
|
|
|
|
from odoo import models
|
|
|
|
|
|
class AccountMove(models.Model):
|
|
_inherit = "account.move"
|
|
|
|
def _validate_invoice(self):
|
|
return self.sudo().action_post()
|