İçereği Atla
Menü
Bu soru işaretlendi
2 Cevaplar
4840 Görünümler

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

Avatar
Vazgeç
En İyi Yanıt

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
Vazgeç
En İyi Yanıt

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
Vazgeç
İlgili Gönderiler Cevaplar Görünümler Aktivite
0
Haz 21
2198
0
May 24
1786
0
Mar 15
4001
1
Mar 15
5597
3
Ağu 25
1640