Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
2 Răspunsuri
4781 Vizualizări

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

Imagine profil
Abandonează
Cel mai bun răspuns

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

Imagine profil
Abandonează
Cel mai bun răspuns

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.

Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
0
iun. 21
2155
0
mai 24
1703
0
mar. 15
3915
1
mar. 15
5484
3
aug. 25
1482