[FIX] Various fixes:

- Error with the sequence number.
- Visible texts that should be in uppercases.
- order_id should only be visible if group_stock_request_order
  option is enabled.
- adds more tests
- adds consistency between models company-wise
This commit is contained in:
mreficent
2018-04-11 17:21:15 +02:00
committed by Kitti U
parent 0e8b47cf51
commit d9150b8335
16 changed files with 275 additions and 30 deletions

View File

@@ -12,6 +12,12 @@ class StockRequestAllocation(models.Model):
comodel_name='stock.request',
required=True, ondelete='cascade',
)
company_id = fields.Many2one(string='Company',
comodel_name='res.company',
readonly=True,
related='stock_request_id.company_id',
store=True,
)
stock_move_id = fields.Many2one(string='Stock Move',
comodel_name='stock.move',
required=True, ondelete='cascade',