diff options
| author | stephanchrst <stephanchrst@gmail.com> | 2023-03-24 15:54:25 +0700 |
|---|---|---|
| committer | stephanchrst <stephanchrst@gmail.com> | 2023-03-24 15:54:25 +0700 |
| commit | 05c2c86f0f82ab42f9eb23b0aaaf838eb52da435 (patch) | |
| tree | 6fb595dc6278aaef5d3be4b33f1cd818618d7063 /indoteknik_custom/models/stock_move.py | |
| parent | 98e81e0c84f6625aab09bb3b5c5e5137d68c61a0 (diff) | |
revert create bill from received
Diffstat (limited to 'indoteknik_custom/models/stock_move.py')
| -rw-r--r-- | indoteknik_custom/models/stock_move.py | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/indoteknik_custom/models/stock_move.py b/indoteknik_custom/models/stock_move.py index 8be05630..22a73010 100644 --- a/indoteknik_custom/models/stock_move.py +++ b/indoteknik_custom/models/stock_move.py @@ -6,29 +6,6 @@ class StockMove(models.Model): line_no = fields.Integer('No', default=0) - def _prepare_lines_bill(self, po_line): - res = { - 'display_type': po_line.display_type, - 'sequence': po_line.sequence, - 'name': '%s: %s' % (po_line.order_id.name, po_line.name), - 'product_id': self.product_id.id, - 'product_uom_id': self.product_uom.id, - 'quantity': self.quantity_done, - 'price_unit': po_line.price_unit, - 'tax_ids': [(6, 0, po_line.taxes_id.ids)], - 'analytic_account_id': po_line.account_analytic_id.id, - 'analytic_tag_ids': [(6, 0, po_line.analytic_tag_ids.ids)], - 'purchase_line_id': po_line.id, - } - - res.update({ - 'move_id': self.move_id, - 'currency_id': self.move_id.currency_id, - 'date_maturity': self.move_id.invoice_date_due, - 'partner_id': self.move_id.partner_id.id, - }) - return res - def _create_account_move_line(self, credit_account_id, debit_account_id, journal_id, qty, description, svl_id, cost): self.ensure_one() if self.picking_id.is_internal_use: |
