تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
2 الردود
4861 أدوات العرض

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.

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
0
يونيو 21
2214
0
مايو 24
1809
0
مارس 15
4025
1
مارس 15
5625
3
أغسطس 25
1675