Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
2 Ответы
4789 Представления

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

Аватар
Отменить
Лучший ответ

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

Аватар
Отменить
Лучший ответ

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.

Аватар
Отменить
Related Posts Ответы Просмотры Активность
0
июн. 21
2157
0
мая 24
1706
0
мар. 15
3918
1
мар. 15
5498
3
авг. 25
1493