Skip to Content
Menú
This question has been flagged
2 Respostes
4727 Vistes

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

Avatar
Descartar
Best Answer

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
Descartar
Best Answer

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
Descartar
Related Posts Respostes Vistes Activitat
0
de juny 21
2047
0
de maig 24
1616
0
de març 15
3809
1
de març 15
5351
2
de maig 25
1935