Is it possible to change the Purchasing price_unit decimal places without affecting the Sales price_unit? Purchase order rounding does not reflect my necessary .0001 prices.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Kế toán
- Tồn kho
- PoS
- Project
- MRP
Câu hỏi này đã bị gắn cờ
Hello Stonelock,
you can create a new decimal accuracy for your purchase order price unit like this.
<record id="decimal_new_purchase_price" model="decimal.precision">
<field name="name">Purchase Price</field>
<field name="digits" eval="4"/>
</record>
Then you need to override the Price Unit of the Purchase Order Line and change the decimal precision to this one that you have created right now like this:
class PurchaseOrderLine(models.Model):
_inherit = 'purchase.order.line'
price_unit = fields.Float(string='Unit Price', required=True, digits='Purchase Price')
Bạn có hứng thú với cuộc thảo luận không? Đừng chỉ đọc, hãy tham gia nhé!
Tạo tài khoản ngay hôm nay để tận hưởng các tính năng độc đáo và tham gia cộng đồng tuyệt vời của chúng tôi!
Đăng ký