[IMP] pre-commit: first run on whole repo
This commit is contained in:
@@ -2,19 +2,19 @@
|
||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
|
||||
|
||||
{
|
||||
'name': 'Volume Precision',
|
||||
'summary': 'Set precision on volume fields',
|
||||
'version': '12.0.0.0.1',
|
||||
'author': 'Akretion',
|
||||
'maintainer': 'Akretion',
|
||||
'license': 'AGPL-3',
|
||||
'category': 'product',
|
||||
'depends': [
|
||||
'delivery',
|
||||
"name": "Volume Precision",
|
||||
"summary": "Set precision on volume fields",
|
||||
"version": "12.0.0.0.1",
|
||||
"author": "Akretion",
|
||||
"maintainer": "Akretion",
|
||||
"license": "AGPL-3",
|
||||
"category": "product",
|
||||
"depends": [
|
||||
"delivery",
|
||||
],
|
||||
'website': 'http://www.akretion.com/',
|
||||
'data': [
|
||||
'data/precision.xml',
|
||||
"website": "https://github.com/OCA/odoo-usability",
|
||||
"data": [
|
||||
"data/precision.xml",
|
||||
],
|
||||
'installable': False,
|
||||
"installable": False,
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<odoo>
|
||||
|
||||
<record forcecreate="True" id="decimal_volume" model="decimal.precision">
|
||||
|
||||
@@ -1,23 +1,24 @@
|
||||
# Copyright 2019 David BEAL @ Akretion
|
||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
|
||||
|
||||
from odoo import models, fields
|
||||
from odoo import fields, models
|
||||
|
||||
from odoo.addons import decimal_precision as dp
|
||||
|
||||
|
||||
class ProductTemplate(models.Model):
|
||||
_inherit = 'product.template'
|
||||
_inherit = "product.template"
|
||||
|
||||
volume = fields.Float(digits=dp.get_precision('Volume'))
|
||||
volume = fields.Float(digits=dp.get_precision("Volume"))
|
||||
|
||||
|
||||
class ProductProduct(models.Model):
|
||||
_inherit = 'product.product'
|
||||
_inherit = "product.product"
|
||||
|
||||
volume = fields.Float(digits=dp.get_precision('Volume'))
|
||||
volume = fields.Float(digits=dp.get_precision("Volume"))
|
||||
|
||||
|
||||
class StockPicking(models.Model):
|
||||
_inherit = 'stock.picking'
|
||||
_inherit = "stock.picking"
|
||||
|
||||
volume = fields.Float(digits=dp.get_precision('Volume'))
|
||||
volume = fields.Float(digits=dp.get_precision("Volume"))
|
||||
|
||||
Reference in New Issue
Block a user