Odoo18-Base/addons/sale_project/models/account_move.py

12 lines
331 B
Python
Raw Permalink Normal View History

2025-01-06 10:57:38 +07:00
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import models
class AccountMove(models.Model):
_inherit = "account.move"
def _get_action_per_item(self):
action = self.env.ref('account.action_move_out_invoice_type').id
return {invoice.id: action for invoice in self}