Skip to content

Commit

Permalink
Merge PR #742 into 11.0
Browse files Browse the repository at this point in the history
Signed-off-by jbeficent
  • Loading branch information
OCA-git-bot committed Sep 27, 2019
2 parents 8c96318 + 3838d21 commit ec23526
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
6 changes: 4 additions & 2 deletions purchase_request/models/purchase_request.py
Expand Up @@ -267,8 +267,10 @@ class PurchaseRequestLine(models.Model):
cancelled = fields.Boolean(
string="Cancelled", readonly=True, default=False, copy=False)

purchased_qty = fields.Float(string='Quantity in RFQ or PO',
compute="_compute_purchased_qty")
purchased_qty = fields.Float(
string='Quantity in RFQ or PO',
digits=dp.get_precision('Product Unit of Measure'),
compute="_compute_purchased_qty")
purchase_lines = fields.Many2many(
'purchase.order.line', 'purchase_request_purchase_order_line_rel',
'purchase_request_line_id',
Expand Down
Expand Up @@ -270,8 +270,9 @@ class PurchaseRequestLineMakePurchaseOrderItem(models.TransientModel):
product_id = fields.Many2one('product.product', string='Product',
related='line_id.product_id')
name = fields.Char(string='Description', required=True)
product_qty = fields.Float(string='Quantity to purchase',
digits=dp.get_precision('Product UoS'))
product_qty = fields.Float(
string='Quantity to purchase',
digits=dp.get_precision('Product Unit of Measure'))
product_uom_id = fields.Many2one('product.uom', string='UoM')
keep_description = fields.Boolean(string='Copy descriptions to new PO',
help='Set true if you want to keep the '
Expand Down

0 comments on commit ec23526

Please sign in to comment.