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
- Contabilidad
- Inventario
- PoS
- Project
- MRP
Se marcó esta pregunta
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')
¿Le interesa esta conversación? ¡Participe en ella!
Cree una cuenta para poder utilizar funciones exclusivas e interactuar con la comunidad.
Registrarse