Skip to content

Commit

Permalink
[FIX] stock_picking_invoicing:Stock Rule inv state
Browse files Browse the repository at this point in the history
  • Loading branch information
mbcosta authored and rvalyi committed Oct 22, 2024
1 parent 195a356 commit aef43ba
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
4 changes: 1 addition & 3 deletions stock_picking_invoicing/models/__init__.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
# Copyright (C) 2019-Today: Odoo Community Association (OCA)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).

from . import stock_invoice_state_mixin
from . import account_move
from . import stock_move
from . import stock_picking
from . import stock_picking_type
from . import stock_rule
14 changes: 14 additions & 0 deletions stock_picking_invoicing/models/stock_rule.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Copyright (C) 2024-Today - Akretion (<http://www.akretion.com>).
# @author Magno Costa <magno.costa@akretion.com.br>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

from odoo import models


class StockRule(models.Model):
_inherit = "stock.rule"

def _get_custom_move_fields(self):
fields = super()._get_custom_move_fields()
fields += ["invoice_state"]
return fields

0 comments on commit aef43ba

Please sign in to comment.