Add module account_move_label_copy

This commit is contained in:
Alexis de Lattre
2022-08-05 12:47:47 +00:00
parent 9589db3abe
commit fd5e620373
5 changed files with 67 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
# Copyright 2022 Akretion France (http://www.akretion.com/)
# @author: Alexis de Lattre <alexis.delattre@akretion.com>
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from odoo import fields, models
class AccountMove(models.Model):
_inherit = "account.move"
default_move_line_name = fields.Char(
related='line_ids.name',
string='Default Journal Item Label')