mirror of
https://github.com/bringout/oca-ocb-sale.git
synced 2026-04-27 06:32:02 +02:00
19.0 vanilla
This commit is contained in:
parent
79f83631d5
commit
73afc09215
6267 changed files with 1534193 additions and 1130106 deletions
|
|
@ -0,0 +1,14 @@
|
|||
from odoo import api, fields, models
|
||||
|
||||
|
||||
class UomUom(models.Model):
|
||||
_name = 'uom.uom'
|
||||
_inherit = ['uom.uom', 'pos.load.mixin']
|
||||
|
||||
is_pos_groupable = fields.Boolean(string='Group Products in POS', help="Check if you want to group products of this unit in point of sale orders")
|
||||
|
||||
@api.model
|
||||
def _load_pos_data_fields(self, config):
|
||||
taxes = self.env['account.tax'].search(self.env['account.tax']._check_company_domain(config.company_id.id))
|
||||
product_uom_fields = taxes._eval_taxes_computation_prepare_product_uom_fields()
|
||||
return list(product_uom_fields.union({'id', 'name', 'factor', 'is_pos_groupable', 'parent_path', 'rounding'}))
|
||||
Loading…
Add table
Add a link
Reference in a new issue