mirror of
https://github.com/ForgeFlow/stock-rma.git
synced 2025-01-21 12:57:49 +02:00
[MIG] rma_purchase: Migration to 15.0
This commit is contained in:
committed by
Lois Rilo
parent
2f8ca349b6
commit
c20c648de9
@@ -3,7 +3,7 @@
|
||||
|
||||
{
|
||||
"name": "RMA Purchase",
|
||||
"version": "14.0.1.0.0",
|
||||
"version": "15.0.1.0.0",
|
||||
"category": "RMA",
|
||||
"summary": "RMA from PO",
|
||||
"license": "LGPL-3",
|
||||
|
||||
@@ -4,8 +4,6 @@
|
||||
from odoo import _, api, fields, models
|
||||
from odoo.exceptions import ValidationError
|
||||
|
||||
from odoo.addons import decimal_precision as dp
|
||||
|
||||
|
||||
class RmaOrderLine(models.Model):
|
||||
_inherit = "rma.order.line"
|
||||
@@ -80,14 +78,14 @@ class RmaOrderLine(models.Model):
|
||||
qty_to_purchase = fields.Float(
|
||||
string="Qty To Purchase",
|
||||
copy=False,
|
||||
digits=dp.get_precision("Product Unit of Measure"),
|
||||
digits="Product Unit of Measure",
|
||||
readonly=True,
|
||||
compute="_compute_qty_purchase",
|
||||
)
|
||||
qty_purchased = fields.Float(
|
||||
string="Qty Purchased",
|
||||
copy=False,
|
||||
digits=dp.get_precision("Product Unit of Measure"),
|
||||
digits="Product Unit of Measure",
|
||||
readonly=True,
|
||||
compute="_compute_qty_purchase",
|
||||
)
|
||||
|
||||
@@ -6,8 +6,6 @@ from datetime import datetime
|
||||
from odoo import _, api, exceptions, fields, models
|
||||
from odoo.tools import DEFAULT_SERVER_DATETIME_FORMAT as DF
|
||||
|
||||
import odoo.addons.decimal_precision as dp
|
||||
|
||||
|
||||
class RmaLineMakePurchaseOrder(models.TransientModel):
|
||||
_name = "rma.order.line.make.purchase.order"
|
||||
@@ -138,7 +136,7 @@ class RmaLineMakePurchaseOrderItem(models.TransientModel):
|
||||
name = fields.Char(string="Description")
|
||||
product_qty = fields.Float(
|
||||
string="Quantity to purchase",
|
||||
digits=dp.get_precision("Product Unit of Measure"),
|
||||
digits="Product Unit of Measure",
|
||||
)
|
||||
product_uom_id = fields.Many2one(comodel_name="uom.uom", string="UoM")
|
||||
free_of_charge = fields.Boolean(string="Free of Charge")
|
||||
|
||||
Reference in New Issue
Block a user