[REF] product, stock: packages wording

This commit is contained in:
Pierre Masereel
2017-12-11 14:03:58 +01:00
parent d0dcd22456
commit 7e89865ea1
8 changed files with 16 additions and 16 deletions
+1 -1
View File
@@ -556,7 +556,7 @@ class ProductPackaging(models.Model):
name = fields.Char('Package Type', required=True)
sequence = fields.Integer('Sequence', default=1, help="The first in the sequence is the default one.")
product_id = fields.Many2one('product.product', string='Product')
qty = fields.Float('Quantity per Package', help="The total number of products you can have per pallet or box.")
qty = fields.Float('Contained Quantity', help="The total number of products you can have per pallet or box.")
barcode = fields.Char('Barcode', copy=False, help="Barcode used for packaging identification.")
+1 -1
View File
@@ -14,7 +14,7 @@ class ResConfigSettings(models.TransientModel):
" * Unchecked : Each company can see only its product (product where company is defined). Product not related to a company are visible for all companies.")
group_uom = fields.Boolean("Units of Measure", implied_group='product.group_uom')
group_product_variant = fields.Boolean("Attributes and Variants", implied_group='product.group_product_variant')
group_stock_packaging = fields.Boolean('Product Packages',
group_stock_packaging = fields.Boolean('Product Packagings',
implied_group='product.group_stock_packaging')
group_sale_pricelist = fields.Boolean("Use pricelists to adapt your price per customers",
implied_group='product.group_sale_pricelist',
+4 -4
View File
@@ -454,10 +454,10 @@
<field name="name">product.packaging.tree.view</field>
<field name="model">product.packaging</field>
<field name="arch" type="xml">
<tree string="Product Packages">
<tree string="Product Packagings">
<field name="sequence" widget="handle"/>
<field name="product_id"/>
<field name="name"/>
<field name="name" string="Packaging"/>
<field name="qty"/>
</tree>
</field>
@@ -469,7 +469,7 @@
<field name="arch" type="xml">
<form string="Product Packaging">
<sheet>
<label for="name"/>
<label for="name" string="Packaging"/>
<h1>
<field name="name"/>
</h1>
@@ -489,7 +489,7 @@
</record>
<record model="ir.actions.act_window" id="action_packaging_view">
<field name="name">Product Packages</field>
<field name="name">Product Packagings</field>
<field name="res_model">product.packaging</field>
<field name="domain">[('product_id', '!=', False)]</field>
<field name="view_ids" eval="[(5, 0, 0),
+1 -1
View File
@@ -31,7 +31,7 @@ class PickingType(models.Model):
help="This is the default destination location when you create a picking manually with this operation type. It is possible however to change it or that the routes put another location. If it is empty, it will check for the customer location on the partner. ")
code = fields.Selection([('incoming', 'Vendors'), ('outgoing', 'Customers'), ('internal', 'Internal')], 'Type of Operation', required=True)
return_picking_type_id = fields.Many2one('stock.picking.type', 'Operation Type for Returns')
show_entire_packs = fields.Boolean('Allow moving packs', help="If checked, this shows the packs to be moved as a whole in the Operations tab all the time, even if there was no entire pack reserved.")
show_entire_packs = fields.Boolean('Move Entire Packages', help="If checked, this shows the packs to be moved as a whole in the Operations tab all the time, even if there was no entire pack reserved.")
warehouse_id = fields.Many2one(
'stock.warehouse', 'Warehouse', ondelete='cascade',
default=lambda self: self.env['stock.warehouse'].search([('company_id', '=', self.env.user.company_id.id)], limit=1))
+4 -4
View File
@@ -29,21 +29,21 @@
print_report_name="'Inventory - %s' % (object.name)"
/>
<report
string="Package BarCode with Contents"
string="Package Barcode with Contents"
id="action_report_quant_package_barcode"
model="stock.quant.package"
report_type="qweb-pdf"
name="stock.report_package_barcode"
file="stock.report_package_barcode"/>
<report
string="Package BarCode"
string="Package Barcode"
id="action_report_quant_package_barcode_small"
model="stock.quant.package"
report_type="qweb-pdf"
name="stock.report_package_barcode_small"
file="stock.report_package_barcode"/>
<report
string="Location BarCode"
string="Location Barcode"
id="action_report_location_barcode"
model="stock.location"
report_type="qweb-pdf"
@@ -52,7 +52,7 @@
print_report_name="'Location - %s' % object.name"
/>
<report
string="Lot BarCode"
string="Lot Barcode"
id="action_report_lot_barcode"
model="stock.production.lot"
report_type="qweb-pdf"
+1 -1
View File
@@ -336,7 +336,7 @@
parent="stock.menu_stock_inventory_control" sequence="1"/>
<menuitem id="product_product_menu" name="Product Variants" action="product.product_normal_action"
parent="menu_stock_inventory_control" sequence="2" groups="product.group_product_variant"/>
<menuitem id="menu_product_packagings" name="Product Packages" parent="stock.menu_product_in_config_stock" action="product.action_packaging_view" groups="product.group_stock_packaging"/>
<menuitem id="menu_product_packagings" name="Product Packagings" parent="stock.menu_product_in_config_stock" action="product.action_packaging_view" groups="product.group_stock_packaging"/>
</data>
</odoo>
@@ -166,18 +166,18 @@
</div>
</div>
</div>
<div class="col-xs-12 col-md-6 o_setting_box" title="Manage product packages (e.g. pack of 6 bottles, box of 10 pieces)">
<div class="col-xs-12 col-md-6 o_setting_box" title="Manage product packagings (e.g. pack of 6 bottles, box of 10 pieces)">
<div class="o_setting_left_pane">
<field name="group_stock_packaging"/>
</div>
<div class="o_setting_right_pane">
<label for="group_stock_packaging"/>
<div class="text-muted">
Manage product packages (e.g. pack of 6 bottles, box of 10 pieces)
Manage product packagings (e.g. pack of 6 bottles, box of 10 pieces)
</div>
<div class="content-group">
<div class="mt16" attrs="{'invisible': [('group_stock_packaging', '=', False)]}">
<button name="%(product.action_packaging_view)d" icon="fa-arrow-right" type="action" string="Product Packages" class="btn-link"/>
<button name="%(product.action_packaging_view)d" icon="fa-arrow-right" type="action" string="Product Packagings" class="btn-link"/>
</div>
</div>
</div>
+1 -1
View File
@@ -51,7 +51,7 @@
</group>
</group>
<group>
<group attrs='{"invisible": [("code", "not in", ["incoming", "outgoing", "internal"])]}' string="Packs and Lots" groups="stock.group_tracking_lot,stock.group_production_lot">
<group attrs='{"invisible": [("code", "not in", ["incoming", "outgoing", "internal"])]}' string="Packages &amp; Traceability" groups="stock.group_tracking_lot,stock.group_production_lot">
<field name="show_entire_packs" groups="stock.group_tracking_lot"/>
<field name="use_create_lots" groups="stock.group_production_lot"/>
<field name="use_existing_lots" groups="stock.group_production_lot"/>