Se corrieron las pruebas de estilo y de tryton
This commit is contained in:
parent
b23374955d
commit
4756c4468b
@ -1,6 +1,4 @@
|
||||
from trytond.pool import Pool, PoolMeta
|
||||
from trytond.model import ModelView, fields
|
||||
from trytond.exceptions import UserError
|
||||
from trytond.pool import PoolMeta
|
||||
from trytond.pyson import Eval
|
||||
|
||||
|
||||
@ -13,4 +11,3 @@ class InvoiceLine(metaclass=PoolMeta):
|
||||
|
||||
cls.product.states['required'] = (Eval('type') == 'line')
|
||||
cls.unit_price.domain = []
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
from trytond.pool import Pool, PoolMeta
|
||||
from trytond.pool import PoolMeta
|
||||
from trytond.model import fields
|
||||
from trytond.pyson import Eval, Bool
|
||||
from trytond.pyson import Eval
|
||||
|
||||
|
||||
class Product(metaclass=PoolMeta):
|
||||
|
@ -1,12 +1,8 @@
|
||||
# This file is part of Tryton. The COPYRIGHT file at the top level of
|
||||
# this repository contains the full copyright notices and license terms.
|
||||
from decimal import Decimal
|
||||
|
||||
from trytond.pool import Pool, PoolMeta
|
||||
from trytond.model import fields
|
||||
from trytond.modules.product import price_digits, round_price
|
||||
|
||||
from trytond.exceptions import UserError
|
||||
|
||||
|
||||
BOM_CHANGES = ['bom', 'product', 'quantity', 'uom', 'warehouse', 'location',
|
||||
@ -37,14 +33,16 @@ class Production(metaclass=PoolMeta):
|
||||
move = self._explode_move_values('input', input_, quantity)
|
||||
if move:
|
||||
inputs.append(move)
|
||||
quantity = Uom.compute_qty(input_.uom, quantity,
|
||||
quantity = Uom.compute_qty(
|
||||
input_.uom, quantity,
|
||||
input_.product.default_uom, round=False)
|
||||
# else:
|
||||
# quantity = input_.compute_quantity(factor)
|
||||
# move = self._explode_move_values('output', input_, quantity)
|
||||
# if move:
|
||||
# inputs.append(move)
|
||||
# quantity = Uom.compute_qty(input_.uom, quantity,
|
||||
# quantity = Uom.compute_qty(
|
||||
# input_.uom, quantity,
|
||||
# input_.product.default_uom, round=False)
|
||||
self.inputs = inputs
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user