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
- Boekhouding
- Voorraad
- PoS
- Project
- MRP
Deze vraag is gerapporteerd
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')
Geniet je van het gesprek? Blijf niet alleen lezen, doe ook mee!
Maak vandaag nog een account aan om te profiteren van exclusieve functies en deel uit te maken van onze geweldige community!
Aanmelden