Skip to Content
Menu
Dette spørgsmål er blevet anmeldt
2 Besvarelser
4810 Visninger

How to  to block the account move creation when purchase order receipt is confirmed?

Avatar
Kassér
Bedste svar

from odoo import models


class StockMove(models.Model):
    _inherit = "stock.move"

    def _account_entry_move(self):
        """ Accounting Valuation Entries """
        self.ensure_one()
        if self._is_in():
            return
        else:
            return super(StockMove, self)._account_entry_move()

Thanks

Avatar
Kassér
Bedste svar

Please elaborate more on your business case. If you don't to manage your books wth Odoo, then do not install Accounting. If you want to use integrated accounting feature, then proper account moves are a basic necessity and in all jurisdictions I know of, the time of physical receipt or delivery or the time of establishing a contractual relationship is the relevant event for an accounting entry.

Avatar
Kassér
Related Posts Besvarelser Visninger Aktivitet
0
jun. 21
2165
0
maj 24
1730
0
mar. 15
3945
1
mar. 15
5537
3
aug. 25
1549