Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
2 Odpovědi
4731 Zobrazení

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

Avatar
Zrušit
Nejlepší odpověď

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
Zrušit
Nejlepší odpověď

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
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
0
čvn 21
2072
0
kvě 24
1632
0
bře 15
3841
1
bře 15
5402
2
kvě 25
1947