Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
2 Odpowiedzi
4826 Widoki

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

Awatar
Odrzuć
Najlepsza odpowiedź

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

Awatar
Odrzuć
Najlepsza odpowiedź

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.

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
0
cze 21
2187
0
maj 24
1753
0
mar 15
3964
1
mar 15
5565
3
sie 25
1602