Vauxoo / pylint-odoo

1 stars 4 forks source link

[FIX] pylint-odoo: Fix to calculate name of field, referrring to OCA/pylint-odoo#108 #108

Closed JesusZapata closed 7 years ago

JesusZapata commented 7 years ago

Referring to https://github.com/OCA/pylint-odoo/issues/108

moylop260 commented 7 years ago

Could you run this new change from addons-vauxoo project, please?

JesusZapata commented 7 years ago

@moylop260 The output of the command

pylint -r n --disable all --enable attribute-string-redundant --load-plugins=pylint-odoo addons-vauxoo/

************* Module addons-vauxoo.default_warehouse_from_sale_team.models.sales_team
W: 10,24: The attribute string is redundant. String parameter equal to name of variable (attribute-string-redundant)
************* Module addons-vauxoo.stock_quant_cost_segmentation.model.stock
W:114,20: The attribute string is redundant. String parameter equal to name of variable (attribute-string-redundant)
W:117,22: The attribute string is redundant. String parameter equal to name of variable (attribute-string-redundant)
W:120,26: The attribute string is redundant. String parameter equal to name of variable (attribute-string-redundant)
W:123,18: The attribute string is redundant. String parameter equal to name of variable (attribute-string-redundant)
************* Module addons-vauxoo.stock_quant_cost_segmentation.model.product
W: 28,20: The attribute string is redundant. String parameter equal to name of variable (attribute-string-redundant)
W: 30,22: The attribute string is redundant. String parameter equal to name of variable (attribute-string-redundant)
W: 32,26: The attribute string is redundant. String parameter equal to name of variable (attribute-string-redundant)
W: 34,18: The attribute string is redundant. String parameter equal to name of variable (attribute-string-redundant)
************* Module addons-vauxoo.partner_credit_limit.model.partner
W: 15,24: The attribute string is redundant. String parameter equal to name of variable (attribute-string-redundant)
************* Module addons-vauxoo.stock_card.model.stock_card
W:418,21: The attribute string is redundant. String parameter equal to name of variable (attribute-string-redundant)
W:422,26: The attribute string is redundant. String parameter equal to name of variable (attribute-string-redundant)
W:426,14: The attribute string is redundant. String parameter equal to name of variable (attribute-string-redundant)
W:434,11: The attribute string is redundant. String parameter equal to name of variable (attribute-string-redundant)
************* Module addons-vauxoo.account_voucher_tax_sat.model.account_voucher_tax_sat
W: 37,11: The attribute string is redundant. String parameter equal to name of variable (attribute-string-redundant)
************* Module addons-vauxoo.product_do_merge.model.product
W: 31,18: The attribute string is redundant. String parameter equal to name of variable (attribute-string-redundant)
************* Module addons-vauxoo.product_do_merge.wizard.base_product_merge
W: 61,12: The attribute string is redundant. String parameter equal to name of variable (attribute-string-redundant)
W: 72,19: The attribute string is redundant. String parameter equal to name of variable (attribute-string-redundant)
W: 74,17: The attribute string is redundant. String parameter equal to name of variable (attribute-string-redundant)
************* Module addons-vauxoo.purchase_changeless_move_lines.model.purchase
W: 33,21: The attribute string is redundant. String parameter equal to name of variable (attribute-string-redundant)
************* Module addons-vauxoo.purchase_changeless_move_lines.model.stock_picking
W: 33,21: The attribute string is redundant. String parameter equal to name of variable (attribute-string-redundant)
************* Module addons-vauxoo.stock_picking_invoice_validation.model.stock_transfer_details
W: 25,24: The attribute string is redundant. String parameter equal to name of variable (attribute-string-redundant)
************* Module addons-vauxoo.sale_block_cancellation.models.sale
W: 63,19: The attribute string is redundant. String parameter equal to name of variable (attribute-string-redundant)
************* Module addons-vauxoo.aging_due_report.wizard.wizard
W: 56,15: The attribute string is redundant. String parameter equal to name of variable (attribute-string-redundant)
W: 57,11: The attribute string is redundant. String parameter equal to name of variable (attribute-string-redundant)
W: 58,10: The attribute string is redundant. String parameter equal to name of variable (attribute-string-redundant)
W: 59,12: The attribute string is redundant. String parameter equal to name of variable (attribute-string-redundant)
W: 60,14: The attribute string is redundant. String parameter equal to name of variable (attribute-string-redundant)
W: 61,15: The attribute string is redundant. String parameter equal to name of variable (attribute-string-redundant)
W:139,11: The attribute string is redundant. String parameter equal to name of variable (attribute-string-redundant)
W:152,12: The attribute string is redundant. String parameter equal to name of variable (attribute-string-redundant)
W:154,14: The attribute string is redundant. String parameter equal to name of variable (attribute-string-redundant)
W:157,15: The attribute string is redundant. String parameter equal to name of variable (attribute-string-redundant)
W:160,14: The attribute string is redundant. String parameter equal to name of variable (attribute-string-redundant)
W:220,15: The attribute string is redundant. String parameter equal to name of variable (attribute-string-redundant)
W:223,14: The attribute string is redundant. String parameter equal to name of variable (attribute-string-redundant)
W:248,20: The attribute string is redundant. String parameter equal to name of variable (attribute-string-redundant)
W:262,11: The attribute string is redundant. String parameter equal to name of variable (attribute-string-redundant)
W:290,16: The attribute string is redundant. String parameter equal to name of variable (attribute-string-redundant)
************* Module addons-vauxoo.hr_timesheet_reports.model.hr_timesheet_reports
W:358,14: The attribute string is redundant. String parameter equal to name of variable (attribute-string-redundant)
************* Module addons-vauxoo.test_sale_team_warehouse.models.test_model
W: 17,16: The attribute string is redundant. String parameter equal to name of variable (attribute-string-redundant)
W: 32,16: The attribute string is redundant. String parameter equal to name of variable (attribute-string-redundant)
************* Module addons-vauxoo.payment_term_type.models.payment_term
W: 35,19: The attribute string is redundant. String parameter equal to name of variable (attribute-string-redundant)
************* Module addons-vauxoo.website_product_availability.models.product
W: 77,16: The attribute string is redundant. String parameter equal to name of variable (attribute-string-redundant)
************* Module addons-vauxoo.purchase_incoming_qty.model.product
W: 34,28: The attribute string is redundant. String parameter equal to name of variable (attribute-string-redundant)
W: 57,28: The attribute string is redundant. String parameter equal to name of variable (attribute-string-redundant)
************* Module addons-vauxoo.partner_foreign.model.res_partner
W: 91,14: The attribute string is redundant. String parameter equal to name of variable (attribute-string-redundant)
************* Module addons-vauxoo.website_rate_product.models.mail_message
W: 30,13: The attribute string is redundant. String parameter equal to name of variable (attribute-string-redundant)
W: 66,13: The attribute string is redundant. String parameter equal to name of variable (attribute-string-redundant)
************* Module addons-vauxoo.purchase_order_line_sequence.model.purchase
W: 54,15: The attribute string is redundant. String parameter equal to name of variable (attribute-string-redundant)
************* Module addons-vauxoo.account_refund_early_payment.wizard.refund_early_payments
W: 76,14: The attribute string is redundant. String parameter equal to name of variable (attribute-string-redundant)
moylop260 commented 7 years ago

Fix for OCA please

JesusZapata commented 7 years ago

@moylop260 Done in the PR https://github.com/OCA/pylint-odoo/pull/100