hunk.code_window:         if self.result_package_id:
               if not self.id and self.user_has_groups('stock.group_stock_multi_locations'):
                   qty_done = self.product_uom_id._compute_quantity(self.qty_done, self.product_id.uom_id)
                   default_dest_location = self._get_default_dest_location()
                   self.location_dest_id = default_dest_location._get_putaway_strategy(
                       self.product_id, quantity=qty_done, package=self.result_package_id,
  
hunk.labels: keep keep keep add keep keep
hunk.after_edit:                 additional_qty = self._get_putaway_additional_qty()
  
hunk.file_path: addons/stock/models/stock_move_line.py
hunk.type: add
file: <?xml version='1.0' encoding='UTF-8'?>
  <odoo>
  
      <!-- IVA 22 -->
      <record id="22v" model="account.tax.template">
          <field name="description">22v</field>
          <field name="chart_template_id" ref="l10n_it_chart_template_generic"/>
          <field name="name">Iva al 22% (debito)</field>
          <field name="sequence">1</field>
          <field name="amount">22</field>
          <field name="amount_type">percent</field>
          <field name="type_tax_use">sale</field>
          <field name="price_include">False</field>
          <field name="tax_group_id" ref="tax_group_iva_22"/>
          <field name="invoice_repartition_line_ids" eval="[(5, 0, 0),
              (0,0, {
                  'factor_percent': 100,
                  'repartition_type': 'base',
                  'plus_report_line_ids': [ref('tax_report_line_vp2')],
              }),
              (0,0, {
                  'factor_percent': 100,
                  'repartition_type': 'tax',
                  'account_id': ref('2601'),
                  'plus_report_line_ids': [ref('tax_report_line_vp4')],
              }),
          ]"/>
          <field name="refund_repartition_line_ids" eval="[(5, 0, 0),
              (0,0, {
                  'factor_percent': 100,
                  'repartition_type': 'base',
              }),
              (0,0, {
                  'factor_percent': 100,
                  'repartition_type': 'tax',
                  'account_id': ref('2601'),
              }),
          ]"/>
      </record>
  
      <record id="22a" model="account.tax.template">
          <field name="description">22a</field>
          <field name="chart_template_id" ref="l10n_it_chart_template_generic"/>
          <field name="name">Iva al 22% (credito)</field>
          <field name="sequence">2</field>
          <field name="amount">22</field>
          <field name="amount_type">percent</field>
          <field name="type_tax_use">purchase</field>
          <field name="price_include">False</field>
          <field name="tax_group_id" ref="tax_group_iva_22"/>
          <field name="invoice_repartition_line_ids" eval="[(5, 0, 0),
              (0,0, {
                  'factor_percent': 100,
                  'repartition_type': 'base',
                  'plus_report_line_ids': [ref('tax_report_line_vp3')],
              }),
              (0,0, {
                  'factor_percent': 100,
                  'repartition_type': 'tax',
                  'account_id': ref('1601'),
                  'plus_report_line_ids': [ref('tax_report_line_vp5')],
              }),
          ]"/>
          <field name="refund_repartition_line_ids" eval="[(5, 0, 0),
              (0,0, {
                  'factor_percent': 100,
                  'repartition_type': 'base',
              }),
              (0,0, {
                  'factor_percent': 100,
                  'repartition_type': 'tax',
                  'account_id': ref('1601'),
              }),
          ]"/>
      </record>
  
      <!-- IVA 10 -->
      <record id="10v" model="account.tax.template">
          <field name="description">10v</field>
          <field name="chart_template_id" ref="l10n_it_chart_template_generic"/>
          <field name="name">Iva al 10% (debito)</field>
          <field name="sequence">5</field>
          <field name="amount">10</field>
          <field name="amount_type">percent</field>
          <field name="type_tax_use">sale</field>
          <field name="price_include">False</field>
          <field name="tax_group_id" ref="tax_group_iva_10"/>
          <field name="invoice_repartition_line_ids" eval="[(5, 0, 0),
              (0,0, {
                  'factor_percent': 100,
                  'repartition_type': 'base',
                  'plus_report_line_ids': [ref('tax_report_line_vp2')],
              }),
              (0,0, {
                  'factor_percent': 100,
                  'repartition_type': 'tax',
                  'account_id': ref('2601'),
                  'plus_report_line_ids': [ref('tax_report_line_vp4')],
              }),
          ]"/>
          <field name="refund_repartition_line_ids" eval="[(5, 0, 0),
              (0,0, {
                  'factor_percent': 100,
                  'repartition_type': 'base',
              }),
              (0,0, {
                  'factor_percent': 100,
                  'repartition_type': 'tax',
                  'account_id': ref('2601'),
              }),
          ]"/>
      </record>
  
      <record id="10a" model="account.tax.template">
          <field name="description">10a</field>
          <field name="chart_template_id" ref="l10n_it_chart_template_generic"/>
          <field name="name">Iva al 10% (credito)</field>
          <field name="sequence">6</field>
          <field name="amount">10</field>
          <field name="amount_type">percent</field>
          <field name="type_tax_use">purchase</field>
          <field name="price_include">False</field>
          <field name="tax_group_id" ref="tax_group_iva_10"/>
          <field name="invoice_repartition_line_ids" eval="[(5, 0, 0),
              (0,0, {
                  'factor_percent': 100,
                  'repartition_type': 'base',
                  'plus_report_line_ids': [ref('tax_report_line_vp3')],
              }),
              (0,0, {
                  'factor_percent': 100,
                  'repartition_type': 'tax',
                  'account_id': ref('1601'),
                  'plus_report_line_ids': [ref('tax_report_line_vp5')],
              }),
          ]"/>
          <field name="refund_repartition_line_ids" eval="[(5, 0, 0),
              (0,0, {
                  'factor_percent': 100,
                  'repartition_type': 'base',
              }),
              (0,0, {
                  'factor_percent': 100,
                  'repartition_type': 'tax',
                  'account_id': ref('1601'),
              }),
          ]"/>
      </record>
  
      <!-- IVA 5 -->
      <record id="5v" model="account.tax.template">
          <field name="description">5v</field>
          <field name="chart_template_id" ref="l10n_it_chart_template_generic"/>
          <field name="name">Iva al 5% (debito)</field>
          <field name="sequence">5</field>
          <field name="amount">5</field>
          <field name="amount_type">percent</field>
          <field name="type_tax_use">sale</field>
          <field name="price_include">False</field>
          <field name="tax_group_id" ref="tax_group_iva_5"/>
          <field name="invoice_repartition_line_ids" eval="[(5, 0, 0),
              (0,0, {
                  'factor_percent': 100,
                  'repartition_type': 'base',
                  'plus_report_line_ids': [ref('tax_report_line_vp2')],
              }),
              (0,0, {
                  'factor_percent': 100,
                  'repartition_type': 'tax',
                  'account_id': ref('2601'),
                  'plus_report_line_ids': [ref('tax_report_line_vp4')],
              }),
          ]"/>
          <field name="refund_repartition_line_ids" eval="[(5, 0, 0),
              (0,0, {
                  'factor_percent': 100,
                  'repartition_type': 'base',
              }),
              (0,0, {
                  'factor_percent': 100,
                  'repartition_type': 'tax',
                  'account_id': ref('2601'),
              }),
          ]"/>
      </record>
  
      <record id="5a" model="account.tax.template">
          <field name="description">5a</field>
          <field name="chart_template_id" ref="l10n_it_chart_template_generic"/>
          <field name="name">Iva al 5% (credito)</field>
          <field name="sequence">6</field>
          <field name="amount">5</field>
          <field name="amount_type">percent</field>
          <field name="type_tax_use">purchase</field>
          <field name="price_include">False</field>
          <field name="tax_group_id" ref="tax_group_iva_5"/>
          <field name="invoice_repartition_line_ids" eval="[(5, 0, 0),
              (0,0, {
                  'factor_percent': 100,
                  'repartition_type': 'base',
                  'plus_report_line_ids': [ref('tax_report_line_vp3')],
              }),
              (0,0, {
                  'factor_percent': 100,
                  'repartition_type': 'tax',
                  'account_id': ref('1601'),
                  'plus_report_line_ids': [ref('tax_report_line_vp5')],
              }),
          ]"/>
          <field name="refund_repartition_line_ids" eval="[(5, 0, 0),
              (0,0, {
                  'factor_percent': 100,
                  'repartition_type': 'base',
              }),
              (0,0, {
                  'factor_percent': 100,
                  'repartition_type': 'tax',
                  'account_id': ref('1601'),
              }),
          ]"/>
      </record>
  
      <!-- IVA 4 -->
      <record id="4v" model="account.tax.template">
          <field name="description">4v</field>
          <field name="chart_template_id" ref="l10n_it_chart_template_generic"/>
          <field name="name">Iva al 4% (debito)</field>
          <field name="sequence">17</field>
          <field name="amount">4</field>
          <field name="amount_type">percent</field>
          <field name="type_tax_use">sale</field>
          <field name="price_include">False</field>
          <field name="tax_group_id" ref="tax_group_iva_4"/>
          <field name="invoice_repartition_line_ids" eval="[(5, 0, 0),
              (0,0, {
                  'factor_percent': 100,
                  'repartition_type': 'base',
                  'plus_report_line_ids': [ref('tax_report_line_vp2')],
              }),
              (0,0, {
                  'factor_percent': 100,
                  'repartition_type': 'tax',
                  'account_id': ref('2601'),
                  'plus_report_line_ids': [ref('tax_report_line_vp4')],
              }),
          ]"/>
          <field name="refund_repartition_line_ids" eval="[(5, 0, 0),
              (0,0, {
                  'factor_percent': 100,
                  'repartition_type': 'base',
              }),
              (0,0, {
                  'factor_percent': 100,
                  'repartition_type': 'tax',
                  'account_id': ref('2601'),
              }),
          ]"/>
      </record>
  
      <record id="4a" model="account.tax.template">
          <field name="description">4a</field>
          <field name="chart_template_id" ref="l10n_it_chart_template_generic"/>
          <field name="name">Iva al 4% (credito)</field>
          <field name="sequence">18</field>
          <field name="amount">4</field>
          <field name="amount_type">percent</field>
          <field name="type_tax_use">purchase</field>
          <field name="price_include">False</field>
          <field name="tax_group_id" ref="tax_group_iva_4"/>
          <field name="invoice_repartition_line_ids" eval="[(5, 0, 0),
              (0,0, {
                  'factor_percent': 100,
                  'repartition_type': 'base',
                  'plus_report_line_ids': [ref('tax_report_line_vp3')],
              }),
              (0,0, {
                  'factor_percent': 100,
                  'repartition_type': 'tax',
                  'account_id': ref('1601'),
                  'plus_report_line_ids': [ref('tax_report_line_vp5')],
              }),
          ]"/>
          <field name="refund_repartition_line_ids" eval="[(5, 0, 0),
              (0,0, {
                  'factor_percent': 100,
                  'repartition_type': 'base',
              }),
              (0,0, {
                  'factor_percent': 100,
                  'repartition_type': 'tax',
                  'account_id': ref('1601'),
              }),
          ]"/>
      </record>
  
      <!-- IVA 0 -->
      <record id="00v" model="account.tax.template">
          <field name="description">00v</field>
          <field name="chart_template_id" ref="l10n_it_chart_template_generic"/>
          <field name="name">Fuori Campo IVA (debito)</field>
          <field name="sequence">22</field>
          <field name="amount">0</field>
          <field name="amount_type">percent</field>
          <field name="type_tax_use">sale</field>
          <field name="price_include">False</field>
          <field name="tax_group_id" ref="tax_group_fuori"/>
          <field name="invoice_repartition_line_ids" eval="[(5, 0, 0),
              (0,0, {
                  'factor_percent': 100,
                  'repartition_type': 'base',
              }),
              (0,0, {
                  'factor_percent': 100,
                  'repartition_type': 'tax',
              }),
          ]"/>
          <field name="refund_repartition_line_ids" eval="[(5, 0, 0),
              (0,0, {
                  'factor_percent': 100,
                  'repartition_type': 'base',
              }),
              (0,0, {
                  'factor_percent': 100,
                  'repartition_type': 'tax',
              }),
          ]"/>
      </record>
  
      <record id="00a" model="account.tax.template">
          <field name="description">00a</field>
          <field name="chart_template_id" ref="l10n_it_chart_template_generic"/>
          <field name="name">Fuori Campo IVA (credito)</field>
          <field name="sequence">23</field>
          <field name="amount">0</field>
          <field name="amount_type">percent</field>
          <field name="type_tax_use">purchase</field>
          <field name="price_include">False</field>
          <field name="tax_group_id" ref="tax_group_fuori"/>
          <field name="invoice_repartition_line_ids" eval="[(5, 0, 0),
              (0,0, {
                  'factor_percent': 100,
                  'repartition_type': 'base',
                  'plus_report_line_ids': [ref('tax_report_line_vp2')],
              }),
              (0,0, {
                  'factor_percent': 100,
                  'repartition_type': 'tax',
              }),
          ]"/>
          <field name="refund_repartition_line_ids" eval="[(5, 0, 0),
              (0,0, {
                  'factor_percent': 100,
                  'repartition_type': 'base',
              }),
              (0,0, {
                  'factor_percent': 100,
                  'repartition_type': 'tax',
              }),
          ]"/>
      </record>
  
      <record id="00art15v" model="account.tax.template">
          <field name="description">00art15v</field>
          <field name="chart_template_id" ref="l10n_it_chart_template_generic"/>
          <field name="name">Imponibile Escluso Art.15 (debito)</field>
          <field name="sequence">22</field>
          <field name="amount">0</field>
          <field name="amount_type">percent</field>
          <field name="type_tax_use">sale</field>
          <field name="price_include">False</field>
          <field name="tax_group_id" ref="tax_group_imp_esc_art_15"/>
          <field name="invoice_repartition_line_ids" eval="[(5, 0, 0),
              (0,0, {
                  'factor_percent': 100,
                  'repartition_type': 'base',
                  'plus_report_line_ids': [ref('tax_report_line_vp2')],
              }),
              (0,0, {
                  'factor_percent': 100,
                  'repartition_type': 'tax',
              }),
          ]"/>
          <field name="refund_repartition_line_ids" eval="[(5, 0, 0),
              (0,0, {
                  'factor_percent': 100,
                  'repartition_type': 'base',
              }),
              (0,0, {
                  'factor_percent': 100,
                  'repartition_type': 'tax',
              }),
          ]"/>
      </record>
  
      <record id="00art15a" model="account.tax.template">
          <field name="description">00art15a</field>
          <field name="chart_template_id" ref="l10n_it_chart_template_generic"/>
          <field name="name">Imponibile Escluso Art.15 (credito)</field>
          <field name="sequence">23</field>
          <field name="amount">0</field>
          <field name="amount_type">percent</field>
          <field name="type_tax_use">purchase</field>
          <field name="price_include">False</field>
          <field name="tax_group_id" ref="tax_group_imp_esc_art_15"/>
          <field name="invoice_repartition_line_ids" eval="[(5, 0, 0),
              (0,0, {
                  'factor_percent': 100,
                  'repartition_type': 'base',
                  'plus_report_line_ids': [ref('tax_report_line_vp3')],
              }),
              (0,0, {
                  'factor_percent': 100,
                  'repartition_type': 'tax',
              }),
          ]"/>
          <field name="refund_repartition_line_ids" eval="[(5, 0, 0),
              (0,0, {
                  'factor_percent': 100,
                  'repartition_type': 'base',
              }),
              (0,0, {
                  'factor_percent': 100,
                  'repartition_type': 'tax',
              }),
          ]"/>
      </record>
  
  </odoo>
  